That should work. Can you give a bit more details on what the problem is?
Are you using ODFE or AmazonES? Which version? After you attach the policy to the index does it get stuck on something?
Hi,
I’m using AmazonES version: 7.4. I only have 3 policies that apply: delete after 6 days for index “logs." with order 0, deleted after 1 days for index "logs.noteam.” with order 1 and deleted after 1 hours “logs.noteam.sessions-*” with order 2. First and second is working, third policies aren’t working. When I see Index managed policies I found the message: “Transitioning to delete”
Hi!
I have discover the indexes are deleted after 3h, even if I describe 1h in the settings. I don’t understand this. Do you know why it happens?
Many thanks!
On Amazon Elasticsearch Service the job_interval is set to a larger time than on ODFE (30 minutes vs 5 minutes) so the jobs run a bit slower. This was initially done for performance considerations, but it’s something we will start to reduce in the future to speed up job executions. It seems like your policy is working fine, it’s just not running fast enough in your example. Do you need the data to actually be deleted within an hour or is it just for testing?