List all indexes on ElasticSearch server?
For a concise list of all indices in your cluster, call
curl http://localhost:9200/_aliases
this will give you a list of indices and their aliases.
If you want it pretty-printed, add pretty=true
:
curl http://localhost:9200/_aliases?pretty=true
The result will look something like this, if your indices are called old_deuteronomy
and mungojerrie
:
{ "old_deuteronomy" : { "aliases" : { } }, "mungojerrie" : { "aliases" : { "rumpleteazer" : { }, "that_horrible_cat" : { } } }}
Try
curl 'localhost:9200/_cat/indices?v'
It will give you following self explanatory output in a tabular manner
health index pri rep docs.count docs.deleted store.size pri.store.sizeyellow customer 5 1 0 0 495b 495b
You can query localhost:9200/_status
and that will give you a list of indices and information about each. The response will look something like this:
{ "ok" : true, "_shards" : { ... }, "indices" : { "my_index" : { ... }, "another_index" : { ... } }}