On Tue, 21 Nov 2000, Bob Glover wrote:
[SNIP]
> > 2)  How do I get syslog to make a separate log file for ipchains logs?
> 
> That's a good question.
> 
# Put all IP Chains messages in a seperate file.
kern.=info                                              /var/log/ipchains

You may also want to modify one more log entry:
# Log anything (except mail) of level info or higher.
# Don't log private authentication messages!
*.info;mail.none;authpriv.none                          /var/log/messages
to
*.info;kern.!=info;mail.none;authpriv.none              /var/log/messages

It will catch a few other messages besides the ipchains messages, but it
works fairly well.  You will also want to add an entry in
/etc/logrotate.d/syslog to rotate the new file.

/var/log/ipchains {
    notifempty
    postrotate
        /usr/bin/killall -HUP syslogd
    endscript


Mikkel
-- 

    Do not meddle in the affairs of dragons,
 for you are crunchy and taste good with ketchup.



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to