Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 May 2018 21:12:32 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 225452] syslogd.conf include functionality is broken
Message-ID:  <bug-225452-227-TKFq3Y4wwm@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-225452-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-225452-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D225452

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

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

--- Comment #3 from Bert JW Regeer <xistence@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 (p=
pp)
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

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-225452-227-TKFq3Y4wwm>