/dev/log
is the default entry for system logging. In the case of a systemd implementation (this case) it's a symlink to whatever /run/systemd/journal/dev-log
. It used to be a receiving end of a unix socket handled by syslog daemon.
~$ echo "hello" > /dev/log
bash: /dev/log: No such device or address
~$ fuser /dev/log
~$ ls -la /dev/log
lrwxrwxrwx 1 root root 28 Aug 23 07:13 /dev/log -> /run/systemd/journal/dev-log
What is the clarification of the error that pops when you try to write to it and why isn't there a process holding that file (output from fuser /dev/log
empty?
The logging does work normally on the system.
~$ logger test
~$ journalctl --since=-1m
-- Logs begin at Thu 2018-05-24 04:23:46 CEST, end at Thu 2018-08-23 13:07:25 CEST. --
Aug 23 13:07:24 alan-N551JM alan[12962]: test
Extending with comment suggestions
~$ sudo fuser /dev/log
/run/systemd/journal/dev-log: 1 311
~$ ls -lL /dev/log
srw-rw-rw- 1 root root 0 Aug 23 07:13 /dev/log
logger "test"
? Please add to the question. – Rui F Ribeiro Aug 23 '18 at 10:59sudo fuser /dev/log
andls -lL /dev/log
– andcoz Aug 23 '18 at 11:51fuser
was a permission issue. Would of have totally missed that due to the silence. – TheMeaningfulEngineer Aug 23 '18 at 12:02connect
rather thanopen
. – Mark Plotnick Aug 23 '18 at 19:22s
(socket) not ap
(pipe). You cannot useopen
based commands on it. – andcoz Aug 24 '18 at 08:13