[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] cleaning log files of "FTP session closed"
- Subject: RE: [cobalt-users] cleaning log files of "FTP session closed"
- From: Reinoud van Leeuwen <rvanleeuwen@xxxxxxxxxxxx>
- Date: Fri Apr 27 00:51:03 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
> 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