Kernel syslog messages
I'm forwarding all syslog messages to a file to be parsed by a log monitor app.
I would like to not receive the kernel messages created during the boot in that file.
As far as I tried the only way to avoid this is to add:
kern.none to the line for the redirection in syslog.conf
Other message levels log thos messages.
The problem is that this disables any kernel messages, and I would like to receive warning, critical events, etc... from the kernel.
Anyone has an idea of how could I disable those messages or at least receive only warnings and above messages?
In /etc/syslog.conf change kern.none to kern.crit;kern.err;kern.warn and redirect to anything you want.
I tried with all the levels, any level generate the boot kernel messages.
Also ensure syslog.conf doesn't include duplicates or any other lines sending everything to the log file.
The line reads like this now:
Maybe it has redundant info, bu it works.