# Adding a custom plug from juniper to my logstash

**URL:** <https://discuss.elastic.co/t/adding-a-custom-plug-from-juniper-to-my-logstash/54681>\
**Category:** Logstash\
**Created:** [July 5, 2016, 1:30am UTC](https://discuss.elastic.co/t/adding-a-custom-plug-from-juniper-to-my-logstash/54681 "2016-07-05T01:30:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lucas\_restrepo](https://avatars.discourse-cdn.com/v4/letter/l/90db22/32.png) [@lucas\_restrepo](https://discuss.elastic.co/u/lucas_restrepo)\
**Post date:** [July 5, 2016, 1:30am UTC](https://discuss.elastic.co/t/adding-a-custom-plug-from-juniper-to-my-logstash/54681/1 "2016-07-05T01:30:25Z")

</div>

Hi,  
I am working on my own kibana dashboard.  
I got the plugin from an instalation of this plug on a juniper instalation.  
I check all the documentation and they created the plugin from logstash syslog-filter, geoip, and split so i don't think i am breking any rules as far as licensing.  
my problem is when i try to run bundle exec rspec i get an error with some dependencies.  
[root@localhost logstash-filter-splitsyslog-0.0.5]# bundle exec rspec  
jar coordinate com.fasterxml.jackson.core:jackson-databind already loaded with version 2.7.1  
jar coordinate com.fasterxml.jackson.core:jackson-annotations already loaded with version 2.7.1  
LoadError: no such file to load -- logstash/filters/example  
require at org/jruby/RubyKernel.java:937  
require at /usr/local/rvm/gems/jruby-9.0.5.0/gems/polyglot-0.3.5/lib/polyglot.rb:65  
 at /opt/logstash/vendor/local\_gems/logstash-filter-splitsyslog-0.0.5/spec/filters/splitsyslog\_spec.rb:2  
load at org/jruby/RubyKernel.java:955  
block in (root) at /usr/local/rvm/gems/jruby-9.0.5.0/gems/rspec-core-3.4.4/lib/rspec/core/configuration.rb:1  
each at org/jruby/RubyArray.java:1560  
load\_spec\_files at /usr/local/rvm/gems/jruby-9.0.5.0/gems/rspec-core-3.4.4/lib/rspec/core/configuration.rb:1361  
load\_spec\_files at /usr/local/rvm/gems/jruby-9.0.5.0/gems/rspec-core-3.4.4/lib/rspec/core/configuration.rb:1359  
setup at /usr/local/rvm/gems/jruby-9.0.5.0/gems/rspec-core-3.4.4/lib/rspec/core/runner.rb:106  
run at /usr/local/rvm/gems/jruby-9.0.5.0/gems/rspec-core-3.4.4/lib/rspec/core/runner.rb:92  
run at /usr/local/rvm/gems/jruby-9.0.5.0/gems/rspec-core-3.4.4/lib/rspec/core/runner.rb:78  
 at /usr/local/rvm/gems/jruby-9.0.5.0/gems/rspec-core-3.4.4/lib/rspec/core/runner.rb:45  
load at org/jruby/RubyKernel.java:955  
 at /usr/local/rvm/gems/jruby-9.0.5.0/gems/rspec-core-3.4.4/exe/rspec:4  
eval at org/jruby/RubyKernel.java:976  
 at /usr/local/rvm/gems/jruby-9.0.5.0/bin/jruby\_executable\_hooks:15

and the spec file that depends on this is this

require 'spec\_helper'  
require "logstash/filters/example  
describe LogStash::Filters::Example do  
describe "Split structured Syslog " do  
let(:config) do \<\<-CONFIG

```
          filter {
 
            splitsyslog {   
  
            }
  
          }
  
        CONFIG
 
        end
   
        sample("message" => "Example, keyis=valueis name=splitlog") do
  
          expect(subject).to include("message")
  
          expect(subject['message']).to eq('Example, keyis=valueis name=splitlog')
  
        end
  
      end
  
    end

```

and when i try to install the logstash-filter-example i am getting some more errors.

/opt/logstash/bin/plugin install --no-verify logstash-filter-example-3.0.0.gem  
Installing logstash-filter-example  
Plugin version conflict, aborting  
ERROR: Installation Aborted, message: Bundler could not find compatible versions for gem "logstash-core-plugin-api":  
In snapshot (Gemfile.lock):  
logstash-core-plugin-api (= 1.8.0)

In Gemfile:  
logstash-core-plugin-api (~\> 1.0) java  
repeated n times  
logstash-core-plugin-api (~\> 1.0) java

```
logstash-filter-example (= 3.0.0) java depends on
  logstash-core-plugin-api (~> 2.0) java

```

Running `bundle update` will rebuild your snapshot from scratch, using only  
the gems in your Gemfile, which may resolve the conflict.

i tryed what the uotput says but i have not been able to get this to work.

Can any one help me to get this resolved.

thank you.

---

<div class="post-metadata">

**Author:** ![lucas\_restrepo](https://avatars.discourse-cdn.com/v4/letter/l/90db22/32.png) [@lucas\_restrepo](https://discuss.elastic.co/u/lucas_restrepo)\
**Post date:** [July 5, 2016, 1:34am UTC](https://discuss.elastic.co/t/adding-a-custom-plug-from-juniper-to-my-logstash/54681/2 "2016-07-05T01:34:54Z")

</div>

By the way i have created a git project just in case someone wnats to take a look.

i also think i have a version problem because i got this plugin from ver 1.5 and i am trying to get it to work on ver 2+.

the project is:

lucasrestrepo/logstash-filter-splitsyslog-0.0.5

regards.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 4:49am UTC](https://discuss.elastic.co/t/adding-a-custom-plug-from-juniper-to-my-logstash/54681/3 "2017-07-06T04:49:36Z")

</div>


