access_log and error_log in root

Connect with other users about what to run on your webhosting (and how to run it) here.
Post Reply
Nightware
New to forums
New to forums
Posts: 9
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Sat Feb 06, 2010 6:10 pm

access_log and error_log in root

Post by Nightware »

what are these used for?
Are they prunable? our access log file is > 2GB, I noticed doing backups.
-[CDN]Nightware
User avatar
Edge100x
Founder
Founder
Posts: 13108
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: access_log and error_log in root

Post by Edge100x »

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.
bchalk
New to forums
New to forums
Posts: 10
Joined: Thu Sep 30, 2010 1:08 pm

Re: access_log and error_log in root

Post by bchalk »

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.
User avatar
Edge100x
Founder
Founder
Posts: 13108
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: access_log and error_log in root

Post by Edge100x »

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.
Post Reply