how to get all index elasticsearch code example Example: elasticsearch show indexes GET /_cat/indices curl -X GET "localhost:9200/_cat/indices?pretty"