0
I am on Ubuntu 18.04 and have been trying to get some logs to display on xconsole. I followed the instructions provided by /usr/share/doc/rsyslog/README.Debian
:
To create the /dev/xconsole pipe, copy examples/tmpfiles.d/xconsole.conf to
/etc/tmpfiles.d/ and then run "systemd-tmpfiles --create xconsole.conf".
And finally copy examples/rsyslog.d/xconsole.conf to /etc/rsyslog.d/ and restart the rsyslog service.
and now there is a file /etc/rsyslog.d/xconsole.conf
whose contents are
# The named pipe /dev/xconsole is for the `xconsole' utility. To use it,
# you must invoke `xconsole' with the `-file' option:
# $ xconsole -file /dev/xconsole [...]
daemon.*;mail.*;\
news.err;\
*.=debug;*.=info;\
*.=notice;*.=warn;\
auth,authpriv.none |/dev/xconsole
But when I start xconsole, either as root or as normal user, most of times nothing is printed on it, although it has already happened sometimes that it worked for some minutes and then stopped showing the logs.
/dev/xconsole
permissions are prw-r-----
(when trying to read it as normal user, I chmod it to prw-r--r--
).
# echo 'x' > /dev/xconsole
always succeeds and shows up on xconsole (started as root or normal user), so I am clueless as to why the logging is not working as expected.