# Mapping Conflict Issue

**URL:** <https://discuss.elastic.co/t/mapping-conflict-issue/269719>\
**Category:** Elasticsearch\
**Created:** [April 9, 2021, 2:58pm UTC](https://discuss.elastic.co/t/mapping-conflict-issue/269719 "2021-04-09T14:58:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shivani92](https://avatars.discourse-cdn.com/v4/letter/s/f08c70/32.png) [@Shivani92](https://discuss.elastic.co/u/Shivani92)\
**Post date:** [April 9, 2021, 2:58pm UTC](https://discuss.elastic.co/t/mapping-conflict-issue/269719/1 "2021-04-09T14:58:18Z")

</div>

If data type of field is changed in logstash configuration then is it required to create new index every time to get the changes apply?  
Ex. Field "pauseTime" is extracted using KV filter. Data type of the field is changed from string to number, changes are getting applied to the rollover index and not to the current index even with continuous log ingestion. This caused conflict issue.

However, I have converted another field from string to date which was extracted using grok pattern, changes reflected immediately.

---

<div class="post-metadata">

**Author:** ![kavierkoo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kavierkoo/32/86555_2.png) [@kavierkoo](https://discuss.elastic.co/u/kavierkoo)\
**Post date:** [April 11, 2021, 6:23pm UTC](https://discuss.elastic.co/t/mapping-conflict-issue/269719/2 "2021-04-11T18:23:10Z")

</div>

Hi Shivani,

Below document answers your queries:

> Except for supported [mapping parameters](https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-params.html), you can’t change the mapping or field type of an existing field. Changing an existing field could invalidate data that’s already indexed.

> If you need to change the mapping of a field in other indices, create a new index with the correct mapping and [reindex](https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-reindex.html) your data into that index.

> **[Update mapping API | Elasticsearch Guide \[8.11\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-put-mapping.html#updating-field-mappings)**

Hope this helps you!

---

<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:** [May 9, 2021, 6:23pm UTC](https://discuss.elastic.co/t/mapping-conflict-issue/269719/3 "2021-05-09T18:23:29Z")

</div>

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