# Can Kibana create a visualization or canvas graph with two indexes?

**URL:** <https://discuss.elastic.co/t/can-kibana-create-a-visualization-or-canvas-graph-with-two-indexes/216904>\
**Category:** Kibana\
**Created:** [January 28, 2020, 7:14pm UTC](https://discuss.elastic.co/t/can-kibana-create-a-visualization-or-canvas-graph-with-two-indexes/216904 "2020-01-28T19:14:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gustavo\_Batista](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gustavo_batista/32/47827_2.png) [@Gustavo\_Batista](https://discuss.elastic.co/u/Gustavo_Batista)\
**Post date:** [January 28, 2020, 7:14pm UTC](https://discuss.elastic.co/t/can-kibana-create-a-visualization-or-canvas-graph-with-two-indexes/216904/1 "2020-01-28T19:14:05Z")

</div>

Can a Canvas or Visualization user two indexes to make a graph?

---

<div class="post-metadata">

**Author:** ![Bargs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bargs/32/5429_2.png) [@Bargs](https://discuss.elastic.co/u/Bargs)\
**Post date:** [January 29, 2020, 6:39pm UTC](https://discuss.elastic.co/t/can-kibana-create-a-visualization-or-canvas-graph-with-two-indexes/216904/2 "2020-01-29T18:39:38Z")

</div>

For a basic visualization, you can [create a Kibana index pattern](https://www.elastic.co/guide/en/kibana/7.5/index-patterns.html) that matches the indices that you want to query and then build the visualization on top of that index pattern.

In Canvas you can actually define the indices you want to hit in an ad hoc fashion per visualization, so you don't have to define an index pattern ahead of time, though it can be helpful if you are querying the same pattern across a lot of different 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:** [February 26, 2020, 6:39pm UTC](https://discuss.elastic.co/t/can-kibana-create-a-visualization-or-canvas-graph-with-two-indexes/216904/3 "2020-02-26T18:39:41Z")

</div>

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