<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,afsocket,syslogformat,afsocket-notls,afsocket-tls,affile,afprog,afuser,afamqp,afmongodb,csvparser,confgen,system-source,linux-kmsg-format,basicfuncs,cryptofuncs,dbparser,json-plugin,tfgeoip,afstomp<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></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">https://lists.balabit.hu/pipermail/syslog-ng/2016-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">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><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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-<wbr>contextual-data,syslogformat,<wbr>afsocket,affile,afprog,afuser,<wbr>afamqp,afmongodb,csvparser,<wbr>confgen,system-source,linux-<wbr>kmsg-format,basicfuncs,<wbr>cryptofuncs,dbparser,afstomp,<wbr>pseudofile,graphite,sdjournal,<wbr>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/<wbr>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>                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<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/<wbr>support/documentation/?<wbr>product=syslog-ng</a></div><div>mailing list: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" target="_blank">https://lists.balabit.hu/<wbr>mailman/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/<wbr>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" 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="HOEnZb"><font color="#888888"><div><br></div><div><br></div>-- <br><div class="m_-6795430797030186389gmail_signature"><div dir="ltr"><div>Thanks,<div>Vijay Amrut.</div></div></div></div>
</font></span></div></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>