I am failing to get filtering by program or facility working in FreeBSD syslogd.
local6.debug /var/log/test.log !testd *.debug /var/log/test.log
/etc/syslog.conf and restarted the syslog daemon.
I then wrote a little Go program
testd that sends a "debug" message to syslogd (facility "user") and then sent an additional message using
logger -p local6.debug "msg". The first message was only logged to
/var/log/messages (according to the default rules), but not to
/var/log/test.log, the second one was not logged at all.
It seems the rules are being ignored?