# Reindex Change Field Type

**URL:** <https://discuss.elastic.co/t/reindex-change-field-type/168127>\
**Category:** Elasticsearch\
**Created:** [February 12, 2019, 11:52pm UTC](https://discuss.elastic.co/t/reindex-change-field-type/168127 "2019-02-12T23:52:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rudyamid](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rudyamid/32/38393_2.png) [@rudyamid](https://discuss.elastic.co/u/rudyamid)\
**Post date:** [February 12, 2019, 11:52pm UTC](https://discuss.elastic.co/t/reindex-change-field-type/168127/1 "2019-02-12T23:52:02Z")

</div>

With ECS-GA coming our way, it was advised that we have to start using index templates to standardize on the correct field names & types. To prepare for this, I've started the exercise to reindex my firewall logs:

1. Create a new template (none were created before):

2. I reindex from old to new:

3. When I check the new index (\*-v1), the field "RepeatCount" is still in string type from the old index. I'm expecting to change to Integer/Long type. The template doesn't seem to supercede it.

Am I doing this correctly? Is there not a way to change field type during the reindex process?

Thanks  
Rudy

---

<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:** [March 12, 2019, 11:52pm UTC](https://discuss.elastic.co/t/reindex-change-field-type/168127/2 "2019-03-12T23:52:03Z")

</div>

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