Apache log rotate configuration
HI
i was trying to configure logrotate for my apache server and it's not working properly. here is my lodrotate configuration Code:
/var/log/httpd/*log { Code:
-rw-r--r-- 1 root root 1 Dec 4 09:10 jk-runtime-status.5767.lock as you can see log is rotated with date ext but apache is still writing logs to rotated file no to new files(new files size is 0 bytes) Thanks & Regards, Ben |
Hi,
You didn't mention your distro and version, but I guess you're using apache-2.2x as you have a separate rewrite.log. If that's the case, following is a stock Centos-6 httpd logrotate script: Code:
/var/log/httpd/*log { |
cannot do from http conf file as directory has 7 types of log files
i have changes conf file with Code:
/var/log/httpd/*log { ran : logrotate -f /etc/logrotate.d/httpd and it created log with.1 extension Code:
drwxrwxr-x. 2 root root 4096 Dec 5 08:52 . |
All times are GMT -5. The time now is 04:43 AM. |