[Elasticsearch][ILM] Set readonly for warn phase is not working

Dear Bro,
I am trying to set readonly for index in warn phase, using ILM but it is not readonly
This is my setting

"warm": {
        "min_age": "2d",
        "actions": {
          "readonly": {}
        }
      },

Please help me to check it

"min_age": "2d"

as its configured, your index might need to be at least two days old for the action to be applied.

take a look at this.

Notice: if you have used rollover action in your hot phase, the index age will be calculated relative to the rollover time, not the index creation time.

what if you decrease the min_age to something like 1 minute?

1 Like