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 2.4 to MongoDB 3.4 #35

Open
troyattaxact opened this issue Feb 2, 2017 · 7 comments
Open

Logstash 2.4 to MongoDB 3.4 #35

troyattaxact opened this issue Feb 2, 2017 · 7 comments

Comments

@troyattaxact
Copy link

I'm currently using Logstash 2.4 on a windows server. I'm attempting to write log messages to MongoDB 3.4. Logstash sends several messages then stops with a 'Failed to send event to MongoDB' error message. Logstash is using the mongo-2.0.6. According to https://docs.mongodb.com/ecosystem/drivers/driver-compatibility-reference/#ruby-driver-compatibility I need to use mongo-2.4.0. How do I upgrade the driver? I'm hoping the latest version of the mongo driver will fix my issue.

@dakota007
Copy link

I am encountering a similar problem. Not exactly the same situation, but the MongoDB plugin is not working to write data from logstash to MongoDB, and I believe it is due to version incompatibility. Is there any way to upgrade the driver that is bundled with the plugin?

@dyakhnov
Copy link

Oh... I thought that something wrong with my setup, config or data... same issue!

@StephenOTT
Copy link

StephenOTT commented Jan 16, 2018

any progress on this?

error is something like: Failed to send event to MongoDB.... :exception=>#<Mongo::Error::NoServerAvailable: No server is available matching preference: #<Mongo::ServerSelector::Primary:0x51cde17

@AlexKovynev
Copy link

For me is logstash_timestamp.rb is not compatible with new bson gem.
"read method not available blablabla..." if i set logger to debug inside source. Some custom conversion to Time save my day.

@jjuarez
Copy link

jjuarez commented May 7, 2018

I'm facing the same error here, working with logstash 6.2.4, logstash-output-mongodb 3.1.4 connecting against MongoDB Atlas (3.4)

@bryanjknight
Copy link

It seems the mongodb driver is out of date (current version as of this writing is 2.6.2). MongoDB Atlas requires the driver to be 2.4 at least, but it's currently 2.0.6.

@colinsurprenant
Copy link
Contributor

relates to #42 to update driver.

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

8 participants