# ILM template and index pattern

**URL:** <https://discuss.elastic.co/t/ilm-template-and-index-pattern/282385>\
**Category:** Kibana\
**Tags:** ilm-index-lifecycle-management\
**Created:** [August 24, 2021, 4:08pm UTC](https://discuss.elastic.co/t/ilm-template-and-index-pattern/282385 "2021-08-24T16:08:13Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sherabu](https://avatars.discourse-cdn.com/v4/letter/s/b38774/32.png) [@Sherabu](https://discuss.elastic.co/u/Sherabu)\
**Post date:** [August 24, 2021, 4:08pm UTC](https://discuss.elastic.co/t/ilm-template-and-index-pattern/282385/1 "2021-08-24T16:08:13Z")

</div>

Hi friend, my architecture is filebeat will send data to logstash. Logstash will send data to Kibana and kibana will visualize. My index is like below

```auto
Myindex-team1
Myindex-team2
Myindex-team3
Yourindex-team1
Yourindex-team2
Yourindex-team3

```

Can I know if I set template My\* , and attach it to rollover policy. Will my index name changed based on size? What is default rollover name and his I can. Change it?

---

<div class="post-metadata">

**Author:** ![elasticforme](https://avatars.discourse-cdn.com/v4/letter/e/f05b48/32.png) [@elasticforme](https://discuss.elastic.co/u/elasticforme)\
**Post date:** [August 24, 2021, 4:45pm UTC](https://discuss.elastic.co/t/ilm-template-and-index-pattern/282385/2 "2021-08-24T16:45:02Z")

</div>

you should use Myindex\* as alias

if you use My\* then you won't be able to have seperate index with My(anything) as this ILM will impact that

---

<div class="post-metadata">

**Author:** ![Sherabu](https://avatars.discourse-cdn.com/v4/letter/s/b38774/32.png) [@Sherabu](https://discuss.elastic.co/u/Sherabu)\
**Post date:** [August 24, 2021, 5:11pm UTC](https://discuss.elastic.co/t/ilm-template-and-index-pattern/282385/3 "2021-08-24T17:11:04Z")

</div>

Thanks for the reply. I have updated. I am expecting as below for rollover

```auto
Myindex-team1-yyyyMMdd
Myindex-team2-yyyyMMdd
Myindex-team3-yyyyMMdd
Yourindex-team1-yyyyMMdd
Yourindex-team3-yyyyMMdd

```

Should I create 6 template?

---

<div class="post-metadata">

**Author:** ![elasticforme](https://avatars.discourse-cdn.com/v4/letter/e/f05b48/32.png) [@elasticforme](https://discuss.elastic.co/u/elasticforme)\
**Post date:** [August 24, 2021, 6:44pm UTC](https://discuss.elastic.co/t/ilm-template-and-index-pattern/282385/4 "2021-08-24T18:44:16Z")

</div>

no one template should take care all. and one ILM take cares all. when your index reaches to X limit (depend on your ILM) parameter it will create new index  
you use myindex to write and elk will write to that myindex-xxxx (newest one)

---

<div class="post-metadata">

**Author:** ![Sherabu](https://avatars.discourse-cdn.com/v4/letter/s/b38774/32.png) [@Sherabu](https://discuss.elastic.co/u/Sherabu)\
**Post date:** [August 25, 2021, 12:51am UTC](https://discuss.elastic.co/t/ilm-template-and-index-pattern/282385/5 "2021-08-25T00:51:02Z")

</div>

Is it possible for myindex-team1-xxxxxx? If I want this care how many template I need ya. Can I use 1 or need many for each. What will be the xxx pattern? How can I change it

---

<div class="post-metadata">

**Author:** ![elasticforme](https://avatars.discourse-cdn.com/v4/letter/e/f05b48/32.png) [@elasticforme](https://discuss.elastic.co/u/elasticforme)\
**Post date:** [August 25, 2021, 12:27pm UTC](https://discuss.elastic.co/t/ilm-template-and-index-pattern/282385/6 "2021-08-25T12:27:05Z")

</div>

Sherabu  
please post your ilm and template configuration

---

<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:** [September 22, 2021, 12:27pm UTC](https://discuss.elastic.co/t/ilm-template-and-index-pattern/282385/7 "2021-09-22T12:27:55Z")

</div>

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