# Not able to see the cluster status attribute in monitoring-es index

**URL:** <https://discuss.elastic.co/t/not-able-to-see-the-cluster-status-attribute-in-monitoring-es-index/150942>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-monitoring, elastic-stack-alerting\
**Created:** [October 3, 2018, 8:50pm UTC](https://discuss.elastic.co/t/not-able-to-see-the-cluster-status-attribute-in-monitoring-es-index/150942 "2018-10-03T20:50:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mpandey](https://avatars.discourse-cdn.com/v4/letter/m/bc79bd/32.png) [@mpandey](https://discuss.elastic.co/u/mpandey)\
**Post date:** [October 3, 2018, 8:50pm UTC](https://discuss.elastic.co/t/not-able-to-see-the-cluster-status-attribute-in-monitoring-es-index/150942/1 "2018-10-03T20:50:17Z")

</div>

I am working on creating an alert around cluster status wherein I am using .monitoring-es-\* index to extract the cluster status.

But after doing some initial study, I realized that index does not contain that attribute.

Here is the script and response for reference:  
GET .monitoring-es-6-2018.10.03/\_search  
{  
"size": 1  
}

Response:

```
{
  "took": 2,
  "timed_out": false,
  "_shards": {
    "total": 1,
    "successful": 1,
    "skipped": 0,
    "failed": 0
  },
  "hits": {
    "total": 315354,
    "max_score": 1,
    "hits": [
      {
        "_index": ".monitoring-es-6-2018.10.03",
        "_type": "doc",
        "_id": " *******************",
        "_score": 1,
        "_source": {
          "cluster_uuid": " ********
          "timestamp": "2018-10-03T00:00:47.559Z",
          "interval_ms": 10000,
          "type": "shards",
          "source_node": {
            "uuid": " ********",
            "host": "10.0.21.114",
            "transport_address": " ********",
            "ip": " *******",
            "name": "instance-0000000008",
            "timestamp": "2018-10-03T00:00:47.559Z"
          },
          "state_uuid": "YfCDPBgGTF2bh4sCDasilw",
          "shard": {
            "state": "STARTED",
            "primary": true,
            "node": "gIPSPXqDT5anM1NI8Y1sTA",
            "relocating_node": null,
            "shard": 0,
            "index": ".watcher-history-7-2018.10.01"
          }
        }
      }
    ]
  }
}
```

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [October 4, 2018, 6:21am UTC](https://discuss.elastic.co/t/not-able-to-see-the-cluster-status-attribute-in-monitoring-es-index/150942/2 "2018-10-04T06:21:51Z")

</div>

that index contains different kinds of documents, this one being returned was from `type=shards`. Search for a few more and you wil lsee, there are different types with different content.

--Alex

---

<div class="post-metadata">

**Author:** ![mpandey](https://avatars.discourse-cdn.com/v4/letter/m/bc79bd/32.png) [@mpandey](https://discuss.elastic.co/u/mpandey)\
**Post date:** [October 4, 2018, 3:23pm UTC](https://discuss.elastic.co/t/not-able-to-see-the-cluster-status-attribute-in-monitoring-es-index/150942/3 "2018-10-04T15:23:00Z")

</div>

> [@mpandey](#):
>
> \_source

If I have to filter on type attribute, how can I do that?

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [October 4, 2018, 10:31pm UTC](https://discuss.elastic.co/t/not-able-to-see-the-cluster-status-attribute-in-monitoring-es-index/150942/4 "2018-10-04T22:31:55Z")

</div>

by using a [term query](https://www.elastic.co/guide/en/elasticsearch/reference/6.4/query-dsl-term-query.html) or a [match query](https://www.elastic.co/guide/en/elasticsearch/reference/6.4/query-dsl-match-query.html) on the type field

---

<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 1, 2018, 10:32pm UTC](https://discuss.elastic.co/t/not-able-to-see-the-cluster-status-attribute-in-monitoring-es-index/150942/5 "2018-11-01T22:32:09Z")

</div>

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