elasticsearch - Human readable tabular cluster health with headers - elastic - elastic search - elasticsearch tutorial - elasticsearch docker
Human readable tabular cluster health with headers
Example uses basic HTTP syntax. Any <#> in the example should be removed when copying it.
We can use the _cat APIs to get a human readable, tabular output for various reasons.
You can use the _cat APIs to get a human readable, tabular output for various reasons.
Clicking "Copy Code" button will copy the code into the clipboard - memory. Please paste(Ctrl+V) it in your destination. The code will get pasted. Happy coding from Wikitechy - elasticsearch - elasticsearch tutorial - elastic - elastic search - elasticsearch docker team
The ?v is optional, but it implies that you want "verbose" output.
_cat/health has existed since Elasticsearch 1.x, but here is an example of its output from Elasticsearch 5.x:
Output:
epoch timestamp cluster status node.total node.data shards pri relo init unassign pending_tasks max_task_wait_time active_shards_percent
1469302011 15:26:51 elasticsearch yellow 1 1 45 45 0 0 44 0 - 50.6%