# How can I reindex TSDB enabled data stream?

**URL:** <https://discuss.elastic.co/t/how-can-i-reindex-tsdb-enabled-data-stream/339774>\
**Category:** Elasticsearch\
**Tags:** infrastructure-observability\
**Created:** [August 1, 2023, 8:48am UTC](https://discuss.elastic.co/t/how-can-i-reindex-tsdb-enabled-data-stream/339774 "2023-08-01T08:48:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aliabbas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aliabbas/32/124156_2.png) [@Aliabbas](https://discuss.elastic.co/u/Aliabbas)\
**Post date:** [August 1, 2023, 8:48am UTC](https://discuss.elastic.co/t/how-can-i-reindex-tsdb-enabled-data-stream/339774/1 "2023-08-01T08:48:24Z")

</div>

Hi, I am currently facing conflicts in a fields `host.ip`. I can resolve that by using an Reindexing API but the problem is the data stream is TSDB enabled. Any idea how can we reindex a TSDB enabled data stream?

FYI I am following the given steps to reindex the data of the data stream.

```auto
POST _reindex
{
  "source": {
    "index": "<index_name>"
  },
  "dest": {
    "index": "temp_index"
  }
} 

```

```auto
DELETE /_data_stream/<data_stream>

```

```auto
DELETE _index_template/<index_template>

```

After reinstalling and updating the templates we have to add the data in the same data stream

```auto
POST _reindex
{
  "conflicts": "proceed",
  "source": {
    "index": "temp_index"
  },
  "dest": {
    "index": "<index_name>",
    "op_type": "create"
  }
}

```

These steps are working fine for a non TSDB enabled data stream but for TSDB they are not.

---

<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:** [August 29, 2023, 8:48am UTC](https://discuss.elastic.co/t/how-can-i-reindex-tsdb-enabled-data-stream/339774/2 "2023-08-29T08:48:57Z")

</div>

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