Probably a dead thread by now, but you should also check the logwatch package, which is probably already installed for you and running nightly.  You ARE checking the mail sent to the root account, right?
 
Logwatch allows you to write your own little scripts (such as the grep statements others suggested) on a per logfile basis.  Common practice is to build up a list of the patterns you DON'T care about, exclude those, and summarize the rest in your output.  If your script has output (ie it finds a log message it hasn't been told to ignore), that output gets included in the nightly email sent to root.
 
HTH,
trever
-----Original Message-----
From: Rudolf Amirjanyan [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 14, 2002 5:43 PM
To: [EMAIL PROTECTED]
Subject: Log filtering

I have a file like this
 
aaaaaaaaaaaaa
bbbbbbbbbbbbb
aaaaaaaaaaaaa
bbbbbbbbbbbbb
 
How I can filter this file, so that all the lines containing bbbbbbbbbbbbb, were deleted.
Is there any way to do it ?
Thanks in advance.
 
 

Reply via email to