# Logstash Output Plugin MongoDB with SSL

**URL:** <https://discuss.elastic.co/t/logstash-output-plugin-mongodb-with-ssl/146278>\
**Category:** Logstash\
**Created:** [August 28, 2018, 7:13am UTC](https://discuss.elastic.co/t/logstash-output-plugin-mongodb-with-ssl/146278 "2018-08-28T07:13:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MaikLinnemann](https://avatars.discourse-cdn.com/v4/letter/m/8c91f0/32.png) [@MaikLinnemann](https://discuss.elastic.co/u/MaikLinnemann)\
**Post date:** [August 28, 2018, 7:13am UTC](https://discuss.elastic.co/t/logstash-output-plugin-mongodb-with-ssl/146278/1 "2018-08-28T07:13:22Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 25, 2018, 7:13am UTC](https://discuss.elastic.co/t/logstash-output-plugin-mongodb-with-ssl/146278/2 "2018-09-25T07:13:23Z")

</div>

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