I have installed logstash-2.4.0 and logstash-input-jdbc plugin
When I was trying to run logstash by:
bin/logstash -f jdbc_oracle.conf or
bin/logstash --configtest -f jdbc_oracle.conf
I got this error:
LoadError: no such file to load -- bundler/dep_proxy
expand_dependencies at /app/snape/snape-search/logstash-2.4.0/vendor/bundle/jruby/1.9/gems/bundler-1.9.10/lib/bundler/definition.rb:590
each at org/jruby/RubyArray.java:1613
expand_dependencies at /app/snape/snape-search/logstash-2.4.0/vendor/bundle/jruby/1.9/gems/bundler-1.9.10/lib/bundler/definition.rb:589
each at org/jruby/RubyArray.java:1613
expand_dependencies at /app/snape/snape-search/logstash-2.4.0/vendor/bundle/jruby/1.9/gems/bundler-1.9.10/lib/bundler/definition.rb:586
converge_locked_specs at /app/snape/snape-search/logstash-2.4.0/vendor/bundle/jruby/1.9/gems/bundler-1.9.10/lib/bundler/definition.rb:554
resolve at /app/snape/snape-search/logstash-2.4.0/vendor/bundle/jruby/1.9/gems/bundler-1.9.10/lib/bundler/definition.rb:187
specs at /app/snape/snape-search/logstash-2.4.0/vendor/bundle/jruby/1.9/gems/bundler-1.9.10/lib/bundler/definition.rb:132
specs_for at /app/snape/snape-search/logstash-2.4.0/vendor/bundle/jruby/1.9/gems/bundler-1.9.10/lib/bundler/definition.rb:177
requested_specs at /app/snape/snape-search/logstash-2.4.0/vendor/bundle/jruby/1.9/gems/bundler-1.9.10/lib/bundler/definition.rb:166
requested_specs at /app/snape/snape-search/logstash-2.4.0/vendor/bundle/jruby/1.9/gems/bundler-1.9.10/lib/bundler/environment.rb:18
setup at /app/snape/snape-search/logstash-2.4.0/vendor/bundle/jruby/1.9/gems/bundler-1.9.10/lib/bundler/runtime.rb:13
setup at /app/snape/snape-search/logstash-2.4.0/vendor/bundle/jruby/1.9/gems/bundler-1.9.10/lib/bundler.rb:122
setup! at /app/snape/snape-search/logstash-2.4.0/lib/bootstrap/bundler.rb:64
(root) at //app/snape/snape-search/logstash-2.4.0/lib/bootstrap/environment.rb:65
Here is my jdbc_oracle.conf:
input {
stdin {}
jdbc {
jdbc_connection_string => "jdbc:oracle:thin:@host:port:sid"
jdbc_user => "user"
jdbc_password => "password"
jdbc_driver_library => "lib/ojdbc7.jar"
jdbc_driver_class => "Java::oracle.jdbc.driver.OracleDriver"
statement_filepath => "jdbc_oracle.sql"
schedule => "* * * * *"
}
}
output {
elasticsearch {
hosts => ["localhost:9200"]
index => "team"
document_type => "team_message"
document_id => "%{id}"
}
stdout {
codec => "json_lines"
}
}
java version: 1.8.0_101
Anyone can help ?