Large Apache logs

Apache logs for a particular domain are growing rapidly (currently over 2.5GB), and I think this is what's causing the child processes to exit. The child processes are exiting in this fashion:

[notice] child pid #### exit signal File size limit exceeded (25)

What I plan to do:

1. Move the log file for that particular domain, and then touch the file again immediately
2. Install a log rotating daemon like logrotate so the file won't reach the 2GB limit again
3. Possibly change the loglevel directive in Apache? It's currently set at warn, maybe I should change it to something like error or crit? Or is that a bad idea for troubleshooting later?

Am I about to tackle this problem in the right way? Also, if Apache logs are this large, how often should I keep them after rotating them out?

Thanks.

 

 

 

 

Top