Logstash installed on GCP compute engine having issues connecting to Mongo Atlas

Logstash installed on GCP compute engine is unable to connect Mongo Atlas.. Tried all the below 3 versions of mongo output plugin.

3.1.5
3.1.6
3.1.7

Below error observed with 3.1.5 version of mongo output plugin
[WARN ][logstash.outputs.mongodb ] Failed to send event to MongoDB, retrying in 3 seconds {:event=>#LogStash::Event:0x3b46e618, :exception=>#<Mongo::Error::NoServerAvailable: No server is available matching preference: #<Mongo::ServerSelector::Primary:0x507f21fe @tag_sets=, @server_selection_timeout=30, @options={:database=>"admin", :replica_set=>"xxxx", :ssl=>true, :user=>"user", :password=>"pwd"}>>}

Below error observed with 3.1.6 and 3.1.7 versions of mongo output plugin
[logstash.outputs.mongodb ] MONGODB | Failed to handshake with xxxxx.mongodb.net:27017: ArgumentError: wrong number of arguments (given 2, expected 1)

Hi,

Were you able to send data to Atlas Mongo from Logstash? If you can share some light, that will be appreciate it.

Zareh

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.