To configure ILM for indices older than 50 days without using a rollover alias, follow these steps:
Create an ILM policy: First, create an ILM policy with the desired actions for indices older than 50 days. In this case, you can set the actions to delete indices older than 50 days. Here's an example of an ILM policy:
Apply the policy to existing or new indices: You can apply the created policy to new indices by specifying the policy in the index template or to existing indices by updating the index settings. Here's an example of applying the policy to an existing index:
PUT /<your_index_name>/_settings
{
"index.lifecycle.name": "50_days_deletion_policy"
}
Replace <your_index_name> with the actual name of the index you want to apply the policy to. Note that the policy will be applied only to the specified index. If you have multiple indices to manage, you can use a wildcard pattern or specify the policy in the index template to apply it to multiple indices.
To configure ILM for indices older than 50 days without using a rollover alias, follow these steps:
Replace
<your_index_name>
with the actual name of the index you want to apply the policy to. Note that the policy will be applied only to the specified index. If you have multiple indices to manage, you can use a wildcard pattern or specify the policy in the index template to apply it to multiple indices.