# Metricbeat attempting to fetch metrics for unlisted metricset - why?

**URL:** <https://discuss.elastic.co/t/metricbeat-attempting-to-fetch-metrics-for-unlisted-metricset-why/271066>\
**Category:** Beats\
**Tags:** elastic-stack-monitoring, metricbeat\
**Created:** [April 23, 2021, 9:46am UTC](https://discuss.elastic.co/t/metricbeat-attempting-to-fetch-metrics-for-unlisted-metricset-why/271066 "2021-04-23T09:46:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ndtreviv](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ndtreviv/32/22494_2.png) [@ndtreviv](https://discuss.elastic.co/u/ndtreviv)\
**Post date:** [April 23, 2021, 9:46am UTC](https://discuss.elastic.co/t/metricbeat-attempting-to-fetch-metrics-for-unlisted-metricset-why/271066/1 "2021-04-23T09:46:37Z")

</div>

I've installed metricbeat (7.12.0) and enabled the elasticsearch-xpack module.

And configured it like so:

```auto
- module: elasticsearch
  xpack.enabled: true
  period: 10s
  scope: cluster
  hosts: ["my-internal-elb.us-east-1.elb.amazonaws.com:9200"]
  metricsets:
    - node
    - node_stats
    - cluster_stats
    - index
    - index_recovery
    - shard
    - index_summary
    - pending_tasks

```

And I'm getting the following logs in syslog:

```auto
INFO#011module/wrapper.go:259#011Error fetching data for metricset elasticsearch.ml_job: HTTP error 400 in : 400 Bad Request

```

I didn't enable the elasticsearch.ml\_job metricset, so why is it trying to fetch it?  
How can I make it stop?  
Do I need to be using the elasticsearch module instead of elasticsearch-xpack?

Thanks for any help offered!

---

<div class="post-metadata">

**Author:** ![ndtreviv](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ndtreviv/32/22494_2.png) [@ndtreviv](https://discuss.elastic.co/u/ndtreviv)\
**Post date:** [April 23, 2021, 1:25pm UTC](https://discuss.elastic.co/t/metricbeat-attempting-to-fetch-metrics-for-unlisted-metricset-why/271066/2 "2021-04-23T13:25:13Z")

</div>

I also get this error on a fresh install of elasticsearch-xpack with no changes to the config, but only on some nodes, not on others.

---

<div class="post-metadata">

**Author:** ![ndtreviv](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ndtreviv/32/22494_2.png) [@ndtreviv](https://discuss.elastic.co/u/ndtreviv)\
**Post date:** [April 26, 2021, 9:38am UTC](https://discuss.elastic.co/t/metricbeat-attempting-to-fetch-metrics-for-unlisted-metricset-why/271066/3 "2021-04-26T09:38:10Z")

</div>

This seems to happen on master nodes only. Seems like a bug?

---

<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:** [May 24, 2021, 11:38am UTC](https://discuss.elastic.co/t/metricbeat-attempting-to-fetch-metrics-for-unlisted-metricset-why/271066/4 "2021-05-24T11:38:12Z")

</div>

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