# How to use multiple indexes on 5.4

**URL:** <https://discuss.elastic.co/t/how-to-use-multiple-indexes-on-5-4/90545>\
**Category:** Kibana\
**Created:** [June 22, 2017, 9:36pm UTC](https://discuss.elastic.co/t/how-to-use-multiple-indexes-on-5-4/90545 "2017-06-22T21:36:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lindsey](https://avatars.discourse-cdn.com/v4/letter/l/da6949/32.png) [@Lindsey](https://discuss.elastic.co/u/Lindsey)\
**Post date:** [June 22, 2017, 9:36pm UTC](https://discuss.elastic.co/t/how-to-use-multiple-indexes-on-5-4/90545/1 "2017-06-22T21:36:51Z")

</div>

Hello,

My goal is to use multiple terms from two different indexes inside one graph.  
I was reading older posts from v4 and the best way to do this, was to rename the two indexes so they were similar and then use the wildcard (\*). I tried to do this, by going into visualize and searching for the indexes:

Visualize/New/Choose search source

and I typed in "index152-\*" to the search since I wanted to use terms from index125-jobs and index125-ft.

However the search returns with : "No matches found."

Is this still possible and if so, how?  
Thank you in advance!

Cheers,  
L

---

<div class="post-metadata">

**Author:** ![Julien](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/julien/32/19688_2.png) [@Julien](https://discuss.elastic.co/u/Julien)\
**Post date:** [June 23, 2017, 9:38am UTC](https://discuss.elastic.co/t/how-to-use-multiple-indexes-on-5-4/90545/2 "2017-06-23T09:38:04Z")

</div>

Hello,

Is "index152\* for the search (is that the index pattern you use for the graph) while the indices are named "index125" a typo which is causing your issue? Can you see data in Discover for both indices using the index pattern?

You can use wildcard for index pattern in kibana as you mentioned ([https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates.html))... Another solution is to define an alias and use that alias name for the index pattern in kibana: [https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-aliases.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-aliases.html)

If you run a query on the two individual indices and they both return result, then querying both indices at the same time will query and return documents from both indices

Thanks  
Julien

---

<div class="post-metadata">

**Author:** ![Lindsey](https://avatars.discourse-cdn.com/v4/letter/l/da6949/32.png) [@Lindsey](https://discuss.elastic.co/u/Lindsey)\
**Post date:** [June 23, 2017, 5:00pm UTC](https://discuss.elastic.co/t/how-to-use-multiple-indexes-on-5-4/90545/3 "2017-06-23T17:00:38Z")

</div>

Hey Julian!

Thank you for the speedy response! Can I create the alias right in Kibana under Console?

I tried creating an alias under Console, however when I went back to Visualize, the alias did not come up. Thoughts?

Cheers,  
L

---

<div class="post-metadata">

**Author:** ![Julien](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/julien/32/19688_2.png) [@Julien](https://discuss.elastic.co/u/Julien)\
**Post date:** [June 24, 2017, 11:38am UTC](https://discuss.elastic.co/t/how-to-use-multiple-indexes-on-5-4/90545/4 "2017-06-24T11:38:48Z")

</div>

Kibana uses index patterns defined under management section. You just need to create an index pattern for your alias and use it in your visualizations

---

<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:** [July 22, 2017, 11:38am UTC](https://discuss.elastic.co/t/how-to-use-multiple-indexes-on-5-4/90545/5 "2017-07-22T11:38:58Z")

</div>

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