# How to disable xpack.monitoring?

**URL:** <https://discuss.elastic.co/t/how-to-disable-xpack-monitoring/251096>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-monitoring\
**Created:** [October 6, 2020, 10:01am UTC](https://discuss.elastic.co/t/how-to-disable-xpack-monitoring/251096 "2020-10-06T10:01:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kamolhasan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kamolhasan/32/76540_2.png) [@kamolhasan](https://discuss.elastic.co/u/kamolhasan)\
**Post date:** [October 6, 2020, 10:01am UTC](https://discuss.elastic.co/t/how-to-disable-xpack-monitoring/251096/1 "2020-10-06T10:01:45Z")

</div>

Hi, I have enabled xpack.monitoring with "elasticsearch.yml" file:

```auto
... ... ...
xpack.monitoring.enabled: true
xpack.monitoring.collection.enabled: true
xpack.monitoring.exporters:
  my-http-exporter:
    type: http
    host: ["http://127.0.0.1:9200"]
    auth:
      username: monitor
      password: monitor@secret
... ... ...

```

For some reason, I had to restart my cluster and the user "monitor" is gone. But that's not my problem here (I know the reason). Since the user "monitor" does not exist anymore, I'm having the following log continuously:

```auto
WARN ][c.f.s.a.BackendRegistry] Authentication finally failed for monitor

```

Questions:

- How to fix this error log? I want to remove this exporter from the list.
- Since "xpack.monitoring.enabled" cannot be set to "false" dynamically over "/\_cluster/setting" API, how to disable "xpack.monitoring"?

---

<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 3, 2020, 10:01am UTC](https://discuss.elastic.co/t/how-to-disable-xpack-monitoring/251096/2 "2020-11-03T10:01:54Z")

</div>

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