Listing ElasticSearch indexes

October 11, 2016

To find out a top level list of indexes in an ElasticSearch database, use:

http://host:9200/_cat/indices?v

which returns something like

health status index               pri rep docs.count docs.deleted store.size pri.store.size 
yellow open   logstash-2016.10.06   5   1      18908            0        6mb            6mb 
yellow open   .kibana               1   1          5            1     25.4kb         25.4kb 
yellow open   logstash-2016.10.08   5   1       5346            0        2mb            2mb 
yellow open   logstash-2016.10.07   5   1       9500            0      3.7mb          3.7mb 
yellow open   logstash-2016.10.11   5   1       3603            0      1.8mb          1.8mb 
yellow open   logstash-2016.10.09   5   1       5016            0        2mb            2mb 
yellow open   logstash-2016.10.10   5   1      14787            0      4.8mb          4.8mb 
yellow open   logstash-2016.10.05   5   1      34108            0      9.5mb          9.5mb