<div dir="ltr"><div>Hi Team,</div><div><br></div><div>I have a setup of syslog-ng in Centos 7 with jdk <a href="http://1.8.To">1.8.To</a> use a custom java program i have installed syslog-ng-java plugin using yum install. I have added a custom syslog-ng file in conf.d directory.On starting the syslog-ng service i am reciving error destination java plugin not found.</div><div><br></div><div><b>ERROR:</b></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="margin-left:40px">Jun 24 14:16:01 localhost syslog-ng: Error parsing destination, destination plugin java not found in /etc/syslog-ng/conf.d/syslog-ng-custom.conf at line 15, column 3:<br>Jun 24 14:16:01 localhost syslog-ng: included from /etc/syslog-ng/syslog-ng.conf line 68, column 1<br>Jun 24 14:16:01 localhost syslog-ng: java(<br>Jun 24 14:16:01 localhost syslog-ng: ^^^^<br></div></blockquote></div><div><br></div><div>Syslog-ng is detecting the java plugin(verified by syslog-ng -V)</div><div><br></div><div><b>syslog-ng -V:</b></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">[root@localhost server]# syslog-ng -V<br>syslog-ng 3 (3.14.1)<br>Config version: 3.14<br>Installer-Version: 3.14.1<br>Revision: <br>Compile-Date: Feb 28 2018 07:34:20<br>Module-Directory: //usr/lib64/syslog-ng<br>Module-Path: //usr/lib64/syslog-ng<br>Available-Modules: add-contextual-data,afamqp,affile,afprog,afsocket,afstomp,afuser,appmodel,basicfuncs,cef,confgen,cryptofuncs,csvparser,date,dbparser,disk-buffer,graphite,json-plugin,kvformat,linux-kmsg-format,map-value-pairs,pseudofile,sdjournal,snmptrapd-parser,stardate,syslogformat,system-source,tags-parser,tfgetent,xml,<i><b>mod-java</b></i><br>Enable-Debug: off<br>Enable-GProf: off<br>Enable-Memtrace: off<br>Enable-IPv6: on<br>Enable-Spoof-Source: on<br>Enable-TCP-Wrapper: on<br>Enable-Linux-Caps: on<br>Enable-Systemd: on<br></blockquote></div></blockquote></blockquote></blockquote></blockquote><div><br></div><div>Java Version:</div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="margin-left:40px">[root@localhost server]# java -version<br>java version "1.8.0_171"<br>Java(TM) SE Runtime Environment (build 1.8.0_171-b11)<br>Java HotSpot(TM) 64-Bit Server VM (build 25.171-b11, mixed mode)<br></div></blockquote><br></div><div><br></div><div><br></div><div><b>conf.d/syslog-ng-custom.conf</b></div><div style="margin-left:40px"><br></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="margin-left:40px">source s_apache {<br>system();       # Check which OS & collect system logs<br>        internal();<br>};<br><br>destination d_remote {<br>  tcp("1.2.3.4" port(514));<br>};<br>destination d_device_file {<br>        file("/var/log/$HOST.$MIN.log");<br>};<br><br>destination java_to_file{<br>  java(<br>    class_name("SampleJavaDestination")<br>    class_path("/root")<br>    option("name", "value")<br>    option("filepath", "/var/log/example.txt")<br>  );<br>};<br><br>log {<br>  source(s_apache);<br>  destination(d_device_file);<br>  destination(java_to_file);<br><br>};<br></div></blockquote><br></div><div><br></div><div><br></div><div>Can someone please tell me what i am missing?<br></div><div><br></div></div>