[syslog-ng] Can't get kernel messages on FreeBSD
Tomoki BENIYA
beniya at bit-isle.co.jp
Fri Oct 19 09:59:59 CEST 2012
Hi all.
I installed syslog-ng3.3.6_3 using ports on FreeBSD9.0-RELEASE(i386).
I can't get kernel messages by default configuration.
ex. em0: link state changed to DOWN
em0: link state changed to UP
But, I can see them using 'cat /dev/klog' after stoppedsyslog-ng. So, I
think syslog-ng can't get kermel messages from /dev/klog.
How to get kernel messages using syslog-ng?
Please give me a hint or something!
* /etc/rc.conf
syslogd_enable="NO"
syslog_ng_enable="YES"
* /usr/local/etc/syslog-ng.conf
source s_kern { file("/dev/klog"); };
filter f_kern { facility(kern); };
destination d_kern { file("/var/log/kern.log"); };
log { source(s_kern); filter(f_kern); destination(d_kern); };
--
Tomoki BENIYA <beniya at bit-isle.co.jp>
More information about the syslog-ng
mailing list