Is this something I do through dashboards or via API? I just need to be able to close indices that are between 4 and 2 weeks, and delete anything older 4 weeks.
Index policy has hot and cold replica shard count change example. In ElasticSearch I do these using curator, so not sure how it’s done in Opensearch
So went through the visual editor and created a policy, but I am not able to connect the states to each other. Can I get some pointers? This is what I have for my generated JSON
of course, I can show you what I did but think the best way without filling this post up with screen shots is to show you my JSON config once saved you can open the Visual editor.
How often do created policies run, I am assuming it’s based on priority. Is there somewhere where it is set, or I can set? Meaning to frequency number based on priority.
I noticed I can apply policy on the list of the indices, but I want the policy to run like a cron? So do I need to setup an API call that will be execute the policy?
@Gsmitt I have setup the retention policy similarly to you first policy, where I am deleting indices older than 14 days. I have manually applied the policy to pre-existing indices that match the pattern.
Granted most of my index patterns require 14d retention, is there a limit on patterns that I can include in the policy without possibly introducing excessive overhead? Although same retention rule, should I create multiple policies instead of one monolithic one?
If there different index patterns I would , just for the simple fact I can keep track/monitor of each Index set easier then grouping different index set to gether.