# Create a dashboard using two different Data stream index

**URL:** <https://discuss.elastic.co/t/create-a-dashboard-using-two-different-data-stream-index/298388>\
**Category:** Elasticsearch\
**Created:** [February 28, 2022, 9:16am UTC](https://discuss.elastic.co/t/create-a-dashboard-using-two-different-data-stream-index/298388 "2022-02-28T09:16:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![niveditakathal](https://avatars.discourse-cdn.com/v4/letter/n/e19b73/32.png) [@niveditakathal](https://discuss.elastic.co/u/niveditakathal)\
**Post date:** [February 28, 2022, 9:16am UTC](https://discuss.elastic.co/t/create-a-dashboard-using-two-different-data-stream-index/298388/1 "2022-02-28T09:16:54Z")

</div>

Hi Experts,

I want to create a dashboard using two different Data stream index {as mentioned below under notes}. when I checked the available options to do so , I read about \_aliases option; however in my use-case that is not possible/working.

kindly assist.

Note:

POST \_aliases  
{  
"actions": [  
{  
"add": {"index": "logs-\*","alias": "join\_logs\_demo" }  
},  
{  
"add": {"index": "custome\_logs","alias": "join\_logs\_demo" }  
}  
]  
}

Data stream index pattern is logs-\*  
Data stream index custome\_logs with alias as "is\_write\_index" : true

---

<div class="post-metadata">

**Author:** ![casterQ](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/casterq/32/93257_2.png) [@casterQ](https://discuss.elastic.co/u/casterQ)\
**Post date:** [February 28, 2022, 10:27am UTC](https://discuss.elastic.co/t/create-a-dashboard-using-two-different-data-stream-index/298388/2 "2022-02-28T10:27:01Z")

</div>

You cannot add data streams to an index alias.  
here is [Official documents](https://www.elastic.co/guide/en/elasticsearch/reference/7.10/indices-add-alias.html#add-alias-api-path-params) explain

---

<div class="post-metadata">

**Author:** ![casterQ](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/casterq/32/93257_2.png) [@casterQ](https://discuss.elastic.co/u/casterQ)\
**Post date:** [February 28, 2022, 10:31am UTC](https://discuss.elastic.co/t/create-a-dashboard-using-two-different-data-stream-index/298388/3 "2022-02-28T10:31:14Z")

</div>

but you can use index pattern to match one or more data streams, indices, or index aliases.  
such as

 ![1](https://us1.discourse-cdn.com/elastic/original/3X/3/9/39ee8eb3c5190ee50c34cfe62ddf207eaffe62f1.png)

---

<div class="post-metadata">

**Author:** ![niveditakathal](https://avatars.discourse-cdn.com/v4/letter/n/e19b73/32.png) [@niveditakathal](https://discuss.elastic.co/u/niveditakathal)\
**Post date:** [March 7, 2022, 9:57am UTC](https://discuss.elastic.co/t/create-a-dashboard-using-two-different-data-stream-index/298388/4 "2022-03-07T09:57:48Z")

</div>

Thanks caster

---

<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 4, 2022, 9:58am UTC](https://discuss.elastic.co/t/create-a-dashboard-using-two-different-data-stream-index/298388/5 "2022-04-04T09:58:10Z")

</div>

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