[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] cleaning log files of "FTP session closed"



> Every minute of every day "FTP session closed" is listed in my log
> files.  It looks like it's active monitor testing my FTP service.  But
> all this junk makes it hard to read my logs,  How can I make AM check
> ftp only once an hour or how can I strip the log files of 
> this message?

filter your messages by adding this line to the roots crontab:

0,30  *    *    *    *    grep -v "127.0.0.1]) - FTP session closed"
/var/log/messages | grep -v "ttloop: read: Broken pipe" >
/var/log/filtered_messages


(this should be one line).
It will create a file /var/log/filtered_messages twice an hour