# Help me under lifecycle policies with namespaces

**URL:** <https://discuss.elastic.co/t/help-me-under-lifecycle-policies-with-namespaces/304704>\
**Category:** Elasticsearch\
**Tags:** ilm-index-lifecycle-management\
**Created:** [May 13, 2022, 5:49pm UTC](https://discuss.elastic.co/t/help-me-under-lifecycle-policies-with-namespaces/304704 "2022-05-13T17:49:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ARDiver86](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ardiver86/32/85266_2.png) [@ARDiver86](https://discuss.elastic.co/u/ARDiver86)\
**Post date:** [May 13, 2022, 5:49pm UTC](https://discuss.elastic.co/t/help-me-under-lifecycle-policies-with-namespaces/304704/1 "2022-05-13T17:49:41Z")

</div>

I am having a very difficult time understanding the workflow with index aliases. I understand ILM as what it is doing with the indexes with shrinking shards, moving to warm/cold/frozen tiers and deleting after X amount of days/size/time but what I can't wrap my head around is the purpose of index aliases.

For example I have multiple policies with INDEX only that uses namespaces. This will automatically create new _hidden_ indices with names such as .ds-logs-endpoint.events.library--- along with data streams. However these default index templates that come with elastic have NO aliases. So when I try to add a life cycle policy to them, they show a warning:

```auto
Index has no aliases
Policy 7-days-default is configured for rollover, but index .ds-.logs-endpoint.diagnostic.collection-datacenter-2022.05.12-000001 does not have an alias, which is required for rollover.

```

I figure I wouldn't want to edit a default index template that comes with Elastic but even if I did what would I put as a index alias especially since namespaces are involved? What is the solution?

---

<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:** [June 10, 2022, 5:50pm UTC](https://discuss.elastic.co/t/help-me-under-lifecycle-policies-with-namespaces/304704/2 "2022-06-10T17:50:24Z")

</div>

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