<div dir="ltr"><div><div><div>Hi,<br><br></div>The first problem is the lack of the JSON module. For the second one there is not enough information to see, if it is a syslog-ng or a systemd service file problem. Can you start syslog-ng from the command line? I mean using the following command line to catch any problems on the terminal:<br></div><br>syslog-ng -Fvde<br><br></div>Bye,<br><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Peter Czanik (CzP) <<a href="mailto:peter.czanik@balabit.com" target="_blank">peter.czanik@balabit.com</a>><br>Balabit / syslog-ng upstream<br><a href="https://www.balabit.com/blog/author/peterczanik/" target="_blank">https://www.balabit.com/blog/author/peterczanik/</a><br><a href="https://twitter.com/PCzanik" target="_blank">https://twitter.com/PCzanik</a></div></div></div></div>
<br><div class="gmail_quote">On Mon, May 1, 2017 at 9:11 PM, Dwijadas Dey <span dir="ltr"><<a href="mailto:dwijad@gmail.com" target="_blank">dwijad@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div>Hi<br></div> Vijay<br></div> I don't see json-plugin under Available-Modules section in the output of # syslog-ng -V<br><br></div>I have also compiled syslog-ng from source (3.6.4), and it shows json-plugin in the output of syslog-ng -V You may need to pass enable-json flag while compiling it from source.<br><br># syslog-ng -V<br>syslog-ng 3.6.4<br>Installer-Version: 3.6.4<br>Revision: <br>Compile-Date: Dec 18 2016 15:02:59<br>Available-Modules: pseudofile,graphite,sdjournal,<wbr>afsocket,syslogformat,<wbr>afsocket-notls,afsocket-tls,<wbr>affile,afprog,afuser,afamqp,<wbr>afmongodb,csvparser,confgen,<wbr>system-source,linux-kmsg-<wbr>format,basicfuncs,cryptofuncs,<wbr>dbparser,json-plugin,tfgeoip,<wbr>afstomp<span class=""><br>Enable-Debug: off<br>Enable-GProf: off<br>Enable-Memtrace: off<br>Enable-IPv6: on<br>Enable-Spoof-Source: off<br>Enable-TCP-Wrapper: off<br>Enable-Linux-Caps: off<br><br></span></div>Since you are using the version 3.9.1, i am not 100% sure that, this is the issue.<br><br></div>Also, you can try this link.<br><a href="https://lists.balabit.hu/pipermail/syslog-ng/2016-February/022667.html" target="_blank">https://lists.balabit.hu/<wbr>pipermail/syslog-ng/2016-<wbr>February/022667.html</a><br><br></div>Regards<br><div><div><div><br><div><br></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Tue, May 2, 2017 at 12:00 AM, vijay amruth <span dir="ltr"><<a href="mailto:vijayamruth@gmail.com" target="_blank">vijayamruth@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><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-c<wbr>ontextual-data,syslogformat,af<wbr>socket,affile,afprog,afuser,af<wbr>amqp,afmongodb,csvparser,confg<wbr>en,system-source,linux-kmsg-<wbr>format,basicfuncs,cryptofuncs,<wbr>dbparser,afstomp,pseudofile,<wbr>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/inc<wbr>lude/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> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<wbr>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<wbr>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<wbr>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<wbr>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^</div><div><br></div><div>syslog-ng documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" target="_blank">http://www.balabit.com/support<wbr>/documentation/?product=<wbr>syslog-ng</a></div><div>mailing list: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" target="_blank">https://lists.balabit.hu/mailm<wbr>an/listinfo/syslog-ng</a></div></div><div><br></div><div><b>Moved /usr/local/share/syslog-<wbr>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/syslo<wbr>g-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" target="_blank">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" target="_blank">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" target="_blank">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" target="_blank">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" target="_blank">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" target="_blank">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" target="_blank">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" target="_blank">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" target="_blank">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><span class="m_-5689909321807450696HOEnZb"><font color="#888888"><div><br></div><div><br></div>-- <br><div class="m_-5689909321807450696m_-6795430797030186389gmail_signature"><div dir="ltr"><div>Thanks,<div>Vijay Amrut.</div></div></div></div>
</font></span></div></div>
<br></div></div>______________________________<wbr>______________________________<wbr>__________________<br>
Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" rel="noreferrer" target="_blank">https://lists.balabit.hu/mailm<wbr>an/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<wbr>/documentation/?product=<wbr>syslog-ng</a><br>
FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" rel="noreferrer" target="_blank">http://www.balabit.com/wiki/sy<wbr>slog-ng-faq</a><br>
<br>
<br></blockquote></div><br></div>
<br>______________________________<wbr>______________________________<wbr>__________________<br>
Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" rel="noreferrer" target="_blank">https://lists.balabit.hu/<wbr>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/<wbr>support/documentation/?<wbr>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/<wbr>syslog-ng-faq</a><br>
<br>
<br></blockquote></div><br></div>