Getting index health


(Nemo) #1

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


(Thiago Dias) #2

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


(Nemo) #3

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


(David Pilato) #4

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.


(system) #5