Yesterday I found that my Apache log file in my development machine was almost 50 GB in size.
Is there a way to limit the site of the Apache log file?
Thank you
|
feedback
|
|
This is typically done using logrotate. Example logrotate configuration for Apache:
| |||||
feedback
|
|
Building on Warner's suggestion, here's a logrotate config to delete your Apache logs if they grow larger than 5MB:
| |||
|
feedback
|
|
For Mac OS X 10.6 Snow Leopard (10.6.8),
It instructs to rotate all logs (3 for me) 5 times each when over 1000 "kilobytes", using bzip2(1) | ||||
|
feedback
|