# Adding new field to an existing index/dataview

**URL:** <https://discuss.elastic.co/t/adding-new-field-to-an-existing-index-dataview/382142>\
**Category:** Kibana\
**Created:** [September 23, 2025, 1:44am UTC](https://discuss.elastic.co/t/adding-new-field-to-an-existing-index-dataview/382142 "2025-09-23T01:44:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Russell\_Fulton](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/russell_fulton/32/62888_2.png) [@Russell\_Fulton](https://discuss.elastic.co/u/Russell_Fulton)\
**Post date:** [September 23, 2025, 1:44am UTC](https://discuss.elastic.co/t/adding-new-field-to-an-existing-index-dataview/382142/1 "2025-09-23T01:44:24Z")

</div>

version 8.18.3

I found a field in one datastream where the name in the index template did not match the one that was used in the ingested data. I have added the ‘used’ name into the index template and rotated the datastream.

I still can not add the field to the dataview because there are now type inconstancies for that field.

Should I now **`POST`** ` _migration/reindex` …. to fix the type issues?

Russell

---

<div class="post-metadata">

**Author:** ![Keith\_Massey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/keith_massey/32/83666_2.png) [@Keith\_Massey](https://discuss.elastic.co/u/Keith_Massey)\
**Post date:** [September 23, 2025, 1:42pm UTC](https://discuss.elastic.co/t/adding-new-field-to-an-existing-index-dataview/382142/2 "2025-09-23T13:42:59Z")

</div>

I don’t think that **`POST`** ` _migration/reindex` will help you – it is meant for reindexing a data stream for upgrade, and will just reindex each index with the same mappings it already has.

I’m not sure what the dataview looks for in order to decide if it will let you add a field (maybe a kibana expert will see this). How many indices do you have with the old mapping for the field? Is it feasible to reindex each of those old indices with the new correct mapping?

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [September 23, 2025, 2:21pm UTC](https://discuss.elastic.co/t/adding-new-field-to-an-existing-index-dataview/382142/3 "2025-09-23T14:21:55Z")

</div>

> [@Russell\_Fulton](#):
>
> I still can not add the field to the dataview because there are now type inconstancies for that field.

Is this showing up as a field conflict in Kibana when you look at the Data View in Stack Management?

If you have a field conflict you have basically 2 options, one is to remove the indices where the field has conflicting data types, the other one is to reindex all indices that have conflicting data type using the Reindex API.

---

<div class="post-metadata">

**Author:** ![Russell\_Fulton](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/russell_fulton/32/62888_2.png) [@Russell\_Fulton](https://discuss.elastic.co/u/Russell_Fulton)\
**Post date:** [September 23, 2025, 11:22pm UTC](https://discuss.elastic.co/t/adding-new-field-to-an-existing-index-dataview/382142/4 "2025-09-23T23:22:26Z")

</div>

thanks Keith. I was puzzled that is why I posted – it was an “AI” suggestion (Google) and it looked to good to be true.

the datastream has about 20 indexes – I assume I would have to set up a new datastream and reindex into that then delete the old one. Doable but changing all the dashboards etc would be very painful.

---

<div class="post-metadata">

**Author:** ![Keith\_Massey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/keith_massey/32/83666_2.png) [@Keith\_Massey](https://discuss.elastic.co/u/Keith_Massey)\
**Post date:** [September 23, 2025, 11:37pm UTC](https://discuss.elastic.co/t/adding-new-field-to-an-existing-index-dataview/382142/5 "2025-09-23T23:37:29Z")

</div>

> [@Russell\_Fulton](#):
>
> I assume I would have to set up a new datastream and reindex into that then delete the old one

You don’t have to set up a new data stream. Just create a new index for each of the bad ones, make sure it has the correct settings and mappings, [reindex the bad ones](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-modify-data-stream), and then [swap the new ones into the data stream and the old ones out](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-modify-data-stream). It won’t be pleasant, but you won’t have to change your data stream name or your dashboards.
