Closed irom77 closed 6 years ago
@irom77 did you resolve the issue?
not really, I switched to kafka..
@irom77 thanks. seems like plugin is mostly abandoned / not used much.
Thnx for letting me know
Maybe try creating the database and collection first manually.
Just to mention it: That error also shows up for mongoid with rails. It disappears, after you run rails server once.
So.. I don't think this is 'error' specific for this plugin. If it is, then run the code that sets up the database and collections, and after that, it may work. I don't use this plugin. As I said, just mentioning..
Also, the server config should consider if it is a replica set or a direct connection and other parameters, which you probably left out.
I had this problem as well back in 2017 and found errors/inconsistencies with the host names of my replica-set (hey, I'm a dev not a sys-admin) and the mongoid config.
So, check if your servers can see and access each other and if the replica-set is set correctly in you configuration. Some more information can be found in my blog: https://tomk32.de/2017/07/19/mongo-error-noserveravailable-a-few-possible-causes.html
Dear,
I have the same problem!!! please help me!!
I faced the same problem, and found the culprit to be an outdated version of mongo ruby driver being used. I fixed it by upgrading the mongo version in the .gemspec
file and downgrading bson version to 4.8.2
. Then compiled it using jruby, via the steps mentioned in the readme. I have put up the final, installable plugin here https://github.com/singhksandeep25/logstash-output-mongodb/releases/tag/v3.1.7
Tks @singhksandeep25 . You saved my life
Getting Error::NoServerAvailable: , my output is pretty simple and mono uri verified, please advise
}
More details here https://discuss.elastic.co/t/logstash-output-mongodb-error-noserveravailable/97457. I am running Logstash 5.5