# Issue with datastream, each similar datastream have own hidden index

**URL:** <https://discuss.elastic.co/t/issue-with-datastream-each-similar-datastream-have-own-hidden-index/327201>\
**Category:** Elasticsearch\
**Tags:** datastreams\
**Created:** [March 7, 2023, 3:18pm UTC](https://discuss.elastic.co/t/issue-with-datastream-each-similar-datastream-have-own-hidden-index/327201 "2023-03-07T15:18:33Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![danoque](https://avatars.discourse-cdn.com/v4/letter/d/f6c823/32.png) [@danoque](https://discuss.elastic.co/u/danoque)\
**Post date:** [March 7, 2023, 3:18pm UTC](https://discuss.elastic.co/t/issue-with-datastream-each-similar-datastream-have-own-hidden-index/327201/1 "2023-03-07T15:18:33Z")

</div>

I have issue after i configured datastream without "Component Templates". I created datastream with _, so like this: "my-index-pattern-_" in field "Index patterns". And then, each day elastic creats new datastream with hidden index. I tried to 1) put alias to each hidden index and then 2) Convert an index alias to a data stream, but "The provided expressions [.ds-ingress-nginx-10.13-2022.10.13-000001] match a backing index belonging to data stream [ingress-nginx-2022.10.13]. Data stream backing indices don't support aliases. Please, if you have some advice how to move this indexies to One data stream, I will be very grateful to hear them.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [March 7, 2023, 10:17pm UTC](https://discuss.elastic.co/t/issue-with-datastream-each-similar-datastream-have-own-hidden-index/327201/2 "2023-03-07T22:17:56Z")

</div>

Welcome to our community! 😃

> [@danoque](#):
>
> I tried to 1) put alias to each hidden index

Why do you want to do that?

---

<div class="post-metadata">

**Author:** ![danoque](https://avatars.discourse-cdn.com/v4/letter/d/f6c823/32.png) [@danoque](https://discuss.elastic.co/u/danoque)\
**Post date:** [March 9, 2023, 8:23am UTC](https://discuss.elastic.co/t/issue-with-datastream-each-similar-datastream-have-own-hidden-index/327201/3 "2023-03-09T08:23:39Z")

</div>

Because I don't see any other ways, I didn't find any mention in the documentation about merging indexes from different data streams. I continue trying to experiment with backups of my data, but so far there is no desired effect - one datastream with an index template and a list of hidden indexes as here [Set up a data stream | Elasticsearch Guide [8.6] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/set-up-a-data-stream.html#convert-index-alias-to-data-stream)

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [March 9, 2023, 8:37am UTC](https://discuss.elastic.co/t/issue-with-datastream-each-similar-datastream-have-own-hidden-index/327201/4 "2023-03-09T08:37:40Z")

</div>

> [@danoque](#):
>
> I didn't find any mention in the documentation about merging indexes from different data streams

It might be easier to take a step back here, what are you trying to achieve?

---

<div class="post-metadata">

**Author:** ![danoque](https://avatars.discourse-cdn.com/v4/letter/d/f6c823/32.png) [@danoque](https://discuss.elastic.co/u/danoque)\
**Post date:** [March 9, 2023, 8:47am UTC](https://discuss.elastic.co/t/issue-with-datastream-each-similar-datastream-have-own-hidden-index/327201/5 "2023-03-09T08:47:11Z")

</div>

according to this documentation I have already created a new good correct datastream [Set up a data stream | Elasticsearch Guide [8.6] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/set-up-a-data-stream.html#create-data-stream) I am trying to achieve the same state for my old erroneous solution as at the end of executing the instructions for creating a datastream, that is, to merge the indexes into one and combine them into a data stream requires a matching index template and an index template and Creating a data stream automatically by submitting an indexing request that targets the stream's name

---

<div class="post-metadata">

**Author:** ![danoque](https://avatars.discourse-cdn.com/v4/letter/d/f6c823/32.png) [@danoque](https://discuss.elastic.co/u/danoque)\
**Post date:** [March 14, 2023, 8:45am UTC](https://discuss.elastic.co/t/issue-with-datastream-each-similar-datastream-have-own-hidden-index/327201/6 "2023-03-14T08:45:11Z")

</div>

I found solution. Reindex api, i created a new index-template and index-pattern, created a new config for filebeat for this index-template, then reindex all my olds backing index from olds datastreams to new datastream.

---

<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:** [April 11, 2023, 8:45am UTC](https://discuss.elastic.co/t/issue-with-datastream-each-similar-datastream-have-own-hidden-index/327201/7 "2023-04-11T08:45:36Z")

</div>

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