# Querying Multiple Index in Kibana

**URL:** https://discuss.elastic.co/t/querying-multiple-index-in-kibana/69608
**Category:** Kibana
**Created:** [December 20, 2016, 6:57pm UTC](https://discuss.elastic.co/t/querying-multiple-index-in-kibana/69608 "2016-12-20T18:57:00Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![aravindhan87](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@aravindhan87](https://discuss.elastic.co/u/aravindhan87)
#### Post date: [December 20, 2016, 6:57pm UTC](https://discuss.elastic.co/t/querying-multiple-index-in-kibana/69608/1 "2016-12-20T18:57:00Z")

</div>

Hi,

I want to combine 2 indexes with unique names and query it in Kibana. Here is my scenario.

Index1: abc\_applogs\_index  
Index2 : xyz\_applogs\_index

Both the index captures totally different sets of records,.

I am using ElasticSearch 2.3.3 version.

Can someone help in creating a query by combining 2 index.

Thanks.

---

<div class="post-metadata">

### Author: ![Stacey\_Gammon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stacey_gammon/32/14025_2.png) [@Stacey\_Gammon](https://discuss.elastic.co/u/Stacey_Gammon)
#### Post date: [December 20, 2016, 8:25pm UTC](https://discuss.elastic.co/t/querying-multiple-index-in-kibana/69608/2 "2016-12-20T20:25:47Z")

</div>

You can create an index pattern in kibana that is simply "\*" and it will query all of your indexes. If you want to be more fine grained control then that, they have to share a prefix, which your example does not.

Note I tested that on kibana v5.0, not prior versions.

Are you asking about an index pattern for kibana specifically, or to query the elasticsearch api directly?

---

<div class="post-metadata">

### Author: ![aravindhan87](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@aravindhan87](https://discuss.elastic.co/u/aravindhan87)
#### Post date: [December 20, 2016, 9:20pm UTC](https://discuss.elastic.co/t/querying-multiple-index-in-kibana/69608/3 "2016-12-20T21:20:01Z")

</div>

I have tried Index with same pattern. But since the data pattern (key value types) are different, Elastic search is not able to split the records properly.

And yes I am asking for Index patter for Kibana.

---

<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: [January 17, 2017, 9:20pm UTC](https://discuss.elastic.co/t/querying-multiple-index-in-kibana/69608/4 "2017-01-17T21:20:18Z")

</div>

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