Thursday, October 11, 2007

Log Rotation

ls /var/pdweb/www-*/log/*.log sort

ls /var/pdweb/log/*.log sort

Pipe the output of the log file to grep to filter out these messages.

Here are some examples:
To follow valid messages: tail -f SystemOut.log grep -v "DCSV9415W"
To copy the log with only valid messages: grep -v "DCSV9415W" <> ~/FilteredSystemOut.log

No comments: