# Setup.template.name not working with ILM (?)

**URL:** <https://discuss.elastic.co/t/setup-template-name-not-working-with-ilm/212562>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [December 19, 2019, 9:02pm UTC](https://discuss.elastic.co/t/setup-template-name-not-working-with-ilm/212562 "2019-12-19T21:02:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![john\_eapen](https://avatars.discourse-cdn.com/v4/letter/j/b3f665/32.png) [@john\_eapen](https://discuss.elastic.co/u/john_eapen)\
**Post date:** [December 19, 2019, 9:02pm UTC](https://discuss.elastic.co/t/setup-template-name-not-working-with-ilm/212562/1 "2019-12-19T21:02:12Z")

</div>

Hi,

I have slightly confused about some of the posts I have seen on this.  
Does custom template not work when ILM is enabled in filebeat ?  
(Needless to say,I need both these features.)

I hv specified my ES index as:  
index: "logstash-fb-%{[agent.version]}-%{+yyyy.MM.dd}"

But the actual index are filebeat-\* . See below filebeat logs snip

| 2019-12-19T20:55:03.747Z | INFO | [index-management] | idxmgmt/std.go:265 | ILM policy successfully loaded. |
| --- | --- | --- | --- | --- |
| 2019-12-19T20:55:03.747Z | INFO | [index-management] | idxmgmt/std.go:394 | Set setup.template.name to '{filebeat-7.4.1 {now/d}-000001}' as ILM is enabled. |
| 2019-12-19T20:55:03.747Z | INFO | [index-management] | idxmgmt/std.go:399 | Set setup.template.pattern to 'filebeat-7.4.1-\*' as ILM is enabled. |
| 2019-12-19T20:55:03.747Z | INFO | [index-management] | idxmgmt/std.go:433 | Set settings.index.lifecycle.rollover\_alias in template to {filebeat-7.4.1 {now/d}-000001} as ILM is enabled. |

---

<div class="post-metadata">

**Author:** ![gabriel\_tessier](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gabriel_tessier/32/27911_2.png) [@gabriel\_tessier](https://discuss.elastic.co/u/gabriel_tessier)\
**Post date:** [December 20, 2019, 2:51am UTC](https://discuss.elastic.co/t/setup-template-name-not-working-with-ilm/212562/2 "2019-12-20T02:51:10Z")

</div>

Hi there!

@john_eapen you are not alone! 😀

I have the same problem, and in this thread shrikantgulia struggle with this problem:

> [@Create Index with filebeat](https://discuss.elastic.co/t/create-index-with-filebeat/211964/):
>
> Hello , I want to create a index and push data directly to elasticsearch with filebeat but i am not able to create a index its showing me the error can someone help me out. Exiting: setup.template.name and setup.template.pattern have to be set if index name is modified

if somebody can help he will save 3 people in one thread! 🙇‍♂️

---

<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:** [January 17, 2020, 2:51am UTC](https://discuss.elastic.co/t/setup-template-name-not-working-with-ilm/212562/3 "2020-01-17T02:51:12Z")

</div>

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