5

Tail and log rotation

view full story
linux-howto

http://www.unix.com – Need some suggestion with an old problem form a thread here: http://www.unix.com/shell-programmin...ement-awk.html Since my log is large, I did get help to make a line that splits the log into two parts Code: tail -f syslog | awk '!/snmpd|ntpd|reject/{print | "tee newlog"}' (change from daemon.log to syslog) Problem is that tail seems to stop and does not update the log file. I then made a script that looked at the "newlog" and if it did not get updated in 3 hour, restarts the tail . Its not a good solution, since I do loose 3 hour of data. Recently (HowTos)