what are these used for?
Are they prunable? our access log file is > 2GB, I noticed doing backups.
-[CDN]Nightware
access_log and error_log in root
-
- New to forums
- Posts: 9
- https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
- Joined: Sat Feb 06, 2010 6:10 pm
Re: access_log and error_log in root
These are written by Apache based on site activity. access_log shows who has visited your site and is used by the stats package, and error_log lists errors that Apache and your scripts have generated.
One of my current projects is a log rotation system that will automatically compress/move/remove these, as needed.
One of my current projects is a log rotation system that will automatically compress/move/remove these, as needed.
Re: access_log and error_log in root
So are the logs just pruned? I just checked and I only see logs for the last day or so (perhaps beginning of the month?)
My last/other host has always been weekly gzipped and has about a 6 month retention or so.
My last/other host has always been weekly gzipped and has about a 6 month retention or so.
Re: access_log and error_log in root
Yes, these files are compressed and moved on the first of each month. They've already been used for the stats update at that point, but if you need an old months's logs for your own use, please let us know.