# Getting index health

**URL:** https://discuss.elastic.co/t/getting-index-health/32897
**Category:** Elasticsearch
**Created:** [October 24, 2015, 1:34am UTC](https://discuss.elastic.co/t/getting-index-health/32897 "2015-10-24T01:34:57Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Pradeep\_Gowda](https://avatars.discourse-cdn.com/v4/letter/p/ebca7d/32.png) [@Pradeep\_Gowda](https://discuss.elastic.co/u/Pradeep_Gowda)
#### Post date: [October 24, 2015, 1:34am UTC](https://discuss.elastic.co/t/getting-index-health/32897/1 "2015-10-24T01:34:57Z")

</div>

Hi All,

How can I get the health status of each index through java API ([http://10.0.1.32:9200/\_cat/indices?v](http://10.0.1.32:9200/_cat/indices?v))

I am able to read all the value except the health for each index through transportclient admin.

Thanks

---

<div class="post-metadata">

### Author: ![Thiago\_Dias](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thiago_dias/32/97322_2.png) [@Thiago\_Dias](https://discuss.elastic.co/u/Thiago_Dias)
#### Post date: [October 24, 2015, 1:40am UTC](https://discuss.elastic.co/t/getting-index-health/32897/2 "2015-10-24T01:40:12Z")

</div>

'[http://10.0.1.32:9200/\_cluster/health?pretty](http://10.0.1.32:9200/_cluster/health?pretty)'

---

<div class="post-metadata">

### Author: ![Pradeep\_Gowda](https://avatars.discourse-cdn.com/v4/letter/p/ebca7d/32.png) [@Pradeep\_Gowda](https://discuss.elastic.co/u/Pradeep_Gowda)
#### Post date: [October 24, 2015, 3:52am UTC](https://discuss.elastic.co/t/getting-index-health/32897/3 "2015-10-24T03:52:00Z")

</div>

Hi Thiago,  
I am looking for JAVA API to get status of each index.

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [October 24, 2015, 5:43am UTC](https://discuss.elastic.co/t/getting-index-health/32897/4 "2015-10-24T05:43:32Z")

</div>

JAVA API does not expose \_cat API.

But have a look at client.admin().cluster()

It will give you access to the cluster health.

Hope this helps.

BTW, have a look at \_cat API Java source code. It could help you.

---

<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, 11:42pm UTC](https://discuss.elastic.co/t/getting-index-health/32897/5 "2017-07-05T23:42:48Z")

</div>


