I get enough messages from named, and a few other services, that my system log loses things I need to see. So I made separate log files for them, in 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
*.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
!dhcpd
*.* /var/log/dhcpd
!named
*.* /var/log/named
!sshd-session
*.* /var/log/sshd
!rpcbind
*.* /var/log/rpcbind
!doas
*.* /var/log/doas
!ntpd
*.* /var/log/ntpd
!blocklistd
*.* /var/log/blocklistd
!dhcpcd
*.* /var/log/dhcpcd
!ypbind
*.* /var/log/vpbind
!tinc.quark
*.* /var/log/quark
This worked for a long time, in NetBSD 10. Since upgrading to NetBSD 11.0, messages for all these things go to both places. So, for example, messages from named show up in /var/log/named and /var/log/messages . This defeats the purpose of having separate log files.
I don't know if something changed in NetBSD 11, or if I inadvertently changed a setting in the upgrade process.