Error while setting up syslog-ng

Hi All,

I am setting up syslog support by following the document. When I input service syslog-ng restart

admin@LibreNMSa:~$ sudo service syslog-ng restart
[sudo] password for admin:
Job for syslog-ng.service failed because the control process exited with error code.
See “systemctl status syslog-ng.service” and “journalctl -xe” for details.

When I input ‘systemctl status syslog-ng.service’

syslog-ng.service - System Logger Daemon
Loaded: loaded (/lib/systemd/system/syslog-ng.service; enabled; vendor preset
Active: failed (Result: exit-code) since Fri 2019-08-30 15:51:54 EDT; 1min 37
Docs: man:syslog-ng(8)
Process: 1596 ExecStart=/usr/sbin/syslog-ng -F $SYSLOGNG_OPTS (code=exited, st
Main PID: 1596 (code=exited, status=1/FAILURE)
Status: “Starting up… (Fri Aug 30 15:51:54 2019”

Aug 30 15:51:54 LibreNMSa systemd[1]: syslog-ng.service: Main process exited, co
Aug 30 15:51:54 LibreNMSa systemd[1]: syslog-ng.service: Failed with result 'exi
Aug 30 15:51:54 LibreNMSa systemd[1]: Failed to start System Logger Daemon.
Aug 30 15:51:54 LibreNMSa systemd[1]: syslog-ng.service: Service hold-off time o
Aug 30 15:51:54 LibreNMSa systemd[1]: syslog-ng.service: Scheduled restart job,
Aug 30 15:51:54 LibreNMSa systemd[1]: Stopped System Logger Daemon.
Aug 30 15:51:54 LibreNMSa systemd[1]: syslog-ng.service: Start request repeated
Aug 30 15:51:54 LibreNMSa systemd[1]: syslog-ng.service: Failed with result 'exi
Aug 30 15:51:54 LibreNMSa systemd[1]: Failed to start System Logger Daemon.

How do I solve this problem? Please let me know.

Did you apply the configuration in the /etc/syslog-ng/syslog-ng.conf file that the librenms doc states? If the syslog-ng.conf has one typo, it won’t start. I found that out when I was adding filters to filter out specific syslogs. Also need to make sure the syslog option in the config.php is enabled.

1 Like

Hi,

By following your suggestion, I checked the config file again and replaced with the configuration written on the document, not added.(The Instruction in the document make me confused.) Yeah! now it is working! I can use syslog function now :slight_smile: Thanks for your help!