* add "-r" option to /etc/sysconfig/syslog (Fedora Core 4)
* add the "local6" feature to /etc/syslog.conf
local6.* /var/log/local6.log* restart syslog (/etc/rc.d/init.d/syslog restart)
Check if syslog is listening:
root@yozi:/etc/rc.d/init.d> netstat -l
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
udp 0 0 *:syslog *:*
Rotate the new log:
* add /var/log/local6.log to /etc/logrotate.d/syslog (Fedora Core 4)
* logrotate is started by anacron (/etc/cron.daily/logrotate)
No comments:
Post a Comment