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

**URL:** <https://discuss.elastic.co/t/rollover-alias-xxxx-can-point-to-multiple-indices-found-duplicated-alias-xxxx-in-index-template/324802>\
**Category:** Elasticsearch\
**Tags:** ilm-index-lifecycle-management\
**Created:** [February 6, 2023, 2:43pm UTC](https://discuss.elastic.co/t/rollover-alias-xxxx-can-point-to-multiple-indices-found-duplicated-alias-xxxx-in-index-template/324802 "2023-02-06T14:43:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eran\_Hadad](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eran_hadad/32/102407_2.png) [@Eran\_Hadad](https://discuss.elastic.co/u/Eran_Hadad)\
**Post date:** [February 6, 2023, 2:43pm UTC](https://discuss.elastic.co/t/rollover-alias-xxxx-can-point-to-multiple-indices-found-duplicated-alias-xxxx-in-index-template/324802/1 "2023-02-06T14:43:38Z")

</div>

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:

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

```

The following alias:

```auto
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](https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-rollover.html):

```auto
{
  "tap": {
    "is_write_index": true
  }
}

```

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

Thanks

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [February 7, 2023, 11:47pm UTC](https://discuss.elastic.co/t/rollover-alias-xxxx-can-point-to-multiple-indices-found-duplicated-alias-xxxx-in-index-template/324802/2 "2023-02-07T23:47:01Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Eran\_Hadad](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eran_hadad/32/102407_2.png) [@Eran\_Hadad](https://discuss.elastic.co/u/Eran_Hadad)\
**Post date:** [February 11, 2023, 3:08pm UTC](https://discuss.elastic.co/t/rollover-alias-xxxx-can-point-to-multiple-indices-found-duplicated-alias-xxxx-in-index-template/324802/3 "2023-02-11T15:08:29Z")

</div>

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

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

```

---

<div class="post-metadata">

**Author:** ![Eran\_Hadad](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eran_hadad/32/102407_2.png) [@Eran\_Hadad](https://discuss.elastic.co/u/Eran_Hadad)\
**Post date:** [February 12, 2023, 10:54am UTC](https://discuss.elastic.co/t/rollover-alias-xxxx-can-point-to-multiple-indices-found-duplicated-alias-xxxx-in-index-template/324802/4 "2023-02-12T10:54:14Z")

</div>

Fixed it by removing the alias from the index template

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 12, 2023, 10:55am UTC](https://discuss.elastic.co/t/rollover-alias-xxxx-can-point-to-multiple-indices-found-duplicated-alias-xxxx-in-index-template/324802/5 "2023-03-12T10:55:00Z")

</div>

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