# Index lifecycle Management: Index Name

**URL:** <https://discuss.elastic.co/t/index-lifecycle-management-index-name/204428>\
**Category:** Elasticsearch\
**Created:** [October 21, 2019, 9:34am UTC](https://discuss.elastic.co/t/index-lifecycle-management-index-name/204428 "2019-10-21T09:34:26Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ZMMWMY](https://avatars.discourse-cdn.com/v4/letter/z/a587f6/32.png) [@ZMMWMY](https://discuss.elastic.co/u/ZMMWMY)\
**Post date:** [October 21, 2019, 9:34am UTC](https://discuss.elastic.co/t/index-lifecycle-management-index-name/204428/1 "2019-10-21T09:34:27Z")

</div>

If I want to use the life cycle, then the index is named after the end of 00001?

---

<div class="post-metadata">

**Author:** ![KrishnaShah7](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/krishnashah7/32/66810_2.png) [@KrishnaShah7](https://discuss.elastic.co/u/KrishnaShah7)\
**Post date:** [October 21, 2019, 10:58am UTC](https://discuss.elastic.co/t/index-lifecycle-management-index-name/204428/2 "2019-10-21T10:58:54Z")

</div>

Yes so if your old index is named eg. logs-000001, your new index would be named: logs-000002.  
You can refer to this [docs page.](https://www.elastic.co/guide/en/elasticsearch/reference/6.3/indices-rollover-index.html)

---

<div class="post-metadata">

**Author:** ![ZMMWMY](https://avatars.discourse-cdn.com/v4/letter/z/a587f6/32.png) [@ZMMWMY](https://discuss.elastic.co/u/ZMMWMY)\
**Post date:** [October 22, 2019, 1:59am UTC](https://discuss.elastic.co/t/index-lifecycle-management-index-name/204428/3 "2019-10-22T01:59:31Z")

</div>

Thank you for reply!  
Another question , i have some index patterns , how to manager them by life cycle management,  
I think we can match them with different templates, but is there any other way?

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/1/3/13d67c95844034c9a48a0126c90de9e486e8c6b3.png)

---

<div class="post-metadata">

**Author:** ![KrishnaShah7](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/krishnashah7/32/66810_2.png) [@KrishnaShah7](https://discuss.elastic.co/u/KrishnaShah7)\
**Post date:** [October 22, 2019, 2:20am UTC](https://discuss.elastic.co/t/index-lifecycle-management-index-name/204428/4 "2019-10-22T02:20:20Z")

</div>

If you define a policy eg. sxc\_liecycle\_policy for your indices, One way to do it can be: For the 9 indices, which all starts from sxc\*, you could define an index template where you can define an index pattern : "index\_patterns" : ["sxc-\*"] & "index.lifecycle\_policy: "sxc\_liecycle\_policy". This template will be applied to all those 9 indices. For the other index, you can define a seperate template and apply the ILM policy as per your need. For more details, refer [documentation page for this.](https://www.elastic.co/guide/en/elasticsearch/reference/current/applying-policy-to-template.html)

You can implement ILM policy through Kibana UI as well, through Index management tab.  
Hope this helps!

---

<div class="post-metadata">

**Author:** ![ZMMWMY](https://avatars.discourse-cdn.com/v4/letter/z/a587f6/32.png) [@ZMMWMY](https://discuss.elastic.co/u/ZMMWMY)\
**Post date:** [October 22, 2019, 2:37am UTC](https://discuss.elastic.co/t/index-lifecycle-management-index-name/204428/5 "2019-10-22T02:37:03Z")

</div>

sorry , I did not describe my problem clearly.  
let me give an example , I use efk(filebeat,fluentd,elasticsearch) to collect my application logs and create new indexes every day. Like `sxc-gateway-2019.10.20, sxc-gateway-2019.10.21, sxc-stocke-service-2019.10.20, sxc-stocke-service-2019.10.21`.I can't make the aliases of different application indexes the same.  
the document indicates that the index's alias and life cycle policy need to be consistent, so How to configure the index template?

---

<div class="post-metadata">

**Author:** ![ZMMWMY](https://avatars.discourse-cdn.com/v4/letter/z/a587f6/32.png) [@ZMMWMY](https://discuss.elastic.co/u/ZMMWMY)\
**Post date:** [October 22, 2019, 2:46am UTC](https://discuss.elastic.co/t/index-lifecycle-management-index-name/204428/6 "2019-10-22T02:46:58Z")

</div>

Is it not necessary to create a new index every day, I just need to create an application index sxc-gateway-000001 roll over based on size

---

<div class="post-metadata">

**Author:** ![ZMMWMY](https://avatars.discourse-cdn.com/v4/letter/z/a587f6/32.png) [@ZMMWMY](https://discuss.elastic.co/u/ZMMWMY)\
**Post date:** [October 22, 2019, 6:12am UTC](https://discuss.elastic.co/t/index-lifecycle-management-index-name/204428/7 "2019-10-22T06:12:43Z")

</div>

I opened a new [post](https://discuss.elastic.co/t/efk-ilm-configuration/204577).

---

<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:** [November 19, 2019, 6:12am UTC](https://discuss.elastic.co/t/index-lifecycle-management-index-name/204428/8 "2019-11-19T06:12:49Z")

</div>

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