# Metric beat error

**URL:** <https://discuss.elastic.co/t/metric-beat-error/291899>\
**Category:** Metrics\
**Created:** [December 15, 2021, 5:17am UTC](https://discuss.elastic.co/t/metric-beat-error/291899 "2021-12-15T05:17:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Deepanshu\_Saini](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/deepanshu_saini/32/98973_2.png) [@Deepanshu\_Saini](https://discuss.elastic.co/u/Deepanshu_Saini)\
**Post date:** [December 15, 2021, 5:17am UTC](https://discuss.elastic.co/t/metric-beat-error/291899/1 "2021-12-15T05:17:39Z")

</div>

Hi Whenever , I am running cmd metricbeat -e -c /etc/metricbeat/metricbeat.yml. I am getting following

2021-12-15T05:07:59.529Z ERROR mongodb/mongodb.go:98 Error establishing direct connection to mongo node at [x.x.x.x:x]. Error output: server returned error on SASL authentication step: Authentication failed.

While in the mongo.yml

- module: mongodb  
metricsets:

---

<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:** [January 12, 2022, 5:17am UTC](https://discuss.elastic.co/t/metric-beat-error/291899/2 "2022-01-12T05:17:52Z")

</div>

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