New style permitnonkernelfacility imklog option inside module() doesn't work
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Rsyslog |
Fix Released
|
Unknown
|
|||
rsyslog (Ubuntu) |
Fix Released
|
Low
|
Andreas Hasenack |
Bug Description
artful 8.16.0-1ubuntu5 (which is way behind upstream and debian, btw)
There are two ways to load the imklog module and pass it an option (PermitNonKerne
a) legacy
$ModLoad imklog
$KLogPermitNonK
b) "new style", also referred to as "v6+":
module(
For a while the ubuntu package was using a mix: loading the module with the new style, but setting the option via the legacy method. In bug #1531622 this was fixed for yakkety+.
Problem is, upstream isn't honouring the new style option setting due to a bug of its own: https:/
With the legacy config:
#module(
$ModLoad imklog
$KLogPermitNonK
I get kernel messages in /var/log/syslog:
root@nsn7:~# grep andreas-was-here /var/log/syslog
root@nsn7:~# echo andreas-was-here > /dev/kmsg
root@nsn7:~# grep andreas-was-here /var/log/syslog
Jul 12 16:46:33 nsn7 kernel: [27774.476193] andreas-was-here
root@nsn7:~#
But with this new v6 config style:
module(
#$ModLoad imklog
#$KLogPermitNon
The text doesn't show up in /var/log/syslog. That's the upstream bug.
Changed in rsyslog (Ubuntu): | |
assignee: | nobody → Andreas Hasenack (ahasenack) |
status: | Triaged → In Progress |
Changed in rsyslog: | |
status: | Unknown → Fix Released |
I have test packages built with the patch mentioned in the github issue:
https:/ /launchpad. net/~ahasenack/ +archive/ ubuntu/ rsyslog- permitnonkernel facility- 1703987
A quick test shows it works as expected now using the new style config.