Hello,
Strange thing has happened to my Apache logs. The log files i've specified for my vhosts are 0 sized, and the <log filename>.1 is the log active for all my vhosts that use logging. I know logroate is suppose to be in charge of any renumbering, but I was of the understading that the active log file left by logroate would not have a number appended to it.
Normally I would not consider this a problem, except for these two things:
1. I use the GUI redhat log viewing tool, and this requrest a static path to the log file
2. I use
Awstats to mine data from my logs, and this also use a statis path.
I have made some change to the /etc/logroate.d/httpd config file, so as to make an entry so that it would allow Awstats to collect data pre-rotate. And so the httpd logrotate config file look slike this at current:
Code:
/var/log/httpd/*log {
missingok
notifempty
sharedscripts
prerotate
/usr/local/awstats/tools/awstats_updateall.pl now
endscript
postrotate
/bin/kill -USR1 `cat /var/run/httpd.pid 2>/dev/null` 2> /dev/null || true
endscript
}
How can I get my log naming back to normal?