Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
imklog bug with nonkernelfacility and new syntax #477
Comments
jite
changed the title from
imklog doesn't work with new syntax in config
to
imklog bug with nonkernelfacility and new syntax
Aug 12, 2015
|
I have run rsyslog in debug mod with "2&>1 | grep permitnonkernelfacility", module(load="imklog" permitnonkernelfacility="off")7874.791806032:main thread : name: 'permitnonkernelfacility', value 'off' module(load="imklog" permitnonkernelfacility="on")7912.758151592:main thread : name: 'permitnonkernelfacility', value 'on' So technically the property is set correctly. |
jite
commented
Aug 13, 2015
|
Alright, did you also try running it and log messages to the kernel log with nonkernel facility set? I can't get that to work with the new syntax but it does work for me with the old syntax. |
|
Can you post a minimal working configuration which I need to reproduce the problem? |
jite
commented
Aug 13, 2015
|
Hmm, I can see if I can scale it down, but it's running on an embedded Linux device right now (mips). Just to verify: Did you try to write to the kernel log with nonkernel-facility and actually saw the message appear when using the new syntax ? (I just had a . /var/log/testfile.log as a rule (and a /dev/console rule too)) |
|
I think the configuration I used for testing is not suitable. |
alorbach
added
the
waitingOnResponse
label
Aug 18, 2015
jite
commented
Aug 19, 2015
|
Sorry for the delay. Simplest conf file that reproduced the issue for me:
Then just run plugins/imklog/imklog.c:197: I hooked myself in here, and |
rgerhards
removed
the
waitingOnResponse
label
Aug 21, 2015
jite
commented
Aug 26, 2015
|
Did my last message contain enough information for you to reproduce the issue? Let me know if you need something more/else. Thanks |
arron-green
commented
Sep 11, 2015
|
i too am experiencing the same issue as @jite on ubuntu 14.04 with rsyslog |
erikanderson
commented
May 4, 2017
|
Can confirm this issue is present in 8.26.0 on trusty 14.04 as well |
erikanderson
referenced this issue
in rsyslog/rsyslog-pkg-ubuntu
May 4, 2017
Closed
imkmsg.so module present in ubuntu base but not in ppa #58
rgerhards
assigned
PascalWithopf
May 8, 2017
|
@PascalWithopf Can you please try to reproduce it? A manual repro is fine here IMHO, as we need root permissions anyways (which we do not usually have on the CI machines). But we might discuss how to support that on some environment :-) |
panlinux
commented
Jul 12, 2017
|
Someone sent a patch to the mailing list last year: |
jite commentedAug 12, 2015
(Pasting description from mail on mailing list 2015-07-08 12:10 GMT+02:00)
If I load imklog with option like this:
$ModLoad imklog
$KLogPermitNonKernelFacility on
it works as expected, I do get non-kernel facility messages, however if
I load it the new way:
module(load="imklog" permitnonkernelfacility="on")
I'm not getting any non-kernel facility messages and I don't see any
warnings in the log either. I've tried other values as "yes", "1", etc
with no luck.