Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

As the question says, I can find access logs upto 1 month old in the /var/logs/httpd folder. Where do I get older access logs from?

Are they even maintained/saved anywhere or deleted?

share|improve this question
up vote 2 down vote accepted

Have a log at your logrotate settings for those particular logs. You'll see the time interval for it to start a new log and how many copies it must keep. Anything prior to that gets deleted, so you would need to restore them from your backups.

share|improve this answer
Thanks. Where do I see these? I don't see a rotate or a logrotate in my httpd.conf – lostInTransit Feb 18 '12 at 10:51
@lostInTransit, logrotate is not part of Apache, it's a system utility, so you'll find its settings in /etc and/or a sub-directory of /etc. On my Debian system what you're looking for is in /etc/logrotate.d/apache2. – John Gardeniers Feb 18 '12 at 10:56

Usually they are deleted.

It all depends on the specific distribution you're using, but most use logrotate to compress and delete old log files. This configuration should be in /etc/logrotate.conf and individual files in /etc/logrotate.d

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.