Subject: Re: a question about syslog.conf
To: None <netbsd-help@netbsd.org>
From: Thierry Lacoste <th.lacoste@wanadoo.fr>
List: netbsd-help
Date: 02/20/2006 18:27:59
Thanks Jukka.

I have two /var/log/messages lines so I wrote:

!-ntpd,dhcpd,named
*.info;auth,authpriv,cron,ftp,kern,lpr,mail.none        /var/log/messages
kern.debug                                              /var/log/messages
!*

It seems to work as I want.
Is this OK?

Thierry.

Here's my complete /etc/syslog.conf:
#       $NetBSD: syslog.conf,v 1.9 2004/07/23 03:45:42 mycroft Exp $

*.err;kern.*;auth.notice;authpriv.none;mail.crit        /dev/console
!-ntpd,dhcpd,named
*.info;auth,authpriv,cron,ftp,kern,lpr,mail.none        /var/log/messages
kern.debug                                              /var/log/messages
!*

# The authpriv log file should be restricted access; these
# messages shouldn't go to terminals or publically-readable
# files.
auth,authpriv.info                                      /var/log/authlog

cron.info                                               /var/log/cron
ftp.info                                                /var/log/xferlog
lpr.info                                                /var/log/lpd-errs
mail.info                                               /var/log/maillog
#uucp.info                                              /var/spool/uucp/ERRORS

*.emerg                                                 *
#*.notice                                               root

!ntpd
*.*                                                     /var/log/ntpd
!dhcpd
*.*                                                     /var/log/dhcpd
!named
*.*                                                     /var/log/named