# Joining 2 index patterns into 1

**URL:** <https://discuss.elastic.co/t/joining-2-index-patterns-into-1/304140>\
**Category:** Elasticsearch\
**Created:** [May 6, 2022, 3:55pm UTC](https://discuss.elastic.co/t/joining-2-index-patterns-into-1/304140 "2022-05-06T15:55:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hNiven](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hniven/32/94305_2.png) [@hNiven](https://discuss.elastic.co/u/hNiven)\
**Post date:** [May 6, 2022, 3:55pm UTC](https://discuss.elastic.co/t/joining-2-index-patterns-into-1/304140/1 "2022-05-06T15:55:37Z")

</div>

Hi,

If I have 2 separate index patterns, is it possible to merge them into 1 index pattern that contains both/all the data.

Or if that is not possible, is there a way to take the data contained in both and create a new index pattern that contains both sets of data?

Thanks

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [May 6, 2022, 4:29pm UTC](https://discuss.elastic.co/t/joining-2-index-patterns-into-1/304140/2 "2022-05-06T16:29:49Z")

</div>

Hi @hNiven

What version are you on?

And Yes you should be able to simply put 2 patterns separated by a comma when you create an index pattern

`my-index-*,other-index-*`

---

<div class="post-metadata">

**Author:** ![hNiven](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hniven/32/94305_2.png) [@hNiven](https://discuss.elastic.co/u/hNiven)\
**Post date:** [May 10, 2022, 8:42am UTC](https://discuss.elastic.co/t/joining-2-index-patterns-into-1/304140/3 "2022-05-10T08:42:33Z")

</div>

Hi @stephenb

I am using v 8.2.0 and this solution has worked.

Thank you

---

<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:** [June 7, 2022, 8:42am UTC](https://discuss.elastic.co/t/joining-2-index-patterns-into-1/304140/4 "2022-06-07T08:42:48Z")

</div>

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