List ElasticSearch Index names only

Viewed 901

GET /_cat/indices/ returns a detailed list of ElasticSearch indices including their size etc.

Is it possible to just get their names?

2 Answers

You can achieve that by specifying which columns you want:

GET _cat/indices?h=idx

In order to find all the columns available for a given CAT endpoint, you can use the help parameter:

GET _cat/indices?help
Related