On 28/07/2020 22.41, Marc Chamberlin wrote:
On 7/28/20 10:47 AM, Andrei Borzenkov wrote:
28.07.2020 19:18, Marc Chamberlin пишет:
...
In particular I am not really sure where the LOG chain will send its output, I am guessing it is to the messages log file. Did you try to read manual page or other documentation before guessing? It sends output to kernel log buffer.
Yes I do try to RTFMs before asking questions, ;-) and I did my best to grok the man pages, and yes I did read that output from kernel logging is sent to the "kernel log file" Trouble is that I do not find a kern.log file in /var/log so I assumed that like most other things which get logged, the log messages from the kernel end up in /var/log/messages. I guess I am wrong to make that assumption, but can you tell me how to activate and direct the kernel log messages to /var/log/kern.log? Most of the documentation I find, in Google searches, seem to imply this is done by default in other distros, and apparently in OpenSuSE it is not? I don't find any documentation when I search for "opensuse kernel log file configuration" that seems relevant.
Because in openSUSE the kernel messages go to /var/log/messages by default, except the firewall related messages that go to /var/log/firewall. IF syslog is enabled, which I think it is currently by default, but nor sure. AND if you are using SuSEfirewall2. If you are using the new firewall daemon, the log is disabled by default and you have to activate it in the firewall configuration, I think.
On a lark, I did try to start the kernel logging service - klogd - thinking that might be what is needed to see the kernel log messages in a separate file, but it refuses to start. I get the following message which I do not grok -
No need.
Check your logging software configuration. You do not say what distribution you are using, what version, what log program fills in /var/log/messages so there is not much more to say.
Sorry, I guess I didn't think that was going to be relevant. On the system I am testing, I am running OpenSuSE Leap 15.0 using rsyslogd 8.33.1 for my logging service.'
Good. -- Cheers / Saludos, Carlos E. R. (from openSUSE 15.1 (Legolas))