I'm new to syslog-ng, maybe this question was asked before, but I do not get logged any messages from kernel (packet logger for example). Tried both 1.2.4 and 1.4.0. For some reason logger -p kern.info works. Klogd is running. If I stop it, kernel logs to console. config file: # Global Options options { sync(0); }; # Source dirvers source src_int { internal(); }; source src { unix-stream("/dev/log"); }; # log everything to a console tty destination d_tty { file("/dev/tty12"); }; log { source("src"); source("src_int"); destination("d_tty"); }; _____________________________ Martin Krejcirik <mk@krej.cz>
you need to start klogd _after_ you start syslog-ng for it to work properly. (or at least that's how it is on my system) worked fine for me once I realized that.. Martin Krejcirik wrote:
I'm new to syslog-ng, maybe this question was asked before, but I do not get logged any messages from kernel (packet logger for example). Tried both 1.2.4 and 1.4.0. For some reason logger -p kern.info works. Klogd is running. If I stop it, kernel logs to console.
participants (2)
-
Brian Johnson
-
Martin Krejcirik