Rollover alias [xxxx] can point to multiple indices, found duplicated alias [[xxxx]] in index template

Hi everyone,
I have a problem with rollover.
I'm getting an error as described in the title:

Rollover alias [xxxx] can point to multiple indices, found duplicated alias [[xxxx]] in index template

The indice, for simplicity sake, is named tap-000001
I have the following rollover policy:

 "actions" : {
            "rollover" : {
              "max_primary_shard_size" : "20gb"
            },

The following alias:

POST _aliases
{
  "actions": [
    {
      "add": {
        "index": "tap*",
        "alias": "tap"
      }
    }
  ]
}

I also have this setting on the indice:
"index.lifecycle.rollover_alias": "tap"

I also defined on the template, is write index as defined here:

{
  "tap": {
    "is_write_index": true
  }
}

I don't understand what I did wrong.
Any help will be greatly appreciated .

Thanks

You can't have a write alias pointing to multiple indices. You should have a separate read and write index, with the latter pointing to a single index.

Thanks for the response.
But I still don't understand what I need to do to fix it.
I've remove the index form the alias and created it again using the one index and still get the same error

POST _aliases
{
  "actions": [
    {
      "add": {
        "index": "tap-000001",
        "alias": "tap"
      }
    }
  ]
}

Fixed it by removing the alias from the index template

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