I have below listed index in kibana
Index-2019-09-09
Index-2019-09-10
Index-2019-09-11
Index-2019-09-12
Index-2019-09-13
Index-2019-09-14
Index-2019-09-15
My question is how or is there any api that i can use to list out all the available index from Index-2019-09-10 to Index-2019-09-14 ?
You could use the search API and the ignore_unavailable parameter to aggregate into the _index field.
Suppose the following indices were created:
PUT index-2019-09-09/_doc/09
{"field": "value"}
PUT index-2019-09-10/_doc/10
{"field": "value"}
PUT index-2019-09-11/_doc/11
{"field": "value"}
PUT index-2019-09-12/_doc/12
{"field": "value"}
PUT index-2019-09-13/_doc/13
{"field": "value"}
PUT index-2019-09-14/_doc/14
{"field": "value"}
PUT index-2019-09-15/_doc/15
{"field": "value"}
Then, the query to find indices from 2019-09-10 to 2019-09-14 would be:
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.