Getting index health

Hi All,

How can I get the health status of each index through java API (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

'http://10.0.1.32:9200/_cluster/health?pretty'

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

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.

1 Like