[syslog-ng] kernel message logging

Sandor Geller wildy at balabit.hu
Mon Aug 14 10:50:33 CEST 2006


Bruce Penrod wrote:

> Apart from the problem I described in my previous post concerning the 
> hostname being dropped from messages forwarded over udp6 to a loghost, 
> I'm also running into a little difficulty with kernel message handling. 
>  It seems that the internal syslog-ng kernel message logging lacks a 
> feature present in klogd that allows inhibiting kernel messages from 
> appearing on the console, unless they are above a command line settable 
> priority level.  With syslog-ng, I seem to be getting all of the kernel 
> messages coming out on /dev/console.  I'm in an embedded environment 
> using the mtd flash kernel drivers, which generate a lot of info level 
> messages while erasing and writing to raw flash devices.  klogd allows 
> me to inhibit these quite nicely.  Am I correct that syslog-ng lacks 
> this capability, or just that I don't know how to configure it?  

Separate the kernel messages into a new source, and use the usertty()
destination to log only the appropriate messages to the console. If you
want to turn off the logging of messages to the console use dmesg, or
set up /proc/sys/kernel/printk manually. That's what klogd does.

-- 
Sandor Geller
wildy at balabit.hu


More information about the syslog-ng mailing list