Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

2 Answers 2

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

 
discard

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.