# Reindex data stream

**URL:** <https://discuss.elastic.co/t/reindex-data-stream/337305>\
**Category:** Elasticsearch\
**Created:** [June 30, 2023, 10:59am UTC](https://discuss.elastic.co/t/reindex-data-stream/337305 "2023-06-30T10:59:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![VirusProtect](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/virusprotect/32/127766_2.png) [@VirusProtect](https://discuss.elastic.co/u/VirusProtect)\
**Post date:** [June 30, 2023, 10:59am UTC](https://discuss.elastic.co/t/reindex-data-stream/337305/1 "2023-06-30T10:59:44Z")

</div>

Hello,

There is conflicts with fields in the data stream backing indices. I would like to know the correct way to resolve this issue. While reindexing data is possible with regular indexes, I am unsure how to proceed with data streams. Could you please provide guidance on how to address this? Thank you.

---

<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:** [June 30, 2023, 12:34pm UTC](https://discuss.elastic.co/t/reindex-data-stream/337305/2 "2023-06-30T12:34:56Z")

</div>

> [@VirusProtect](#):
>
> Could you please provide guidance on how to address this?

It is in the [documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/use-a-data-stream.html#reindex-with-a-data-stream).

You need to point to the data stream name, with the `op_type` set to `create` and then data will be written to the current backing indice.

If you changed mappings on your template I think you will probably need to [force a rollover](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-rollover-index.html#indices-rollover-index) before.

---

<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 28, 2023, 12:35pm UTC](https://discuss.elastic.co/t/reindex-data-stream/337305/3 "2023-07-28T12:35:49Z")

</div>

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