Logstash Output Plugin MongoDB with SSL

Hi,

i have an issue about the plugin logstash-output-mongodb. I try to get i working with ssl but fail.

Without ssl (works if mongodb server is set to allowSSL, what means that the output do not use ssl):

output {
if [type] == "mytype" {
mongodb {
uri => "mongodb://myserver/"
database => "mydatabase"
collection => "mycollection"
id => "myid"
}
}
}

With ssl (mongodb server is set to requireSSL):

output {
if [type] == "mytype" {
mongodb {
uri => "mongodb://myserver/mydatabase?ssl=true"
database => "mydatabase"
collection => "mycollection"
id => "myid"
}
}
}

That doesnt work and in mongodb log i see that the server tells "requires ssl". Can anyone give some help, please. Thanks.

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