# Metricbeat & Mongo 5

**URL:** <https://discuss.elastic.co/t/metricbeat-mongo-5/288037>\
**Category:** Beats\
**Tags:** docker, metricbeat\
**Created:** [October 29, 2021, 9:18pm UTC](https://discuss.elastic.co/t/metricbeat-mongo-5/288037 "2021-10-29T21:18:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ziemowit](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ziemowit/32/96546_2.png) [@Ziemowit](https://discuss.elastic.co/u/Ziemowit)\
**Post date:** [October 29, 2021, 9:18pm UTC](https://discuss.elastic.co/t/metricbeat-mongo-5/288037/1 "2021-10-29T21:18:08Z")

</div>

Hey I have a pretty simple config of Metric Beat

```auto
metricbeat.modules:
  - module: mongodb
    enabled: true
    hosts: ["mongodb://root:secret@mongo"]

```

I run it in docker (also mongo itself runs in docker). And it works well with Mongo 3.6. It works also with Mongo 4.4. But when upgrading to Mongo 5.0.3 I get:

> Error fetching data for metricset mongodb.collstats: error creating new Session: server returned error on SASL authentication step: BSON field 'saslContinue.mechanism' is an unknown field.

Should I change sth in the metricbeat's configuration for Mongo 5?  
Is there any known issue related to this?

---

<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:** [November 26, 2021, 11:19pm UTC](https://discuss.elastic.co/t/metricbeat-mongo-5/288037/2 "2021-11-26T23:19:03Z")

</div>

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