Created attachment 190058 [details] patch for 11-STABLE this affects 11.1-RELEASE and 11-STABLE. The config syntax is as follows: include /etc/syslog.d include /usr/local/etc/syslog.d Unfortunately due to a bug in the code only one "include" line can be used and any lines after an "include" statement negates all of the configuration that was pulled in by that "include". romain@ confirmed this bug and has this patch which applies to 11-STABLE, but this bug seems to be gone in CURRENT. There have been a lot of syslogd.c changes in CURRENT so it's hard to identify which commit may have inadvertently fixed it. It would be appreciated if this could be fixed in an ERRATA
adding Romain and Bapt who can hopefully help sort this out officially
Add re@ for errata request
This just bit me hard... Only the last file included is actually processed/used, so when I set up: /etc/syslog.d/dhcpd.conf /etc/syslog.d/dhcp6c.conf /etc/syslog.d/unbound.conf only unbound.conf was actually included/loaded: Here is the debug output: Trying to include files in '/etc/syslog.d' reading /etc/syslog.d/local.conf cfline("*.* /var/log/dhcpd", f, "dhcpd", "*") cfline("*.* /var/log/unbound", f, "unbound", "*") cfline("*.* /var/log/dhcp6c", f, "dhcp6c", "*") reading /etc/syslog.d/zzz.conf cfline("*.* /var/log/thisisatest", f, "someproc", "*") Trying to include files in '/usr/local/etc/syslog.d' Unable to open '/usr/local/etc/syslog.d': No such file or directory 4 3 2 3 5 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 X CONSOLE: /dev/console 7 5 2 5 5 5 6 3 5 5 X 5 5 5 5 5 5 5 5 5 5 5 5 5 X FILE: /var/log/messages X X X X X X X X X X X X X 7 X X X X X X X X X X X FILE: /var/log/security X X X X 6 X X X X X 6 X X X X X X X X X X X X X X FILE: /var/log/auth.log X X 6 X X X X X X X X X X X X X X X X X X X X X X FILE: /var/log/maillog X X X X X X 6 X X X X X X X X X X X X X X X X X X FILE: /var/log/lpd-errs X X X X X X X X X X X 6 X X X X X X X X X X X X X FILE: /var/log/xferlog X X X X X X X X X 7 X X X X X X X X X X X X X X X FILE: /var/log/cron 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 X FILE: /var/log/debug.log (-devd) 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 X WALL: (-devd) 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 X FILE: /var/log/all.log (-devd) 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 X FILE: /var/log/ppp.log (ppp) 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 X FILE: /var/log/thisisatest (someproc) Shows that zzz.conf with contents: !* !someproc *.* /var/log/thisisatest Completely overrides local.conf which contains: !dhcpd *.* /var/log/dhcpd !unbound *.* /var/log/unbound !dhcp6c *.* /var/log/dhcp6c It would be great if this could get fixed before 11.2-RELEASE is cut. Thanks, Bert JW Regeer
(In reply to Mark Felder from comment #0) It looks like this patch was applied in r327348, so the issue will indeed be fixed in 11.2 and there's nothing to do at this point.
*** This bug has been marked as a duplicate of bug 220884 ***