Information: Forum is in read-only mode
For details and other support options see

[Ubuntu 15.10] imklog: cannot open kernel log (/proc/kmsg):

Everything related with getting rsyslog up and running (but not beyond that point ;))

Moderator: alorbach

Google Ads

[Ubuntu 15.10] imklog: cannot open kernel log (/proc/kmsg):

Postby richb-hanover » Thu Jun 02, 2016 12:45 pm

I didn't get a solution to my problem (see trouble-installing-ubuntu-t12759.html for details), so I have done more research on my own. I have it partially working (but there were errors installing).

My syslog and kern.log files now have entries that state
Code: Select all
rsyslogd: imklog: cannot open kernel log (/proc/kmsg): Operation not permitted.

My Questions (sorry for asking so many):

- I especially want to log entries created by iptables. By default they are written to /var/log/kern.log
- Does rsyslogd require access to /proc/kmsg to run? (I believe it's true that commenting out the $ModLoad imklog line removes that dependency)
- Does rsyslogd require access to /proc/kmsg to log messages from iptables?
- I am running on a VPS. Is it likely that the VPS doesn't provide access to /proc/kmsg for guest OS's? (Maybe that's why I can't read it...)
- How do I restart rsyslogd (say, after editing /etc/rsyslog.conf) to try new settings?

Many thanks!

Other info:

- I have updated rsyslogd to 8.19.0-0adiscon1wily1 - /etc/apt/sources.list.d/adiscon-ubuntu-v8-stable-wily.list contains:
Code: Select all
deb wily main
# deb-src wily main
# deb-src wily main

- Here's the installation log. Note the errors about start/stop actions.

Code: Select all
richb@netperf:~$ sudo apt-get install rsyslog
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  rsyslog-mysql rsyslog-pgsql rsyslog-doc rsyslog-gssapi rsyslog-relp rsyslog-elasticsearch rsyslog-mmjsonparse rsyslog-imptcp apparmor
Recommended packages:
The following NEW packages will be installed:
0 upgraded, 1 newly installed, 0 to remove and 32 not upgraded.
Need to get 0 B/625 kB of archives.
After this operation, 2,003 kB of additional disk space will be used.
Selecting previously unselected package rsyslog.
(Reading database ... 136897 files and directories currently installed.)
Preparing to unpack .../rsyslog_8.19.0-0adiscon1wily1_amd64.deb ...
Unpacking rsyslog (8.19.0-0adiscon1wily1) ...
Processing triggers for systemd (225-1ubuntu9) ...
Processing triggers for man-db (2.7.4-1) ...
Setting up rsyslog (8.19.0-0adiscon1wily1) ...

Creating config file /etc/rsyslog.d/50-default.conf with new version
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
Job for rsyslog.service failed because the control process exited with error code. See "systemctl status rsyslog.service" and "journalctl -xe" for details.
invoke-rc.d: initscript rsyslog, action "start" failed.
dpkg: error processing package rsyslog (--configure):
 subprocess installed post-installation script returned error exit status 1
Processing triggers for systemd (225-1ubuntu9) ...
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)
Posts: 5
Joined: Thu Feb 11, 2016 3:56 pm

Urgent Question?

  • Pulling out your Hair?
  • Wasting Time and Money?
  • Deadline Approaching?

Re: [Ubuntu 15.10] imklog: cannot open kernel log (/proc/kms

Postby richb-hanover » Thu Jun 02, 2016 12:54 pm

I found a solution to my problem. (The initial problem was that my /var/log/* files weren't being updated, so I needed some kind of syslog working.)

The fix was to install syslog-ng (sudo apt-get install syslog-ng) and everything started working immediately.
Posts: 5
Joined: Thu Feb 11, 2016 3:56 pm

Google Ads

Return to Installation

Who is online

Users browsing this forum: No registered users and 0 guests