argus log rotation
Kevin Houle
kevin at houle.org
Thu Nov 28 16:51:15 EST 2002
Chris Russel wrote:
> Silly question, considering I've been using argus for a couple years now -
> what is the best way to rotate the argus log file?
For Debian, on a low traffic system, I use this in
/etc/logrotate.d/argus, which is run via logrotate
from cron.daily:
/var/log/argus/*.log {
rotate 14
daily
compress
missingok
prerotate
/usr/local/bin/argus-report | \
mailx -s 'argus report' kevin at houle.org
endscript
postrotate
rm -f /var/log/argus/argus.log
endscript
}
Not sure that's the "best" way, but it works for me.
Kevin
More information about the argus
mailing list