Indices in delete phase are actually not being deleted

Hi,
I have some metricbeat indices that are in delete phase but the actual deletion does not occur. If I run _ilm/explain on one of those indices I get:

    {
      "indices" : {
        "metricbeat-7.10.0-2020.11.19-000001" : {
          "index" : "metricbeat-7.10.0-2020.11.19-000001",
          "managed" : true,
          "policy" : "metricbeat",
          "lifecycle_date_millis" : 1605869440837,
          "age" : "3.88d",
          "phase" : "delete",
          "phase_time_millis" : 1606129240686,
          "action" : "complete",
          "action_time_millis" : 1605869442625,
          "step" : "complete",
          "step_time_millis" : 1606129240686,
          "phase_execution" : {
            "policy" : "metricbeat",
            "phase_definition" : {
              "min_age" : "3d",
              "actions" : { }
            },
            "version" : 2,
            "modified_date_in_millis" : 1605613648253
          }
        }
      }
    }

The ILM policy linked to that index has an active delete phase after 3 days from rollover. Is there something different to do in order to trigger the actual deletion of the indices?

Best regards

What does your policy look like?

Here is my ILM policy:

{
  "metricbeat" : {
    "version" : 2,
    "modified_date" : "2020-11-17T11:47:28.253Z",
    "policy" : {
      "phases" : {
        "hot" : {
          "min_age" : "0ms",
          "actions" : {
            "rollover" : {
              "max_size" : "1gb",
              "max_age" : "1d"
            }
          }
        },
        "delete" : {
          "min_age" : "3d",
          "actions" : { }
        }
      }
    }
  }
}

Your delete phase does not contain any delete action, which I suspect is why it is not deleted.

Thank you Christian,
you saved my day!

Regards

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