[Ilugc] Log rotation in apache

  • From: knura9@xxxxxxxxx (Arun Khan)
  • Date: Wed, 11 Dec 2013 13:27:42 +0530

On Tue, Dec 10, 2013 at 5:24 PM, hari prasadh <hariprasadh89 at gmail.com> 
wrote:

its centos. Log files doesn't resides in /var/log/httpd.Earlier i had seen
all the files in that folder.suddenly when i saw yesterday i was not able
to see those files in the location.

any other clues?


Is this server on a public IP address?

RHEL/CentOS default apache log location is /var/log/httpd unless you
have changed the location in the config files.

apache logrotate policy would be somewhere in /etc/logrotate.d.

If there is no log files in /var/log/httpd then it is quite likely
that your system is b0rk3d.

rpm -a --verify should report any anomalies in files installed from
official CentOS repos.

'aide' is more versatile if you have installed packages from tar balls.

HTH,
-- Arun Khan

Other related posts: