Pix logging on syslog... logrotate does not work
Hello,
I have configured PIX to log into Linux syslog on my RHEL4 m/c. The logging works fine, but when i configured logrotate to rotate the log files on a daily basis , it does not seem to work. Actually there are a couple of more problems associated to this as well. (My intension is to rotate the log file everyday at 12:00 noon) PROBLEM 1. ---------- To enable network based logging i run the syslog daemon with the command 'syslogd -r -m 0'. I did the following changes to reflect the same in /etc/init.d/syslog Code:
...<snip>... Code:
root 25023 1 0 10:44 ? 00:00:00 syslogd -m 0 ---------- Now i read the logrotate manpage and acordingly created the file /etc/logrotate.d/pix_rotate as follows: Code:
#cat /etc/logrotate.d/pix_rotate 00 12 * * * /usr/sbin/logrotate Well, this does not seem to work. How do i make it work? (I know i'd be overwriting the rotated log file everyday, but i hope 'extension `date`' in the file /etc/logrotate.d/pix_rotate would help). Any help on this would be appreciated. i've been struggling with logrotate for quite a while!!! [edit] I also made the following additions to /etc/logrotate.conf: Code:
/var/log/pix/SyslogCatchAll.log { |
All times are GMT -5. The time now is 06:20 AM. |