How to set elasticsearch 7.11.2 retention period 15 day

I need to set 15 day as a retention period for Elasticsearch 7.11.2 version.

Then create a new retention policy and read this documentation:

PUT _ilm/policy/delete_15d_policy
{
  "policy": {
    "phases": {
      "delete": {
        "min_age": "15d",
        "actions": {
          "delete": {}
        }
      }
    }
  }
}

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.