# Logstash-output-mongodb issues with DocumentDB

**URL:** <https://discuss.elastic.co/t/logstash-output-mongodb-issues-with-documentdb/215929>\
**Category:** Logstash\
**Created:** [January 21, 2020, 5:23pm UTC](https://discuss.elastic.co/t/logstash-output-mongodb-issues-with-documentdb/215929 "2020-01-21T17:23:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wayne\_Taylor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wayne_taylor/32/45984_2.png) [@Wayne\_Taylor](https://discuss.elastic.co/u/Wayne_Taylor)\
**Post date:** [January 21, 2020, 5:23pm UTC](https://discuss.elastic.co/t/logstash-output-mongodb-issues-with-documentdb/215929/1 "2020-01-21T17:23:48Z")

</div>

Hi,

Has anyone tried accessing DocumentDB (essentially Mongo under hood) via logstash-ouput-mongodb.

In logstash 7.5.1 I am getting the following error:

`logstash.outputs.mongodb ][main] MONGODB | Unsupported URI option 'sslPEMKeyFile' on URI 'mongodb://url:27017/?ssl=true&sslPEMKeyFile=~/Downloads/rds-combined-ca-bundle.pem'. It will be ignored.`

I've tried all different options including those listed: [https://stackoverflow.com/questions/37431697/mongodb-ssl-pem-file-in-connection-string](https://stackoverflow.com/questions/37431697/mongodb-ssl-pem-file-in-connection-string) and no success.

Any ideas?

---

<div class="post-metadata">

**Author:** ![Wayne\_Taylor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wayne_taylor/32/45984_2.png) [@Wayne\_Taylor](https://discuss.elastic.co/u/Wayne_Taylor)\
**Post date:** [January 21, 2020, 6:16pm UTC](https://discuss.elastic.co/t/logstash-output-mongodb-issues-with-documentdb/215929/2 "2020-01-21T18:16:06Z")

</div>

After reviewing code I was able to understand why and see this is documented here: [https://github.com/logstash-plugins/logstash-output-mongodb/issues/50](https://github.com/logstash-plugins/logstash-output-mongodb/issues/50).

The CA Cert isn't supported but the final response shows a solution.

---

<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:** [February 18, 2020, 6:16pm UTC](https://discuss.elastic.co/t/logstash-output-mongodb-issues-with-documentdb/215929/3 "2020-02-18T18:16:09Z")

</div>

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