Looking for an example plugin that uses a Java library

Hi ,
I'm looking to see if I can wrap my apache logparsing library (https://github.com/nielsbasjes/logparser/ ) (which was written in Java) to become a plugin for logstash.
The problem I have is that my Ruby knowledge is close to zero (and the plugins are written in ruby )
What I 'm looking for is a working example of a plugin that receives a few parameters and uses a java library to do the actual work.
From there I expect I can figure out what needs to be done and write the plugin.

Can you please giveme some pointers that help me get up and running?
Thanks.

Niels Basjes

Check out jruby-kafka (https://github.com/joekiller/jruby-kafka) which uses java for https://github.com/logstash-plugins/logstash-output-kafka and https://github.com/logstash-plugins/logstash-input-kafka

The keys are that the jruby-kafka library uses


jar-dependencies and ruby-maven. When you run rake setup jar it'll
download the jar dependencies and create a [libname]_jars.rb file within
the root of your library.

On Thu, Jun 18, 2015 at 9:48 AM, Joe Lawson <
jlawson@opensourceconnections.com> wrote:

Thanks. This looks really helpful.