ILM policy without alias

To smoothly transit from Elasticsearch curator to ILM I want to implement a simple ILM policy that change index status according to its age.

So I've create a policy and added to existing indices as following:

{
  "index": {
    "lifecycle": {
      "name": "filebeat-bla"
    },
  }
}

But this failed as complaining for missing rollover_alias:

illegal_argument_exception: setting [index.lifecycle.rollover_alias] for index [filebeat-bla-bla-2021.05.06] is empty or not defined

So I added an alias:

{
  "index": {
    "lifecycle": {
      "name": "filebeat-bla"
      "rollover_alias": "filebeat-bla"
    },
  }
}

But this failed too

illegal_argument_exception: index.lifecycle.rollover_alias [filebeat-bla] does not point to index [filebeat-bla-bla-2021.06.19]

Is there a way to use ILM without changing the income logstash configuration ?

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