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)