How to use ISM to delete indexes by index pattern and age?

Hi all. I’m trying to use OpenSearch 2.12 ISM to delete indexes by index pattern and age. I’ve tried following the documentation (https://opensearch.org/docs/2.12/im-plugin/ism/index/), but no luck. Could anybody tell me what I’m doing wrong? This is my setup:

The older_than_one_day State is:

Destination state
delete
Transition trigger logic
Minimum index age is 1d

And the Delete state has only a Delete Action.

I would expect to see any indexes beginning with test-, heartbeat- or dev-* deleted after one day. But nothing happens. For instance, I still see indexes like test-lex-nam-sea-knams-2024.06.13, after this has been running for several days.

Could anybody help? HELP!

:slight_smile:

Did you see the index test-lex-nam-sea-knams-2024.06.13 in the page of Policy managed indexes? What’s the status of the policy execution on that index?

Ah! I don’t see that one. But I DO now see it IS working. It must have been my initial confusion setting this up that missed the 06-13 index. But I can see other, more recent, indexes are now getting deleted.

Thank you for your help!

:slight_smile: