# Elasticsearch Indices Cluster Health API

**URL:** https://discuss.elastic.co/t/elasticsearch-indices-cluster-health-api/53210
**Category:** Elasticsearch
**Created:** [June 18, 2016, 4:51pm UTC](https://discuss.elastic.co/t/elasticsearch-indices-cluster-health-api/53210 "2016-06-18T16:51:27Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Luigi\_Grilli](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/luigi_grilli/32/10397_2.png) [@Luigi\_Grilli](https://discuss.elastic.co/u/Luigi_Grilli)
#### Post date: [June 18, 2016, 4:51pm UTC](https://discuss.elastic.co/t/elasticsearch-indices-cluster-health-api/53210/1 "2016-06-18T16:51:27Z")

</div>

Hi,  
I was trying to get the indices health using the web api as documented here:  
[https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-health.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-health.html)

So I was using a request like:  
$ curl -XGET '[http://localhost:9200/\_cluster/health/.kibana](http://localhost:9200/_cluster/health/.kibana)'

Anyway no health information about the .kibana index was returned. I was expecting a response similar to:

> <https://github.com/elastic/elasticsearch/issues/4755#issuecomment-91598471>

  
But instead I got the same response like I didn't even specify the .kibana index.

The issue #4755 is still open in github so I'm not sure this is already implemented. But the fact that is in the official documentation suggest it should be... I'm confused.

Can anyone please shed some light on this?  
Thanks

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [June 18, 2016, 9:25pm UTC](https://discuss.elastic.co/t/elasticsearch-indices-cluster-health-api/53210/2 "2016-06-18T21:25:58Z")

</div>

Cluster health is just that, what status the _cluster_ is in.  
If you want a specific index, use `_cat/indices`.

---

<div class="post-metadata">

### Author: ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)
#### Post date: [June 19, 2016, 1:44am UTC](https://discuss.elastic.co/t/elasticsearch-indices-cluster-health-api/53210/3 "2016-06-19T01:44:25Z")

</div>

> [@Luigi\_Grilli](#):
>
> Can anyone please shed some light on this?

The cluster health API _does_ support just checking the status of a specified collection of indices. What indication do you have that it did _not_ respect only checking the health of the .kibana index? Perhaps the simplest way to verify that it did indeed report only for the specified collection of indices is to compare the number of shards in the output of `/_cluster/health` versus the number of shards in the output of `/_cluster/health/.kibana`.

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [June 19, 2016, 2:53am UTC](https://discuss.elastic.co/t/elasticsearch-indices-cluster-health-api/53210/4 "2016-06-19T02:53:35Z")

</div>

It does?! Damn, I need to stop using `_cat` so much 😛

---

<div class="post-metadata">

### Author: ![Luigi\_Grilli](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/luigi_grilli/32/10397_2.png) [@Luigi\_Grilli](https://discuss.elastic.co/u/Luigi_Grilli)
#### Post date: [June 19, 2016, 7:59am UTC](https://discuss.elastic.co/t/elasticsearch-indices-cluster-health-api/53210/5 "2016-06-19T07:59:16Z")

</div>

Hi jasontedor,  
You are right. The output is filtered by the index(es) specified. I was expecting the api would have returned a different data structure, and didn't notice the difference in the data itself, that's why I was confused.  
Thanks very much for pointing this out.

---

<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: [July 5, 2017, 10:42pm UTC](https://discuss.elastic.co/t/elasticsearch-indices-cluster-health-api/53210/6 "2017-07-05T22:42:31Z")

</div>


