Stop syslog from writing certain facilities to console?

Kirk Strauser kirk at
Sun Jul 6 09:28:01 PDT 2003

I'm running Leafnode in a FreeBSD 4.8-STABLE jail environment.  `fetchnews'
reports a lot of minor errors to news.err, and these get written to console
(which annoys me to no end).

/etc/syslog.conf looks like:

    *.err;kern.debug;auth.notice;mail.crit          /dev/console
    *.notice;kern.debug;;mail.crit;news.err /var/log/messages
    security.*                                      /var/log/security;                         /var/log/auth.log                                       /var/log/maillog                                        /var/log/lpd-errs
    cron.*                                          /var/log/cron
    *.emerg                                         *
    news.crit                                       /var/log/news/news.crit
    news.err                                        /var/log/news/news.err
    news.notice                                     /var/log/news/news.notice
    *.*                                             /var/log/slip.log
    *.*                                             /var/log/ppp.log

I can't seem to get my head around this.  How can I tell it to look *.err to
console except when facility=news?
Kirk Strauser
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
Url :

More information about the freebsd-questions mailing list