Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

logstash-output-mongodb works only with mongodb 2.0.6 #20

Closed
chakrip82 opened this issue Dec 21, 2015 · 4 comments
Closed

logstash-output-mongodb works only with mongodb 2.0.6 #20

chakrip82 opened this issue Dec 21, 2015 · 4 comments

Comments

@chakrip82
Copy link

Hi,
I tried to use logstash-output-mongodb and push to mongodb version 3.0.4 but its not working.
then i observed that its not working with mongodb 3.0.4 and throwing the error

@metadata_accessors=#<LogStash::Util::Accessors:0x63ff2639 @store={}, @lut={}>, @cancelled=false>, :exception=>#<Mongo::Error::OperationFailure: assertion src/mongo/db/storage/mmap_v1/extent.h:77 (8)>, :backtrace=>["/Users/chakrapani.k/Downloads/logstash-2.1.1/vendor/bundle/jruby/1.9/gems/mongo-2.0.6/lib/mongo/operation/result.rb:214:in validate!'", "/Users/chakrapani.k/Downloads/logstash-2.1.1/vendor/bundle/jruby/1.9/gems/mongo-2.0.6/lib/mongo/operation/write/insert.rb:72:inexecute_write_command'", "/Users/chakrapani.k/Downloads/logstash-2.1.1/vendor/bundle/jruby/1.9/gems/mongo-2.0.6/lib/mongo/operation/write/insert.rb:62:in execute'", "/Users/chakrapani.k/Downloads/logstash-2.1.1/vendor/bundle/jruby/1.9/gems/mongo-2.0.6/lib/mongo/collection.rb:190:ininsert_many'", "/Users/chakrapani.k/Downloads/logstash-2.1.1/vendor/bundle/jruby/1.9/gems/mongo-2.0.6/lib/mongo/collection.rb:175:in insert_one'", "/Users/chakrapani.k/Downloads/logstash-2.1.1/vendor/bundle/jruby/1.9/gems/logstash-output-mongodb-2.0.3/lib/logstash/outputs/mongodb.rb:56:inreceive'", "/Users/chakrapani.k/Downloads/logstash-2.1.1/vendor/bundle/jruby/1.9/gems/logstash-core-2.1.1-java/lib/logstash/outputs/base.rb:81:in handle'", "(eval):27:inoutput_func'", "/Users/chakrapani.k/Downloads/logstash-2.1.1/vendor/bundle/jruby/1.9/gems/logstash-core-2.1.1-java/lib/logstash/pipeline.rb:277:in outputworker'", "/Users/chakrapani.k/Downloads/logstash-2.1.1/vendor/bundle/jruby/1.9/gems/logstash-core-2.1.1-java/lib/logstash/pipeline.rb:194:instart_outputs'"], :level=>:warn}

Then i tried using this plugin with mongodb 2.0.6 and its working perfectly and able to push to mongodb.

Is there any workaround or fix for resolving this hard dependency on 2.0.6 and be able to push to mongo3 also.

regards,
chakri

@chakrip82
Copy link
Author

the version of logstash which i used is logstash-2.1.1

@jjuarez
Copy link

jjuarez commented May 7, 2018

It's not working with logstash 6.2.4 and MongoDB 3.4 too I could be wrong but it seems like a problem with the runtime gem dependency 2.0.6

@colinsurprenant
Copy link
Contributor

relates to #42 and #35 to update driver.

@colinsurprenant
Copy link
Contributor

Note that #59 was merged and version 3.1.6 has been published which now includes v2.6 of the driver.
This should solve here, free free to reopen if not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants