https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=225452

Bert JW Regeer <xiste...@0x58.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |xiste...@0x58.com

--- Comment #3 from Bert JW Regeer <xiste...@0x58.com> ---
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

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to