<div dir="ltr">Hello All, Hope you are all doing great. I am unable to start syslog-ng service <div><br></div><div>Here is some information:</div><div><br></div><div><b>OS Version: Cent OS 7.3</b></div><div><br></div><div><b>I compiled it from a tar ball..</b></div><div><b><br></b></div><div><div>[root@xxxxx system]# syslog-ng -V</div><div>syslog-ng 3.9.1</div><div>Installer-Version: 3.9.1</div><div>Revision:</div><div>Module-Directory: /usr/local/lib/syslog-ng</div><div>Module-Path: /usr/local/lib/syslog-ng</div><div>Available-Modules: kvformat,cef,disk-buffer,add-contextual-data,syslogformat,afsocket,affile,afprog,afuser,afamqp,afmongodb,csvparser,confgen,system-source,linux-kmsg-format,basicfuncs,cryptofuncs,dbparser,afstomp,pseudofile,graphite,sdjournal,date</div><div>Enable-Debug: off</div><div>Enable-GProf: off</div><div>Enable-Memtrace: off</div><div>Enable-IPv6: on</div><div>Enable-Spoof-Source: off</div><div>Enable-TCP-Wrapper: off</div><div>Enable-Linux-Caps: off</div></div><div><b><br></b></div><div><b><br></b></div><div><b>I manually added this file, this didn't come with install...</b></div><div><br></div><div><div>[root@xxxxx system]# cat syslog-ng.service</div><div>[Unit]</div><div>Description=System Logger Daemon</div><div>Documentation=man:syslog-ng(8)</div><div><br></div><div>[Service]</div><div>Type=notify</div><div>Sockets=syslog.socket</div><div>ExecStart=/usr/sbin/syslog-ng -F -p /var/run/syslogd-ng.pid --fd-limit 50000</div><div>ExecReload=/bin/kill -HUP $MAINPID</div><div>StandardOutput=null</div><div>Restart=on-failure</div><div><br></div><div>[Install]</div><div>WantedBy=multi-user.target</div><div>Alias=syslog.service</div><div>[root@sl-sz3-splunk01 system]# pwd</div><div>/lib/systemd/system</div></div><div><br></div><div><b>Had parser errors:</b></div><div><br></div><div><div>[root@xxxxxx ~]# syslog-ng -s</div><div>Error parsing config, Error compiling template (Unknown template function "format-json") in /usr/local/share/syslog-ng/include/scl/cim/template.conf at line 23, column 32:</div><div> included from /usr/local/etc/scl.conf line 29, column 1</div><div> included from /usr/local/etc/syslog-ng.conf line 8, column 1</div><div><br></div><div>template-function "format-cim" "$(format-json --pair @timestamp='${R_ISODATE}' --pair @message='${MSG}' --key .cim.* --shift 5 --key _* --key .* --replace-prefix .=_ --key *.*)\n";</div><div> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^</div><div><br></div><div>syslog-ng documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng">http://www.balabit.com/support/documentation/?product=syslog-ng</a></div><div>mailing list: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a></div></div><div><br></div><div><b>Moved /usr/local/share/syslog-ng/include/scl/cim and no parser errors.</b></div><div><b>But still unable to start.</b></div><div><br></div><div><div>[root@xxxxx system]# systemctl status syslog-ng.service</div><div>● syslog-ng.service - System Logger Daemon</div><div> Loaded: loaded (/usr/lib/systemd/system/syslog-ng.service; disabled; vendor preset: enabled)</div><div> Active: failed (Result: start-limit) since Mon 2017-05-01 10:46:58 PDT; 7s ago</div><div> Docs: man:syslog-ng(8)</div><div> Process: 2170 ExecStart=/usr/sbin/syslog-ng -F -p /var/run/syslogd-ng.pid --fd-limit 50000 (code=exited, status=203/EXEC)</div><div> Main PID: 2170 (code=exited, status=203/EXEC)</div><div><br></div><div>May 01 10:46:58 <a href="http://sl-sz3-splunk01.slc.ebay.com">sl-sz3-splunk01.slc.ebay.com</a> systemd[1]: syslog-ng.service: main process exited, code=exited, status=203/EXEC</div><div>May 01 10:46:58 <a href="http://sl-sz3-splunk01.slc.ebay.com">sl-sz3-splunk01.slc.ebay.com</a> systemd[1]: Failed to start System Logger Daemon.</div><div>May 01 10:46:58 <a href="http://sl-sz3-splunk01.slc.ebay.com">sl-sz3-splunk01.slc.ebay.com</a> systemd[1]: Unit syslog-ng.service entered failed state.</div><div>May 01 10:46:58 <a href="http://sl-sz3-splunk01.slc.ebay.com">sl-sz3-splunk01.slc.ebay.com</a> systemd[1]: syslog-ng.service failed.</div><div>May 01 10:46:58 <a href="http://sl-sz3-splunk01.slc.ebay.com">sl-sz3-splunk01.slc.ebay.com</a> systemd[1]: syslog-ng.service holdoff time over, scheduling restart.</div><div>May 01 10:46:58 <a href="http://sl-sz3-splunk01.slc.ebay.com">sl-sz3-splunk01.slc.ebay.com</a> systemd[1]: start request repeated too quickly for syslog-ng.service</div><div>May 01 10:46:58 <a href="http://sl-sz3-splunk01.slc.ebay.com">sl-sz3-splunk01.slc.ebay.com</a> systemd[1]: Failed to start System Logger Daemon.</div><div>May 01 10:46:58 <a href="http://sl-sz3-splunk01.slc.ebay.com">sl-sz3-splunk01.slc.ebay.com</a> systemd[1]: Unit syslog-ng.service entered failed state.</div><div>May 01 10:46:58 <a href="http://sl-sz3-splunk01.slc.ebay.com">sl-sz3-splunk01.slc.ebay.com</a> systemd[1]: syslog-ng.service failed.</div><div><br></div><div>What I am I missing? Any help is appreciated. Thank you.</div><div><br></div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>Thanks,<div>Vijay Amrut.</div></div></div></div>
</div></div>