# Index management : change index name in filebeat

**URL:** <https://discuss.elastic.co/t/index-management-change-index-name-in-filebeat/202876>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [October 9, 2019, 4:30pm UTC](https://discuss.elastic.co/t/index-management-change-index-name-in-filebeat/202876 "2019-10-09T16:30:00Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![icirco](https://avatars.discourse-cdn.com/v4/letter/i/dec6dc/32.png) [@icirco](https://discuss.elastic.co/u/icirco)\
**Post date:** [October 9, 2019, 4:30pm UTC](https://discuss.elastic.co/t/index-management-change-index-name-in-filebeat/202876/1 "2019-10-09T16:30:00Z")

</div>

hello,

I try to change the index name in filebeat.yml but when I start the filebeat, it still running on the oldest conf :

filebeat.yml :  
output.elasticsearch:  
hosts: ["xx.xx.xx.xx:9200"]  
#index: "filebeat-%{[agent.version]}-%{+yyyy.MM.dd}"  
index: "network-%{+yyyy.MM.dd}"

setup.template.settings:  
index.number\_of\_shards: 1  
setup.template.enabled: true  
setup.template.name: "network"  
setup.template.pattern: "network-\*"

here, the log :  
Set output.elasticsearch.index to 'filebeat-7.3.0' as ILM is enabled.

---

<div class="post-metadata">

**Author:** ![ISR\_FY](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/isr_fy/32/55543_2.png) [@ISR\_FY](https://discuss.elastic.co/u/ISR_FY)\
**Post date:** [October 10, 2019, 4:29pm UTC](https://discuss.elastic.co/t/index-management-change-index-name-in-filebeat/202876/2 "2019-10-10T16:29:19Z")

</div>

Only I think in the indentation of the text...

---

<div class="post-metadata">

**Author:** ![Maxim77](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/maxim77/32/55891_2.png) [@Maxim77](https://discuss.elastic.co/u/Maxim77)\
**Post date:** [October 15, 2019, 6:19am UTC](https://discuss.elastic.co/t/index-management-change-index-name-in-filebeat/202876/3 "2019-10-15T06:19:33Z")

</div>

Coz ILM is enable. you need to add 'setup.ilm.enabled: false' to your filebeat.yml

---

<div class="post-metadata">

**Author:** ![icirco](https://avatars.discourse-cdn.com/v4/letter/i/dec6dc/32.png) [@icirco](https://discuss.elastic.co/u/icirco)\
**Post date:** [October 16, 2019, 6:46am UTC](https://discuss.elastic.co/t/index-management-change-index-name-in-filebeat/202876/4 "2019-10-16T06:46:48Z")

</div>

hello,  
it's works when setup.ilm.enabled is false !

Thanks

---

<div class="post-metadata">

**Author:** ![ISR\_FY](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/isr_fy/32/55543_2.png) [@ISR\_FY](https://discuss.elastic.co/u/ISR_FY)\
**Post date:** [October 17, 2019, 7:53am UTC](https://discuss.elastic.co/t/index-management-change-index-name-in-filebeat/202876/5 "2019-10-17T07:53:08Z")

</div>

> [@Maxim77](#):
>
> setup.ilm.enabled: false

I will try it.

Good tip, thanks.

---

<div class="post-metadata">

**Author:** ![Devopsio](https://avatars.discourse-cdn.com/v4/letter/d/ebca7d/32.png) [@Devopsio](https://discuss.elastic.co/u/Devopsio)\
**Post date:** [October 22, 2019, 2:17pm UTC](https://discuss.elastic.co/t/index-management-change-index-name-in-filebeat/202876/6 "2019-10-22T14:17:28Z")

</div>

> [@icirco](#):
>
> setup.ilm.enabled

What if doesn't work?

---

<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, 2:17pm UTC](https://discuss.elastic.co/t/index-management-change-index-name-in-filebeat/202876/7 "2019-11-19T14:17:36Z")

</div>

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