Automatically closing indices older than x days using ILP

I was wondering if it is possible to configure a lifecycle policy so that nodes older than 300 days are automatically closing? I would like to know if I am on the right way or am I really trying something that I will never achieve
I was trying something like:

PUT _ilm/policy/my_police
{
  "policy": {
    "phases": {
...
      "cold": {
        "min_age": "60d",
        "actions": {
          "close": {}
        }
      },
...

Thanks!

Hi @Monica_majua,
Yes, you can close indices that are 300 days or older. Are you able to use the Kibana interface to configure this? You can do it through the API, but will probably find it easier through the UI. Here are the docs for an overview and API.

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