# ILM multiple aliases

**URL:** <https://discuss.elastic.co/t/ilm-multiple-aliases/202035>\
**Category:** Elasticsearch\
**Created:** [October 2, 2019, 6:56pm UTC](https://discuss.elastic.co/t/ilm-multiple-aliases/202035 "2019-10-02T18:56:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![RockD](https://avatars.discourse-cdn.com/v4/letter/r/f6c823/32.png) [@RockD](https://discuss.elastic.co/u/RockD)\
**Post date:** [October 2, 2019, 6:56pm UTC](https://discuss.elastic.co/t/ilm-multiple-aliases/202035/1 "2019-10-02T18:56:26Z")

</div>

Hi  
Some context first: I have multiple beats (metric, audit, heart ....), and making use of the common schema, and make the elastic to store the events on a single common index, in this case an index called simply **beats-** \*.  
To manage the retention of this index, I make use of an ILM policy with the alias of **beats**.

The problem I run into, is that when I want to use the uptime plugin in Kibana, this plugin expects the events in an index of the form **heartbeat-7** (I'm using elasticsearch 7.3), so I create an alias to that indices like this:

```
POST _aliases/
{
    "actions" : [
        { "add" : { "index" : "beats*", "alias" : "heartbeat-7" } }
    ]
}

```

That statement make an alias to **beats-000001** , **beats-000002** , and so on. And the uptime Plugin don't know in what index search.  
So I tried to make an Alias pointing to the alias of the ILM

```
POST /_aliases
{
    "actions" : [
        { "add" : { "index" : "beats", "alias" : "heartbeat-7" } }
    ]
}

```

Also that failed too with an exception

The question is: there's a way to tell the ILM to rotate with multiples alias to the last index?  
If not, anybody knows a workaround to this problem?

Thanks in advance  
regards

Rod

---

<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:** [October 30, 2019, 6:56pm UTC](https://discuss.elastic.co/t/ilm-multiple-aliases/202035/2 "2019-10-30T18:56:30Z")

</div>

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