Hi Mark,
Thanks for the reply. I am not aware of the step. Looking at some other thread I found that after creating policy I need to add below two steps to attach the policy to indexes starting with the name catalog
Are these steps sufficient? Is there a clear documentation on this process. I could not find one.
Also, I just added below two yesterday. Does it mean indexes created earlier won't use the policy but only newly created indexes? I ask because I do not see old indices getting purged.
How often the policy run to purge indices once its started working as expected?
PUT /catalog*/_settings?pretty
{
"lifecycle.name": "QA_only_cleanup_old_indices"
}
PUT /_template/cleanup_policy_template?pretty
{
"index_patterns": ["catalog*"], "settings": { "index.lifecycle.name": "QA_only_cleanup_old_indices" }
}