<p dir="ltr">Hmmm, maybe that symlink should have been there in the first place and something (syslog-ng even...) may have removed it.</p>
<div class="gmail_quote">On Feb 22, 2016 12:54 AM, "Árpád Magosányi" <<a href="mailto:mag@magwas.rulez.org">mag@magwas.rulez.org</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 02/22/2016 12:14 AM, Scheidler, Balázs wrote:<br>
><br>
><br>
> Seems that system() generates /dev/log but probably the systemd<br>
> workaround in the unix-dgram driver kicks in and that makes syslog-ng<br>
> to open the systemd forwarder socket in /run/...<br>
><br>
> That means that for some reason journald doesn't open /dev/log and<br>
> that's why logger doesn't work. Can you check if systemd-journal operates?<br>
><br>
# ps ax |grep systemd-journal<br>
192 ? Ss 0:14 /lib/systemd/systemd-journald<br>
# lsof -p 192<br>
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME<br>
systemd-j 192 root cwd DIR 254,17 4096 2 /<br>
systemd-j 192 root rtd DIR 254,17 4096 2 /<br>
systemd-j 192 root txt REG 254,17 231664 2099945<br>
/lib/systemd/systemd-journald<br>
systemd-j 192 root mem REG 0,15 8388608 313224<br>
/run/log/journal/b53205d836a20f21da45fc9300685526/system.journal<br>
systemd-j 192 root mem REG 254,17 18640 2097405<br>
/lib/x86_64-linux-gnu/libattr.so.1.1.0<br>
systemd-j 192 root mem REG 254,17 448440 2097688<br>
/lib/x86_64-linux-gnu/libpcre.so.3.13.1<br>
systemd-j 192 root mem REG 254,17 72136 2097738<br>
/lib/x86_64-linux-gnu/libgpg-error.so.0.13.0<br>
systemd-j 192 root mem REG 254,17 14664 2100020<br>
/lib/x86_64-linux-gnu/<a href="http://libdl-2.19.so" rel="noreferrer" target="_blank">libdl-2.19.so</a><br>
systemd-j 192 root mem REG 254,17 35288 2097409<br>
/lib/x86_64-linux-gnu/libacl.so.1.1.0<br>
systemd-j 192 root mem REG 254,17 142728 2099705<br>
/lib/x86_64-linux-gnu/libselinux.so.1<br>
systemd-j 192 root mem REG 254,17 924096 2097740<br>
/lib/x86_64-linux-gnu/libgcrypt.so.20.0.3<br>
systemd-j 192 root mem REG 254,17 141752 2097693<br>
/lib/x86_64-linux-gnu/liblzma.so.5.0.0<br>
systemd-j 192 root mem REG 254,17 1738176 2100017<br>
/lib/x86_64-linux-gnu/<a href="http://libc-2.19.so" rel="noreferrer" target="_blank">libc-2.19.so</a><br>
systemd-j 192 root mem REG 254,17 137440 2100013<br>
/lib/x86_64-linux-gnu/<a href="http://libpthread-2.19.so" rel="noreferrer" target="_blank">libpthread-2.19.so</a><br>
systemd-j 192 root mem REG 254,17 140928 2100014<br>
/lib/x86_64-linux-gnu/<a href="http://ld-2.19.so" rel="noreferrer" target="_blank">ld-2.19.so</a><br>
systemd-j 192 root mem REG 0,15 8 1404<br>
/run/systemd/journal/kernel-seqnum<br>
systemd-j 192 root 0r CHR 1,3 0t0 1028 /dev/null<br>
systemd-j 192 root 1w CHR 1,3 0t0 1028 /dev/null<br>
systemd-j 192 root 2w CHR 1,3 0t0 1028 /dev/null<br>
systemd-j 192 root 3u unix 0xffff8800d8aea000 0t0 1323<br>
/run/systemd/journal/stdout<br>
systemd-j 192 root 4u unix 0xffff8800db5fec00 0t0 1325<br>
/run/systemd/journal/socket<br>
systemd-j 192 root 5u unix 0xffff8800d8aea800 0t0 1316<br>
/run/systemd/journal/dev-log<br>
systemd-j 192 root 6w CHR 1,11 0t0 1034 /dev/kmsg<br>
systemd-j 192 root 7u 0000 0,9 0 6651<br>
anon_inode<br>
systemd-j 192 root 8u 0000 0,9 0 6651<br>
anon_inode<br>
systemd-j 192 root 9u CHR 1,11 0t0 1034 /dev/kmsg<br>
systemd-j 192 root 10r REG 0,3 0 1405<br>
/proc/sys/kernel/hostname<br>
systemd-j 192 root 11u 0000 0,9 0 6651<br>
anon_inode<br>
systemd-j 192 root 13u 0000 0,9 0 6651<br>
anon_inode<br>
systemd-j 192 root 14u unix 0xffff8800db63fc00 0t0 1674<br>
/run/systemd/journal/stdout<br>
systemd-j 192 root 15u unix 0xffff8800d8a7ac00 0t0 1678<br>
/run/systemd/journal/stdout<br>
systemd-j 192 root 16u unix 0xffff8800d8a7a400 0t0 1689<br>
/run/systemd/journal/stdout<br>
systemd-j 192 root 17u unix 0xffff8800db053400 0t0 366405<br>
/run/systemd/journal/stdout<br>
systemd-j 192 root 18u unix 0xffff8800d8a57400 0t0 1696<br>
/run/systemd/journal/stdout<br>
systemd-j 192 root 19u unix 0xffff8800d886ec00 0t0 12637<br>
/run/systemd/journal/stdout<br>
systemd-j 192 root 20u unix 0xffff8800d886e400 0t0 16602<br>
/run/systemd/journal/stdout<br>
systemd-j 192 root 21u REG 0,15 8388608 313224<br>
/run/log/journal/b53205d836a20f21da45fc9300685526/system.journal<br>
systemd-j 192 root 22u unix 0xffff8800d8b2d800 0t0 9746<br>
/run/systemd/journal/stdout<br>
<br>
# cat journald.conf<br>
# This file is part of systemd.<br>
#<br>
# systemd is free software; you can redistribute it and/or modify it<br>
# under the terms of the GNU Lesser General Public License as published by<br>
# the Free Software Foundation; either version 2.1 of the License, or<br>
# (at your option) any later version.<br>
#<br>
# See journald.conf(5) for details<br>
<br>
[Journal]<br>
#Storage=auto<br>
#Compress=yes<br>
#Seal=yes<br>
#SplitMode=uid<br>
#SyncIntervalSec=5m<br>
#RateLimitInterval=30s<br>
#RateLimitBurst=1000<br>
#SystemMaxUse=<br>
#SystemKeepFree=<br>
#SystemMaxFileSize=<br>
#RuntimeMaxUse=<br>
#RuntimeKeepFree=<br>
#RuntimeMaxFileSize=<br>
#MaxRetentionSec=<br>
#MaxFileSec=1month<br>
#ForwardToSyslog=yes<br>
#ForwardToKMsg=no<br>
#ForwardToConsole=no<br>
#ForwardToWall=yes<br>
#TTYPath=/dev/console<br>
#MaxLevelStore=debug<br>
#MaxLevelSyslog=debug<br>
#MaxLevelKMsg=notice<br>
#MaxLevelConsole=info<br>
#MaxLevelWall=emerg<br>
<br>
tried to uncomment ForwardToSyslog=yes and reboot.<br>
journald does not have /dev/log open after that. however the symlink<br>
/dev/log -> /run/systemd/journal/dev-log survived the reboot, and I can<br>
still use logger, so functionally my system is okay for now.<br>
<br>
<br>
______________________________________________________________________________<br>
Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" rel="noreferrer" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" rel="noreferrer" target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>
FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" rel="noreferrer" target="_blank">http://www.balabit.com/wiki/syslog-ng-faq</a><br>
<br>
</blockquote></div>