# Cluster name in monitoring data

**URL:** https://discuss.elastic.co/t/cluster-name-in-monitoring-data/120248
**Category:** Elasticsearch
**Created:** [February 16, 2018, 8:40pm UTC](https://discuss.elastic.co/t/cluster-name-in-monitoring-data/120248 "2018-02-16T20:40:32Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Karthik\_Ramachandran](https://avatars.discourse-cdn.com/v4/letter/k/f19dbf/32.png) [@Karthik\_Ramachandran](https://discuss.elastic.co/u/Karthik_Ramachandran)
#### Post date: [February 16, 2018, 8:40pm UTC](https://discuss.elastic.co/t/cluster-name-in-monitoring-data/120248/1 "2018-02-16T20:40:32Z")

</div>

We are using a monitoring cluster to monitor multiple elastic clusters. I'm trying to write a query to check all the nodes of a given cluster name, but not sure which property in .monitoring indice would provide me with the info. I was looking at cluster\_uuid, but I would prefer using a valid cluster name viz. cluster.name setting as in elasticsearch.yml file.

Any help on how to get this from .monitoring indice would be helpful.

---

<div class="post-metadata">

### Author: ![Karthik\_Ramachandran](https://avatars.discourse-cdn.com/v4/letter/k/f19dbf/32.png) [@Karthik\_Ramachandran](https://discuss.elastic.co/u/Karthik_Ramachandran)
#### Post date: [February 19, 2018, 6:43pm UTC](https://discuss.elastic.co/t/cluster-name-in-monitoring-data/120248/2 "2018-02-19T18:43:58Z")

</div>

Dear All,

Checking as I didn't get any advice. Trying to get cluster name from monitoring data (indices). Thanks for the help.

---

<div class="post-metadata">

### Author: ![bhavyarm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhavyarm/32/22392_2.png) [@bhavyarm](https://discuss.elastic.co/u/bhavyarm)
#### Post date: [February 20, 2018, 4:45pm UTC](https://discuss.elastic.co/t/cluster-name-in-monitoring-data/120248/3 "2018-02-20T16:45:54Z")

</div>

Hi Karthik,

The cluster name is in `cluster_state` type, along with the node name:

One easy of finding this out would be to add an index pattern for .monitoring-es-\* and then you can look at the fields in discover.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/5/e/5ee09e2ccef2a40ef50a67b8c2fa17b3c5d0cef0.png)

Thanks,  
Bhavya

---

<div class="post-metadata">

### Author: ![Karthik\_Ramachandran](https://avatars.discourse-cdn.com/v4/letter/k/f19dbf/32.png) [@Karthik\_Ramachandran](https://discuss.elastic.co/u/Karthik_Ramachandran)
#### Post date: [February 20, 2018, 8:03pm UTC](https://discuss.elastic.co/t/cluster-name-in-monitoring-data/120248/4 "2018-02-20T20:03:33Z")

</div>

Hi Bhavya,

I believe it is cluster\_stats as I see the entry there, and couldn't find any entry for cluster\_state type. Regardless, I'm not able to query (filter) by cluster\_name as it is a dynamic field (=\> using cluster\_name in term/terms filter of query doesn't get me any data),

In template (.monitoring...es) dynamic is set to false though!

Below is what i see in the template.  
"cluster\_stats": {  
"properties": {  
"nodes": {  
"type": "object"  
},  
"indices": {  
"type": "object"  
}  
}  
}

My goal is to find cluster\_uuid based on input cluster name and chain it to node\_stats to find all the nodes of a cluster in a watcher input.

---

<div class="post-metadata">

### Author: ![tsullivan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tsullivan/32/31077_2.png) [@tsullivan](https://discuss.elastic.co/u/tsullivan)
#### Post date: [March 4, 2018, 1:30am UTC](https://discuss.elastic.co/t/cluster-name-in-monitoring-data/120248/5 "2018-03-04T01:30:34Z")

</div>

Hi, which version of Elasticsearch and Kibana are you using? I think it was for v5.5 that we deprecated the `cluster_stats` type and merged its data into the `cluster_state` type.

---

<div class="post-metadata">

### Author: ![Karthik\_Ramachandran](https://avatars.discourse-cdn.com/v4/letter/k/f19dbf/32.png) [@Karthik\_Ramachandran](https://discuss.elastic.co/u/Karthik_Ramachandran)
#### Post date: [March 7, 2018, 12:55am UTC](https://discuss.elastic.co/t/cluster-name-in-monitoring-data/120248/6 "2018-03-07T00:55:39Z")

</div>

Hi Tim

We are using 6.1, and in process of moving to 6.2

Since cluster\_name is not available in all data, I have to create two aggregations now and group by uuid. Say If I want to get JVM usage data by cluster/node (assuming multiple clusters are monitored) I have to get data from two places

---

<div class="post-metadata">

### Author: ![tsullivan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tsullivan/32/31077_2.png) [@tsullivan](https://discuss.elastic.co/u/tsullivan)
#### Post date: [March 7, 2018, 5:19pm UTC](https://discuss.elastic.co/t/cluster-name-in-monitoring-data/120248/7 "2018-03-07T17:19:35Z")

</div>

> [@Karthik\_Ramachandran](#):
>
> Since cluster\_name is not available in all data, I have to create two aggregations now and group by uuid. Say If I want to get JVM usage data by cluster/node (assuming multiple clusters are monitored) I have to get data from two places

Yes, that is correct. That is what Kibana Monitoring application does in several areas.

---

<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: [April 4, 2018, 5:19pm UTC](https://discuss.elastic.co/t/cluster-name-in-monitoring-data/120248/8 "2018-04-04T17:19:43Z")

</div>

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