ILM - Alias inheritance

Dear experts,
here is my ILM managed mongodb index in hot lifecycle phase

{
  "fbeat-7.10.2-mongodb-2021.08.23-000009" : {
    "aliases" : {
      "fbeat-7.10.2-mongodb" : {
        "is_write_index" : true
      },
      "filebeat-7.10.2-mongodb" : { }
    }
  }
}

When this index moves from hot to warm the shrinked index inherits alias filebeat-7.10.2-mongodb as you can check:

  "shrink-fbeat-7.10.2-mongodb-2021.08.23-000009" : {
    "aliases" : {
      "filebeat-7.10.2-mongodb" : { }
    }

However, the alias filebeat-7.10.2-mongodb is not propagated to the new ILM managed mongodb index in hot lifecycle phase:

{
  "fbeat-7.10.2-mongodb-2021.09.22-000010" : {
    "aliases" : {
      "fbeat-7.10.2-mongodb" : {
        "is_write_index" : true
      }
    }
  }
}

Is it the expected behavior i.e. working as designed ? If yes, any advice to ensure alias inheritance ? Many thanks in advance.

Have a good day.

Here is a similar post 2 years ago : ILM multiple aliases which did not get any answer ... :thinking:

As a workaround, I sent periodically this request:

    - name: Setup alias to fbeat-* indices as inputs for dashboards and Kibana index patterns
      uri:
        url: http://localhost:9200/_aliases
        body_format: json
        method: POST
        body:
          actions:
            - add:
                index: fbeat-{{elasticsearch_version}}-{{item}}-*
                alias: filebeat-{{elasticsearch_version}}-{{item}}

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