Hi, Gradle needs to be available in the PATH during configure. If it's not there, you should update your PATH variable, like this: export PATH=/usr/share/java/gradle-2.11/bin:$PATH 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. Bye, Peter Czanik (CzP) <peter.czanik@balabit.com> Balabit / syslog-ng upstream http://czanik.blogs.balabit.com/ https://twitter.com/PCzanik On Mon, Feb 22, 2016 at 7:14 PM, Ho, Ming <Mingho@visa.com> wrote:
Hi Peter,
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.
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 "configure" but the Java module is still not included. What is the correct steps if I use the provided jar files?
Thanks. Ming
-----Original Message----- From: syslog-ng-bounces@lists.balabit.hu [mailto: syslog-ng-bounces@lists.balabit.hu] On Behalf Of syslog-ng-request@lists.balabit.hu Sent: Saturday, February 20, 2016 3:00 AM To: syslog-ng@lists.balabit.hu Subject: syslog-ng Digest, Vol 130, Issue 27
Send syslog-ng mailing list submissions to syslog-ng@lists.balabit.hu
To subscribe or unsubscribe via the World Wide Web, visit https://lists.balabit.hu/mailman/listinfo/syslog-ng or, via email, send a message with subject or body 'help' to syslog-ng-request@lists.balabit.hu
You can reach the person managing the list at syslog-ng-owner@lists.balabit.hu
When replying, please edit your Subject line so it is more specific than "Re: Contents of syslog-ng digest..."
Today's Topics:
1. Re: Not able to compile syslog-ng OSE with Java support (Czanik) 2. ECONNREFUSED on /dev/log (?rp?d Magos?nyi)
----------------------------------------------------------------------
Message: 1 Date: Sat, 20 Feb 2016 07:47:23 +0100 From: Czanik, P?ter <peter.czanik@balabit.com> Subject: Re: [syslog-ng] Not able to compile syslog-ng OSE with Java support To: "Syslog-ng users' and developers' mailing list" <syslog-ng@lists.balabit.hu> Message-ID: < CANcUavtxRVrSQwcaAB0WV27uO+gsR1T7kT8rQqq63Rev+ns+Ag@mail.gmail.com> Content-Type: text/plain; charset="utf-8"
You will also need gradle to build Java modules: http://gradle.org/ Bye,
Peter Czanik (CzP) <peter.czanik@balabit.com> Balabit / syslog-ng upstream http://czanik.blogs.balabit.com/ https://twitter.com/PCzanik
On Sat, Feb 20, 2016 at 7:02 AM, 'Ho, Ming' via SYSLOG-NG < syslog-ng@balabit.com> wrote:
Hello,
I am able to compile syslog-ng 3.7.2 without the Java-based modules included successfully and the syslog-ng run fine. Now I need to re-compile again with the Java-based modules included. I execute the following steps listed in the syslog-ng-3.7-ose-admin guide:
Installed openjdk version "1.8.0_71" Installed gradle version 2.11 export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH export LD_LIBRARY_PATH=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.71-1.b15.el6_7.x 86_64/jre/lib/amd64/server:$LD_LIBRARY_PATH
When I run ./configure, I notice the java module option is set to "no" in the summary: Modules: Module search path : ${exec_prefix}/lib/syslog-ng Sun STREAMS support (module): no SQL support (module) : no PACCT module (EXPERIMENTAL) : no MongoDB destination (module): yes JSON support (module) : no SMTP support (module) : no AMQP destination (module) : yes STOMP destination (module) : yes GEOIP support (module) : no Redis support (module) : no Riemann destination (module): no python : yes (pkg-config package: python) java : no
I go ahead to execute "make" and "make install" without error. But I don't see the "java-modules" directory is created in /usr/local/lib/syslog-ng directory. When I include the following declaration in my syslog-ng.conf to start syslog-ng, I got the following error: [2016-02-20T05:46:59.039466] Plugin module not found in 'module-path'; module-path='/usr/local/lib/syslog-ng', module='mod-java'
Why Java modules is not included? What steps am I missing? Any help is appreciated
Ming
______________________________________________________________________ ________ Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng FAQ: http://www.balabit.com/wiki/syslog-ng-faq