Way to apply date range on date math indices

Is there a way to query data from multiple date math indices by date range ?

I have only seen by giving comma separated date math indices for searching, If I have to search over a year, it is difficult keep all the indices over a year.

Please suggest how I can use date range for date math indices.

Thanks!

Try this: https://www.elastic.co/guide/en/elasticsearch/reference/current/date-math-index-names.html

using date math index we can only send comma separated indices, but for example I have to get data from 2018.1.1 to current date, It's not good idea to send each date from 2018.1.1 to current date.

You could create an index alias that covers the year and add all of those indexes to the alias, then query against the alias.

https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-aliases.html

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.