elasticsearch - Human readable, tabular cluster health with selected headers - elastic - elastic search - elasticsearch tutorial - elasticsearch docker
Human readable, tabular cluster health with selected headers
Example uses basic HTTP syntax. Any <#> in the example should be removed when copying it. Like most _cat APIs in , the API selectively responds with a default set of fields. However, other fields exist from the API if you want them:
?help causes the API to return the fields (and short names) as well as a brief description.
_cat/health has existed since Elasticsearch 1.x, but here is an example of its output from Elasticsearch 5.x: Fields available as-of this example's creation date:
You can then use this to print only those fields:
- h=... defines the list of fields that you want returned.
- v (verbose) defines that you want it to print the headers.
The output from an instance of Elasticsearch 5.x: