Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

imklog: cannot open kernel log (/proc/kmsg): No such file or directory #2491

Closed
steowens opened this issue Feb 20, 2018 · 2 comments
Closed
Labels

Comments

@steowens
Copy link

Expected behavior

rsyslog starts and does not emit the error with text to syslog:
rsyslogd: imklog: cannot open kernel log (/proc/kmsg): No such file or directory.

Actual behavior

rsyslog starts and emits the error with text to syslog:
rsyslogd: imklog: cannot open kernel log (/proc/kmsg): No such file or directory.

Steps to reproduce the behavior

On Windows 10 enable Windows Linux Subsystem WSL.
Start a bash console, by entering bash in the run bar and then selecting bash.

Enter the following commands:
sudo -i
apt-get update
apt-get install rsyslog
service rsyslog start
tail -f /var/log/syslog

Environment

  • rsyslog version: 8.16.0
  • platform: Linux LAPTOP-OT0BG026 4.4.0-43-Microsoft Various fixes in GT signing #1-Microsoft Wed Dec 31 14:42:53 PST 2014 x86_64 x86_64 x86_64 GNU/Linux
  • for configuration questions/issues, include rsyslog.conf:

Note: rsyslog documentation is available here:
pre-release,
current stable release

@rgerhards
Copy link
Member

It looks like the Windows Subsystem does not provide a kernel log, or maybe you do not have permissions to read it.

Can you do a sudo cat /proc/kmsg and report what happens?

@lock
Copy link

lock bot commented Dec 26, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Dec 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants