Tidying up old apache logs managed by vlogger
- by Andre Lackmann
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!