<div dir="ltr"><div><div><div>Hi,<br><br></div>Gradle needs to be available in the PATH during configure. If it&#39;s not there, you should update your PATH variable, like this:<br><br>export PATH=/usr/share/java/gradle-2.11/bin:$PATH<br><br></div>Gradle can download you all the necessary JAR files. If you want to use the local files from another directory, you need to edit modules/java-modules/build.gradle before compilation.<br><br></div>Bye,<br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature">Peter Czanik (CzP) &lt;<a href="mailto:peter.czanik@balabit.com" target="_blank">peter.czanik@balabit.com</a>&gt;<br>Balabit / syslog-ng upstream<br><a href="http://czanik.blogs.balabit.com/" target="_blank">http://czanik.blogs.balabit.com/</a><br><a href="https://twitter.com/PCzanik" target="_blank">https://twitter.com/PCzanik</a></div></div>
<br><div class="gmail_quote">On Mon, Feb 22, 2016 at 7:14 PM, Ho, Ming <span dir="ltr">&lt;<a href="mailto:Mingho@visa.com" target="_blank">Mingho@visa.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Peter,<br>
<br>
Thanks for the quick response. The admin guide and your blog only mentioned to install gradle, which I did, but no mention of how to use it to build Java modules. I am not a software developer and have not heard/use gradle before. It will be very kind and helpful of you if you can provide me the steps how to do so. And any additional steps I need to do for compilation after the Java modules created.<br>
<br>
I also try your syslog-ng-java-hack-1.0-1.el6.x86_64.rpm. I copy all the jars files to /usr/local/lib/syslog-ng/java-modules and then run &quot;configure&quot; but the Java module is still not included. What is the correct steps if I use the provided jar files?<br>
<br>
Thanks.<br>
Ming<br>
<br>
-----Original Message-----<br>
From: <a href="mailto:syslog-ng-bounces@lists.balabit.hu">syslog-ng-bounces@lists.balabit.hu</a> [mailto:<a href="mailto:syslog-ng-bounces@lists.balabit.hu">syslog-ng-bounces@lists.balabit.hu</a>] On Behalf Of <a href="mailto:syslog-ng-request@lists.balabit.hu">syslog-ng-request@lists.balabit.hu</a><br>
Sent: Saturday, February 20, 2016 3:00 AM<br>
To: <a href="mailto:syslog-ng@lists.balabit.hu">syslog-ng@lists.balabit.hu</a><br>
Subject: syslog-ng Digest, Vol 130, Issue 27<br>
<br>
Send syslog-ng mailing list submissions to<br>
        <a href="mailto:syslog-ng@lists.balabit.hu">syslog-ng@lists.balabit.hu</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" rel="noreferrer" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
or, via email, send a message with subject or body &#39;help&#39; to<br>
        <a href="mailto:syslog-ng-request@lists.balabit.hu">syslog-ng-request@lists.balabit.hu</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:syslog-ng-owner@lists.balabit.hu">syslog-ng-owner@lists.balabit.hu</a><br>
<br>
When replying, please edit your Subject line so it is more specific than &quot;Re: Contents of syslog-ng digest...&quot;<br>
<br>
<br>
Today&#39;s Topics:<br>
<br>
   1. Re:  Not able to compile syslog-ng OSE with Java support (Czanik)<br>
   2.  ECONNREFUSED on /dev/log (?rp?d Magos?nyi)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Sat, 20 Feb 2016 07:47:23 +0100<br>
From: Czanik, P?ter &lt;<a href="mailto:peter.czanik@balabit.com">peter.czanik@balabit.com</a>&gt;<br>
Subject: Re: [syslog-ng] Not able to compile syslog-ng OSE with Java<br>
        support<br>
To: &quot;Syslog-ng users&#39; and developers&#39; mailing list&quot;<br>
        &lt;<a href="mailto:syslog-ng@lists.balabit.hu">syslog-ng@lists.balabit.hu</a>&gt;<br>
Message-ID:<br>
        &lt;<a href="mailto:CANcUavtxRVrSQwcaAB0WV27uO%2BgsR1T7kT8rQqq63Rev%2Bns%2BAg@mail.gmail.com">CANcUavtxRVrSQwcaAB0WV27uO+gsR1T7kT8rQqq63Rev+ns+Ag@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;utf-8&quot;<br>
