ILM not deleting data

Hello,

I'm trying to set a ILM to an index, but it's not deleting old data.

This is my ILM:

PUT _ilm/policy/kong_lifecycle
{
  "policy": {
    "phases": {
      "hot": {
        "min_age": "0ms",
        "actions": {
          "set_priority": {
            "priority": 100
          }
        }
      },
      "delete": {
        
        "min_age": "1m",
        "actions": {
          "delete": {
          
          }
        }
      }
    }
  }
}

This is the explain of my index kong:

{
  "indices": {
    "kong": {
      "index": "kong",
      "managed": false
    }
  }
}

And this is my index template:

As you can see, I'm trying to delete data older than 1 minute, but this is not happening.

New data that comes to the index keep living in there and data from, for example, january still in there.

What am I missing?

Can you share the result of running GET _cat/indices/kong*?v in Kibana Dev Tools?

Are the data from January in indices that where created in january as well?

Can you share the results of running GET index-from-january/_settings in Dev Tools?

1 minute as a timeframe won't work as ILM runs every 10 minutes. Also it doesn't delete data in the index, it deletes indices themselves.

Does that help clarify anything?

1 Like

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