Logrotate LOTS of Apache Logfiles
Hi,
I'm trying to find an easy way to logrotate apache logfiles. The logfiles
are created by cronolog, one in a day.
CustomLog "|/usr/sbin/cronolog
/wwwhome/customer1/logs/www.customer1.tt-%Y-%m-%d.log" combined
ErrorLog "|/usr/sbin/cronolog
/wwwhome/customer1/logs/www.customer1.tt-%Y-%m-%d.err"
And that for a couple of houndred virtual domains. I want to keep 7 days
worth of logfiles, where every one but the current is compressed by a zip
program (not gzip). After 7 being 7 days old, the logfiles should be
deleted.
Is there an easy way to do that using the logrotate program?
Thanks in advance,
Daniel
PS: Please CC me when you reply, as I'm currently not on the list. However
I'll check the archive too.
Reply to: