[syslog-ng] freebsd /dev/klog logging

Jan Schaumann jschauma at netmeister.org
Wed Aug 26 04:40:34 CEST 2009


Hello,

I seem to have problems getting any messages from /dev/klog when using
syslog-ng 3.0.3.  My syslog-ng.conf file looks like this:

===

template t_default {
        template("${DATE} <${FACILITY}.${PRIORITY}> ${HOST} ${MSG}\n");
};

destination d_tmp {
        file("/var/log/klog"
                template(t_default));

};

source s_klog {
        file("/dev/klog");
};

log {   
        source(s_klog);
        destination(d_tmp);
};

===

I have a kernel module that just calls log(9) to generate a message on
/dev/klog.  It loads fine, and the message does appear in the dmesg(8),
but nothing is written to /var/log/klog.

Likewise, messages from ipfw(8) do not show up in that file.

I'm quite sure I'm missing something... but what?

Many thanks in advance,
-Jan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://lists.balabit.hu/pipermail/syslog-ng/attachments/20090825/43f292a7/attachment.pgp 


More information about the syslog-ng mailing list