# Metricbeat is not sending cluster\_stats for elasticsearch module

**URL:** https://discuss.elastic.co/t/metricbeat-is-not-sending-cluster-stats-for-elasticsearch-module/274378
**Category:** Beats
**Tags:** metricbeat
**Created:** [May 28, 2021, 8:30pm UTC](https://discuss.elastic.co/t/metricbeat-is-not-sending-cluster-stats-for-elasticsearch-module/274378 "2021-05-28T20:30:57Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Cousin\_John](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cousin_john/32/77950_2.png) [@Cousin\_John](https://discuss.elastic.co/u/Cousin_John)
#### Post date: [May 28, 2021, 8:30pm UTC](https://discuss.elastic.co/t/metricbeat-is-not-sending-cluster-stats-for-elasticsearch-module/274378/1 "2021-05-28T20:30:57Z")

</div>

I am having the same issue as this closed post:

> [@Metricbeat is not sending cluster\_stats for elasticsearch module](https://discuss.elastic.co/t/metricbeat-is-not-sending-cluster-stats-for-elasticsearch-module/240688):
>
> Hello, I am trying to monitor our elastic search cluster 2.x with metricbeat 7.7.1. Metricbeat is sending over the data for shards, indicex, node, node\_stats but for some reason its not sending over cluster\_stats metric set. configurations for elasticsearch module. # Module: elasticsearch # Docs: https://www.elastic.co/guide/en/beats/metricbeat/7.2/metricbeat-module-elasticsearch.html - module: elasticsearch metricsets: - node - node\_stats - shard - cluster\_stats …

I am trying to monitor our Elasticsearch cluster 2.x with metricbeat 7.7.1. Metricbeat is sending over the data for node, node\_stats but for some reason it's not sending over cluster\_stats metric set.

So I tried what was suggested in the last post `./metricbeat -e -d "*"`

My logs don't show anything failing so I'm not sure where the issues is.

```auto
2021-05-28T22:14:20.651+0200	DEBUG	[cfgfile]	cfgfile/reload.go:194	Scan for new config files
2021-05-28T22:14:20.665+0200	DEBUG	[elasticsearch.cluster_stats]	elasticsearch/metricset.go:132	trying to fetch cluster_stats stats from a non-master node
2021-05-28T22:14:30.651+0200	DEBUG	[cfgfile]	cfgfile/reload.go:194	Scan for new config files
2021-05-28T22:14:30.664+0200	DEBUG	[elasticsearch.cluster_stats]	elasticsearch/metricset.go:132	trying to fetch cluster_stats stats from a non-master node
2021-05-28T22:14:40.647+0200	INFO	[monitoring]	log/log.go:144	Non-zero metrics in the last 30s	{"monitoring": ... }

```

I am able to manually curl for the data. I do understand the response JSON shape has changed over versions but I have not seen anything saying metricbeats can't handle that.

Any insights would be greatly appreciated.

---

<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: [June 25, 2021, 10:31pm UTC](https://discuss.elastic.co/t/metricbeat-is-not-sending-cluster-stats-for-elasticsearch-module/274378/2 "2021-06-25T22:31:28Z")

</div>

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