Not able to integrate logstash with mongodb -


i want send output of logstash mongodb using mongodb output plugins of logstash in linux. using logstash-1.5.0.beta1 , mongodb-3.0.3 versions. getting following error :

loaderror: no such file load -- mongo         require @ org/jruby/rubykernel.java:1065         require @ /root/logstash-1.5.0.beta1/vendor/jruby/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55         require @ /root/logstash-1.5.0.beta1/vendor/jruby/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:53         require @ /root/logstash-1.5.0.beta1/vendor/bundle/jruby/1.9/gems/polyglot-0.3.5/lib/polyglot.rb:65        register @ /root/logstash-1.5.0.beta1/lib/logstash/outputs/mongodb.rb:37            each @ org/jruby/rubyarray.java:1613   start_outputs @ /root/logstash-1.5.0.beta1/lib/logstash/pipeline.rb:158             run @ /root/logstash-1.5.0.beta1/lib/logstash/pipeline.rb:79         execute @ /root/logstash-1.5.0.beta1/lib/logstash/agent.rb:141             run @ /root/logstash-1.5.0.beta1/lib/logstash/runner.rb:166            call @ org/jruby/rubyproc.java:271             run @ /root/logstash-1.5.0.beta1/lib/logstash/runner.rb:171            call @ org/jruby/rubyproc.java:271      initialize @ /root/logstash-1.5.0.beta1/vendor/bundle/jruby/1.9/gems/stud-0.0.18/lib/stud/task.rb:12 

my logstash conf file follows:

input {         file{                 path => "/something.csv"                 start_position => "beginning"                 sincedb_path => "/dev/null"                 } }  output { stdout {codec => rubydebug}         mongodb{                 collection => "users"                 database => "test"                 uri => "mongodb://localhost:27017/"         } } 

i run using command:

/root/logstash-1.5.0.beta1/bin/logstash -f /etc/logstash/logstash-mongodb.conf 

can guide me solution?

since giving file name - path => "/something.csv" -- logstash not able identify. add absolute path file input path below, logstash can identify location , process it.

input {         file {                 path => "c://myfile/something.csv"                 start_position => "beginning"                 sincedb_path => "/dev/null"         } } 

Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - Bypass Geo Redirect for specific directories -

php - .htaccess mod_rewrite for dynamic url which has domain names -