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
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
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.
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.