# Filebeat - Update Index Template and create new index

**URL:** <https://discuss.elastic.co/t/filebeat-update-index-template-and-create-new-index/306003>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [May 31, 2022, 6:49am UTC](https://discuss.elastic.co/t/filebeat-update-index-template-and-create-new-index/306003 "2022-05-31T06:49:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hardik\_Sanghavi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hardik_sanghavi/32/106361_2.png) [@Hardik\_Sanghavi](https://discuss.elastic.co/u/Hardik_Sanghavi)\
**Post date:** [May 31, 2022, 6:49am UTC](https://discuss.elastic.co/t/filebeat-update-index-template-and-create-new-index/306003/1 "2022-05-31T06:49:29Z")

</div>

Hello,  
I am new to Filebeat.

I used the standard configuration setup for filebeat and got it to ship data to Elasticsearch.  
I have added some custom fields and they automatically got the "keyword" type.

I changed the type in the "filebeat" index template but I am not able to apply it to the Index created automatically during the filebeat setup.  
What is the best way to update the index to reflect the changes in the template ?

---

<div class="post-metadata">

**Author:** ![ibra\_013](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ibra_013/32/104827_2.png) [@ibra\_013](https://discuss.elastic.co/u/ibra_013)\
**Post date:** [June 1, 2022, 10:07am UTC](https://discuss.elastic.co/t/filebeat-update-index-template-and-create-new-index/306003/2 "2022-06-01T10:07:59Z")

</div>

Hi @Hardik_Sanghavi

you have to reindex the old index

```auto
Index templates are only applied during index creation. Changes to index templates do not affect existing indices. Settings and mappings specified in create index API requests override any settings or mappings specified in an index template.

```

> **[Create or update index template API | Elasticsearch Guide \[8.2\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates-v1.html)**

---

<div class="post-metadata">

**Author:** ![Hardik\_Sanghavi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hardik_sanghavi/32/106361_2.png) [@Hardik\_Sanghavi](https://discuss.elastic.co/u/Hardik_Sanghavi)\
**Post date:** [June 2, 2022, 9:34pm UTC](https://discuss.elastic.co/t/filebeat-update-index-template-and-create-new-index/306003/3 "2022-06-02T21:34:35Z")

</div>

Hello,  
Thanks for the response.  
Is there a way to do it from Web Interface and not use the console ?

---

<div class="post-metadata">

**Author:** ![ibra\_013](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ibra_013/32/104827_2.png) [@ibra\_013](https://discuss.elastic.co/u/ibra_013)\
**Post date:** [June 4, 2022, 11:41am UTC](https://discuss.elastic.co/t/filebeat-update-index-template-and-create-new-index/306003/4 "2022-06-04T11:41:16Z")

</div>

Hi @Hardik_Sanghavi

you can use Dev tool.

---

<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 2, 2022, 1:41pm UTC](https://discuss.elastic.co/t/filebeat-update-index-template-and-create-new-index/306003/5 "2022-07-02T13:41:40Z")

</div>

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