Tidying up old apache logs managed by vlogger

Posted by Andre Lackmann on Server Fault See other posts from Server Fault or by Andre Lackmann
Published on 2010-05-25T23:28:41Z Indexed on 2010/05/25 23:32 UTC
Read the original article Hit count: 277

Filed under:
|

We're using vlogger to manage our apache logs which keeps everything nice and neat but pretty much breaks the ability to use logrotate from as far as I can see. eg. our virtual access.logs each sit within their own dir and are named similar to:

/virtual.com/ 20100501-access.log 20100502-access.log 20100503-access.log 20100504-access.log

etc..

Has anyone created a cleanup script to go through the /var/log/httpd/ sub dirs and remove old logs? We like using vlogger, but cleaning up olds logs after it is a pain!

© Server Fault or respective owner

Related posts about apache

Related posts about vlogger