Thoughts on Apache log file sizes?
- by Nathan Long
Do you place any limits on the size of Apache log files - access.log and error.log?
Specifically, can you give:
Reasons to limit log file sizes
Disk space
Any other?
Reasons NOT to limit log file sizes
Research into performance issues or security breaches
Any other?
Methods of doing so
Cron job that periodically deletes the file, or the first N lines?
Any other?
Anything you might salvage before deleting
For example, grep out how many times a file was downloaded before deleting the access logs
I'd like get the thoughts of experienced sysadmins before I do anything.
(Marking as community wiki since this may be a matter of opinion.)