Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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?

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.