# Two Index Patterns For Same Index?

**URL:** <https://discuss.elastic.co/t/two-index-patterns-for-same-index/75423>\
**Category:** Kibana\
**Created:** [February 17, 2017, 2:01am UTC](https://discuss.elastic.co/t/two-index-patterns-for-same-index/75423 "2017-02-17T02:01:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![spur01](https://avatars.discourse-cdn.com/v4/letter/s/c57346/32.png) [@spur01](https://discuss.elastic.co/u/spur01)\
**Post date:** [February 17, 2017, 2:01am UTC](https://discuss.elastic.co/t/two-index-patterns-for-same-index/75423/1 "2017-02-17T02:01:42Z")

</div>

We recently set up an import on our Elastic cloud and set up one index to hold a summary of those imports (datatype1) as well as summaries of the imports (datatype2).

I can't seem to find a way to create two distinct index patterns for the two types in the index and it appears queries against \_type aren't working because that field isn't indexed by default. Is there a way to set up a second index pattern? And if not, is there a simple way to transfer data?

Sorry, still learning the stack, so some of these questions may be obvious.

Thanks,  
Sharad

---

<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:** [February 17, 2017, 2:02am UTC](https://discuss.elastic.co/t/two-index-patterns-for-same-index/75423/2 "2017-02-17T02:02:35Z")

</div>

What is the pattern you have?

You can use specific index names, ie `datatype1` and `datatype2`, not just `datatype*`.

---

<div class="post-metadata">

**Author:** ![spur01](https://avatars.discourse-cdn.com/v4/letter/s/c57346/32.png) [@spur01](https://discuss.elastic.co/u/spur01)\
**Post date:** [February 17, 2017, 2:26am UTC](https://discuss.elastic.co/t/two-index-patterns-for-same-index/75423/3 "2017-02-17T02:26:48Z")

</div>

Hey again Mark, I can split them into two indices if need be, there's no rule that they have to be in the same location and this is still pre-production so we can rename the types if need be. If there was no absolute necessity to do so, I thought I'd avoid it.

It doesn't look like there's native Elasticsearch calls to move data from one index to another by query or the like. I see people speaking well of the ElasticDump tool, is that the preferred means of moving data?

---

<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:** [February 17, 2017, 3:10am UTC](https://discuss.elastic.co/t/two-index-patterns-for-same-index/75423/4 "2017-02-17T03:10:50Z")

</div>

I think I misread that, I thought `datatype` was the index name sorry!

[https://www.elastic.co/guide/en/elasticsearch/reference/5.2/docs-reindex.html](https://www.elastic.co/guide/en/elasticsearch/reference/5.2/docs-reindex.html) is what you want.

---

<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:** [March 17, 2017, 3:11am UTC](https://discuss.elastic.co/t/two-index-patterns-for-same-index/75423/5 "2017-03-17T03:11:01Z")

</div>

Closed on March 17, 2017, 3:11am UTC

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