# Rollover alias \[mylogs\] can point to multiple indices

**URL:** <https://discuss.elastic.co/t/rollover-alias-mylogs-can-point-to-multiple-indices/179108>\
**Category:** Elasticsearch\
**Created:** [April 30, 2019, 2:53pm UTC](https://discuss.elastic.co/t/rollover-alias-mylogs-can-point-to-multiple-indices/179108 "2019-04-30T14:53:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hitesh\_Baldaniya1](https://avatars.discourse-cdn.com/v4/letter/h/45deac/32.png) [@Hitesh\_Baldaniya1](https://discuss.elastic.co/u/Hitesh_Baldaniya1)\
**Post date:** [April 30, 2019, 2:53pm UTC](https://discuss.elastic.co/t/rollover-alias-mylogs-can-point-to-multiple-indices/179108/1 "2019-04-30T14:53:32Z")

</div>

I am getting above mentioned error, following are the steps which I am doing.

- Created ILM policy

```auto
PUT _ilm/policy/mylogspolicy
{
  "policy": {
    "phases": {
      "hot": {
        "actions": {
          "set_priority" : {
            "priority": 100
          },
          "rollover" : {
            "max_docs": 2
          }
        }
      },
      "cold": {
        "min_age": "1h",
        "actions": {
          "readonly" : { },
          "set_priority" : {
            "priority": 75
          }
        }
      }
    }
  }
}

```

- Created Template

```auto
PUT _template/mylogs-template
{
  "index_patterns": ["logs-*"],
  "settings": {
    "index.lifecycle.name": "mylogspolicy",
    "index.lifecycle.rollover_alias": "mylogs",
    "number_of_shards": 2,
    "number_of_replicas": 1,
    "index.mapping.ignore_malformed": true
  },
  "mappings": {
    "_source": {
      "enabled": true
    },
    "dynamic_date_formats": ["date_time"],     
    "properties": {
      "title": {
        "type": "keyword"
      },
      "created_at": {
        "type": "date",
        "format": "date_time"
      }
    }
  },
  "aliases": {
    "mylogs": {
      "is_write_index": true
    }
  }  
}

```

- Created document(based on template index was created)

```auto
POST logs-1/_doc
{
  "created_at": "2019-04-30T02:04:15.050Z",
  "title": "Kuch to chalega"
}

```

- Once rollover condition is matched, I am checking the explain status for ILM policy on alias

```auto
GET mylogs/_ilm/explain

```

and I am getting following error.

```auto
Rollover alias [mylogs] can point to multiple indices, found duplicated alias [[mylogs]] in index template [mylogs-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:** [May 28, 2019, 2:53pm UTC](https://discuss.elastic.co/t/rollover-alias-mylogs-can-point-to-multiple-indices/179108/2 "2019-05-28T14:53:34Z")

</div>

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