<div dir="ltr">I've got syslog-ng v3.7.3_7 running on FreeBSD 11-REL as the log server with both FreeBSD 11-REL and CentOS7 clients (the CentOS clients are running v3.5.6-3.el7 as it's the latest version installed by yum epel repo). <div><br></div><div>It's always worked perfectly on the FreeBSD systems, but a few months ago I had the same problem described here when setting up a CentOS client- </div><div><br></div><div><a href="https://serverfault.com/questions/760383/syslog-ng-working-as-foreground-process-but-not-as-daemon">https://serverfault.com/questions/760383/syslog-ng-working-as-foreground-process-but-not-as-daemon</a><br></div><div><br></div><div>...I followed the fix of uncommenting the <span style="color:rgb(36,39,41);font-family:arial,"helvetica neue",helvetica,sans-serif;font-size:13px">"ForwardToSyslog=yes"</span><span style="color:rgb(36,39,41);font-family:arial,"helvetica neue",helvetica,sans-serif;font-size:13px"> line in </span><span style="color:rgb(36,39,41);font-family:arial,"helvetica neue",helvetica,sans-serif;font-size:13px">/etc/systemd/journald.conf and it started logging perfectly on CentOS clients, too. </span></div><div><span style="color:rgb(36,39,41);font-family:arial,"helvetica neue",helvetica,sans-serif;font-size:13px"><br></span></div><div><span style="color:rgb(36,39,41);font-family:arial,"helvetica neue",helvetica,sans-serif;font-size:13px">However, in setting up another CentOS7 client yesterday, this fix no longer worked. If I start syslog-ng via-</span></div><div><span style="color:rgb(36,39,41);font-family:arial,"helvetica neue",helvetica,sans-serif;font-size:13px"><br></span></div><div><font color="#242729" face="arial, helvetica neue, helvetica, sans-serif">chkconfig syslog-ng on</font></div><div><font color="#242729" face="arial, helvetica neue, helvetica, sans-serif">systemctl restart syslog-ng.service</font></div><div><span style="color:rgb(36,39,41);font-family:arial,"helvetica neue",helvetica,sans-serif;font-size:13px"><br></span></div><div><span style="color:rgb(36,39,41);font-family:arial,"helvetica neue",helvetica,sans-serif;font-size:13px">..it starts and runs and is shown in ps, starts automatically after reboot, but doesn't log to the server. If I start it manually from the terminal with-</span></div><div><span style="color:rgb(36,39,41);font-family:arial,"helvetica neue",helvetica,sans-serif;font-size:13px"><br></span></div><div>nohup /usr/sbin/syslog-ng -F -p /var/run/syslogd.pid &</div><div><br></div><div>...then it does work and starts logging to the server immediately. In that case there are two identical (except for pid) lines shown by ps, e.g.-</div><div><br></div><div>482 /usr/sbin/syslog-ng -F -p /var/run/syslogd.pid<br></div><div>904 /usr/sbin/syslog-ng -F -p /var/run/syslogd.pid<br></div><div><br></div><div>...but only the one I started from the terminal (nohup...) actually logs. </div><div><br></div><div>Any help would be much appreciated.</div><div><br></div><div>-jl</div><div><br></div></div>