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.