Date math support in index names

Hello
I’ve tried but with no success.
It is possible to use date math when defining index to search for?
I’m using elasticsearch ILM to rotate my indexes and now alerts are searching through all indexes metricbeat-* which is quite expensive operation.
It would be nice to have a possibility to search only for last 2 day indexes instead

If someone found a way how to achieve this please share an example.
Thanks

Alerting plugin doesn’t support index name date math. Please create a enhancement on github alerting repo. As a workaround consider using aliases.

issue opened, thank you for you reply