I'm running rsyslogd version 4.2.0 on Ubuntu 10.10, and I'm having trouble logging kernel messages.
The rsyslog configuration files look to me like they instruct rsyslogd to log kernel messages to /var/log/kern.log, but no messages are logged there. Using dmesg, I can confirm that kernel messages are being logged to the kernel's ring buffer, but they aren't being written out to the log file.
My configuration files for rsyslogd are pretty standard (I think I'm using the default settings). My /etc/rsyslog.conf contains:
$ModLoad imklog # provides kernel logging support
And in /etc/rsyslog.d/50-default.conf (the only file in rsyslog.d) is the usual rule for kernel messages:
kern.* -/var/log/kern.log
But no kernel messages appear in kern.log or in any of the other log files. Aside from that, rsyslogd is working the way I expect.
How do I get rsyslogd to log kernel messages to /var/log/kern.log?