New

The executive guide to generative AI

Read more
IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.

Read only

edit

Phases allowed: hot, warm, cold.

Makes the index read-only.

To use the readonly action in the hot phase, the rollover action must be present. If no rollover action is configured, ILM will reject the policy.

Options

edit

None.

Example

edit
PUT _ilm/policy/my_policy
{
  "policy": {
    "phases": {
      "warm": {
        "actions": {
          "readonly" : { }
        }
      }
    }
  }
}

On this page

Was this helpful?
Feedback