On my machine (16.04.1) it seems that /dev/log is missing. It's probably always been missing.
The real reason I am here asking for help is that I am using virtualmin with csf and the SYSLOG_CHECK
option has always failed (even when the OS was still 14.04 trusty).
This is what happens when I run logger:
# logger hi there
logger: socket /dev/log: No such file or directory
I also tried the 'python' way of doing things, as per this question:
# python -c 'import syslog; syslog.syslog("Hello World")'
(nothing is outputted, or appears in syslog)
So, looking at the /dev/
folder I notice that there is no 'log' there at all.
I checked on another machine (v14.04) and it has it: srw-rw-rw- 1 root root 0 Dec 16 20:34 log=
The main differences between the two machines are that the former was a launched instance from vultr.com (using an cloud-init aware install that they supplied), vs the latter machine (which works) which used an ubuntu ISO (a long time ago).
So, to the question:
How do I go about fixing the issue of why I don't have a /dev/log
file that some application (csf) is probably trying to write to? Note there are other messages appearing in /var/log/syslog
, so it's all a little confusing to me.
Any help appreciated.
Edit:
Contents of /lib/systemd/system/systemd-journald-dev-log.socket:
[Unit]
Description=Journal Socket (/dev/log)
Documentation=man:systemd-journald.service(8) man:journald.conf(5)
DefaultDependencies=no
Before=sockets.target
IgnoreOnIsolate=yes
[Socket]
Service=systemd-journald.service
ListenDatagram=/run/systemd/journal/dev-log
Symlinks=/dev/log
SocketMode=0666
PassCredentials=yes
PassSecurity=yes
ReceiveBuffer=8M
SendBuffer=8M