# Template configuration not working with ilm enabled

**URL:** <https://discuss.elastic.co/t/template-configuration-not-working-with-ilm-enabled/186717>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [June 20, 2019, 3:00pm UTC](https://discuss.elastic.co/t/template-configuration-not-working-with-ilm-enabled/186717 "2019-06-20T15:00:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![4rakasi](https://avatars.discourse-cdn.com/v4/letter/4/7cd45c/32.png) [@4rakasi](https://discuss.elastic.co/u/4rakasi)\
**Post date:** [June 20, 2019, 3:00pm UTC](https://discuss.elastic.co/t/template-configuration-not-working-with-ilm-enabled/186717/1 "2019-06-20T15:00:58Z")

</div>

Hello,

When I modify the "Elasticsearch template setting" part in the filebeat.yml file with the ilm enabled (by default), I can't manage to modify the index pattern of the template and it's name. The only thing that can be changed is the number of allocated shard.

However, when I explicitly disable the ilm in the filebeat.yml configuration file ( **setup.ilm.enabled: no** ), everything works as intended.

How can I manage to change the template index pattern with ilm enabled?

Thanks !

---

<div class="post-metadata">

**Author:** ![Mario\_Castro](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mario_castro/32/35107_2.png) [@Mario\_Castro](https://discuss.elastic.co/u/Mario_Castro)\
**Post date:** [June 24, 2019, 9:26am UTC](https://discuss.elastic.co/t/template-configuration-not-working-with-ilm-enabled/186717/2 "2019-06-24T09:26:42Z")

</div>

Hi @4rakasi 🙂

Did you check specific ILM instructions for Filebeat here? [https://www.elastic.co/guide/en/beats/filebeat/current/ilm.html](https://www.elastic.co/guide/en/beats/filebeat/current/ilm.html)

Remember that you won't create an index per day in Filebeat if ILM is setup. Index policies are now handled by ILM so you don't need to worry about this.

---

<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:** [July 22, 2019, 9:26am UTC](https://discuss.elastic.co/t/template-configuration-not-working-with-ilm-enabled/186717/3 "2019-07-22T09:26:45Z")

</div>

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