<br>
You will also need gradle to build Java modules: <a href="http://gradle.org/" rel="noreferrer" target="_blank">http://gradle.org/</a> Bye,<br>
<br>
Peter Czanik (CzP) &lt;<a href="mailto:peter.czanik@balabit.com">peter.czanik@balabit.com</a>&gt; Balabit / syslog-ng upstream <a href="http://czanik.blogs.balabit.com/" rel="noreferrer" target="_blank">http://czanik.blogs.balabit.com/</a> <a href="https://twitter.com/PCzanik" rel="noreferrer" target="_blank">https://twitter.com/PCzanik</a><br>
<br>
On Sat, Feb 20, 2016 at 7:02 AM, &#39;Ho, Ming&#39; via SYSLOG-NG &lt; <a href="mailto:syslog-ng@balabit.com">syslog-ng@balabit.com</a>&gt; wrote:<br>
<br>
&gt; Hello,<br>
&gt;<br>
&gt; I am able to compile syslog-ng 3.7.2 without the Java-based modules<br>
&gt; included successfully and the syslog-ng run fine. Now I need to<br>
&gt; re-compile again with the Java-based modules included. I execute the<br>
&gt; following steps listed in the syslog-ng-3.7-ose-admin guide:<br>
&gt;<br>
&gt; Installed openjdk version &quot;1.8.0_71&quot;<br>
&gt; Installed gradle version 2.11<br>
&gt; export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH<br>
&gt; export<br>
&gt; LD_LIBRARY_PATH=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.71-1.b15.el6_7.x<br>
&gt; 86_64/jre/lib/amd64/server:$LD_LIBRARY_PATH<br>
&gt;<br>
&gt; When I run ./configure, I notice the java module option is set to &quot;no&quot;<br>
&gt; in the summary:<br>
&gt; Modules:<br>
&gt;   Module search path          : ${exec_prefix}/lib/syslog-ng<br>
&gt;   Sun STREAMS support (module): no<br>
&gt;   SQL support (module)        : no<br>
&gt;   PACCT module (EXPERIMENTAL) : no<br>
&gt;   MongoDB destination (module): yes<br>
&gt;   JSON support (module)       : no<br>
&gt;   SMTP support (module)       : no<br>
&gt;   AMQP destination (module)   : yes<br>
&gt;   STOMP destination (module)  : yes<br>
&gt;   GEOIP support (module)      : no<br>
&gt;   Redis support (module)      : no<br>
&gt;   Riemann destination (module): no<br>
&gt;   python                      : yes (pkg-config package: python)<br>
&gt;   java                        : no<br>
&gt;<br>
&gt; I go ahead to execute &quot;make&quot; and &quot;make install&quot; without error. But I<br>
&gt; don&#39;t see the &quot;java-modules&quot; directory is created in<br>
&gt; /usr/local/lib/syslog-ng directory.<br>
&gt; When I include the following declaration in my syslog-ng.conf to start<br>
&gt; syslog-ng, I got the following error:<br>
&gt; [2016-02-20T05:46:59.039466] Plugin module not found in &#39;module-path&#39;;<br>
&gt; module-path=&#39;/usr/local/lib/syslog-ng&#39;, module=&#39;mod-java&#39;<br>
&gt;<br>
&gt; Why Java modules is not included? What steps am I missing?<br>
&gt; Any help is appreciated<br>
&gt;<br>
&gt; Ming<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; ______________________________________________________________________<br>
&gt; ________ Member info:<br>
&gt; <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" rel="noreferrer" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
&gt; Documentation:<br>
&gt; <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" rel="noreferrer" target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>
&gt; FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" rel="noreferrer" target="_blank">http://www.balabit.com/wiki/syslog-ng-faq</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a href="http://lists.balabit.hu/pipermail/syslog-ng/attachments/20160220/e2a92c57/attachment.html" rel="noreferrer" target="_blank">http://lists.balabit.hu/pipermail/syslog-ng/attachments/20160220/e2a92c57/attachment.html</a><br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Sat, 20 Feb 2016 11:24:24 +0100<br>
From: ?rp?d Magos?nyi &lt;<a href="mailto:mag@magwas.rulez.org">mag@magwas.rulez.org</a>&gt;<br>
Subject: [syslog-ng] ECONNREFUSED on /dev/log<br>
To: <a href="mailto:syslog-ng@lists.balabit.hu">syslog-ng@lists.balabit.hu</a><br>
Message-ID: &lt;<a href="mailto:56C83ED8.4080305@magwas.rulez.org">56C83ED8.4080305@magwas.rulez.org</a>&gt;<br>
Content-Type: text/plain; charset=utf-8<br>
<br>
Hi!<br>
<br>
&quot;strace logger hello&quot; output contains this line:<br>
connect(3, {sa_family=AF_LOCAL, sun_path=&quot;/dev/log&quot;}, 110) = -1 ECONNREFUSED (Connection refused)<br>
<br>
I see logs in /dev/xconsole, just cannot emit a log line with logger.<br>
What could be the cause?<br>
<br>
additional info:<br>
<br>
# cat /etc/syslog-ng/syslog-ng.conf<br>
@version: 3.3<br>
@include &quot;scl.conf&quot;<br>
# First, set some global options.<br>
options { chain_hostnames(off); flush_lines(0); use-dns(persist_only); dns-cache-hosts(/etc/hosts);use_fqdn(no);<br>
      owner(&quot;root&quot;); group(&quot;adm&quot;); perm(0640); stats_freq(0); time_reap(1000);<br>
      bad_hostname(&quot;^gconfd$&quot;);<br>
};<br>
source s_src {<br>
       system();<br>
       internal();<br>
};<br>
<br>
#destination d_net { tcp(&quot;91.143.88.140&quot; port(10000)<br>
tls(ca-dir(&quot;/etc/ssl&quot;) cert-file(&quot;/etc/ssl/newcert.pem&quot;)<br>
key_file(&quot;/etc/ssl/private/newkey.pem&quot;) )); }; destination d_net { tcp(&quot;<a href="http://infra.edemokraciagep.org" rel="noreferrer" target="_blank">infra.edemokraciagep.org</a>&quot; port(10000)<br>
tls(ca-dir(&quot;/etc/ssl&quot;) peer-verify(optional-untrusted))); };<br>
<br>
destination d_messages { file(&quot;/var/log/messages&quot;);};<br>
<br>
destination d_xconsole { pipe(&quot;/dev/xconsole&quot;); }; destination d_apache_console { pipe(&quot;/dev/apacheconsole&quot;); };<br>
<br>
<br>
filter apache_log { program(&quot;apache&quot;); }; filter non_apache_log { not program(&quot;apache&quot;); };<br>
<br>
destination d_vhost_gepnarancs { file(&quot;/var/log/vhost_gepnarancs&quot;); }; filter f_gepnarancs { program(&quot;apache:php:gepnarancs&quot;) or message(&quot;gepnarancs&quot;); }; log { source(s_src); filter(f_gepnarancs); destination(d_vhost_gepnarancs); };<br>
<br>
log { source(s_src); destination(d_messages); };<br>
<br>
log { source(s_src); filter(non_apache_log) ; destination(d_xconsole); };<br>
<br>
log { source(s_src); filter(apache_log); destination(d_apache_console); };<br>
<br>
log { source(s_src); destination(d_net); };<br>
<br>
@include &quot;/etc/syslog-ng/conf.d/&quot;<br>
<br>
---------------------------------<br>
# lsof |grep /dev/xconsole<br>
syslog-ng  2608            root   15u     FIFO                0,5<br>
0t0      19564 /dev/xconsole<br>
cat        2641            root    3r     FIFO                0,5<br>
0t0      19564 /dev/xconsole<br>
---------------------------------<br>
# lsof |grep /dev/log<br>
[no output]<br>
---------------------------------<br>
# dpkg -l syslog-ng<br>
Desired=Unknown/Install/Remove/Purge/Hold<br>
|<br>
Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend<br>
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)<br>
||/ Name<br>
Version                       Architecture                  Description<br>
+++-================================================-===================<br>
+++==========-=============================-============================<br>
+++=====================================================================<br>
+++=====<br>
ii  syslog-ng<br>
3.5.6-2                       all                           Enhanced<br>
system logging daemon (metapackage)<br>
--------------------------------<br>
# ls -l /dev/log<br>
srw-rw-rw- 1 root root 0 Feb 20 11:03 /dev/log<br>
--------------------------------<br>
<br>
<br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
syslog-ng maillist  -  <a href="mailto:syslog-ng@lists.balabit.hu">syslog-ng@lists.balabit.hu</a> <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" rel="noreferrer" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
<br>
<br>
End of syslog-ng Digest, Vol 130, Issue 27<br>
******************************************<br>
<br>
</blockquote></div><br></div>