# Pie chart w/ data from two diff indexes

**URL:** https://discuss.elastic.co/t/pie-chart-w-data-from-two-diff-indexes/271199
**Category:** Kibana
**Created:** [April 25, 2021, 5:16pm UTC](https://discuss.elastic.co/t/pie-chart-w-data-from-two-diff-indexes/271199 "2021-04-25T17:16:10Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![azulgrana](https://avatars.discourse-cdn.com/v4/letter/a/df788c/32.png) [@azulgrana](https://discuss.elastic.co/u/azulgrana)
#### Post date: [April 25, 2021, 5:16pm UTC](https://discuss.elastic.co/t/pie-chart-w-data-from-two-diff-indexes/271199/1 "2021-04-25T17:16:10Z")

</div>

Hi team,

I have a use case where I need to graph on a single pie chart data from two different indexes. The feel that I need chart exists on both indexes and has the same name. So my question is, is it possible to create a Kibana pie chart that has data from two different indexes?

TIA!

Azulgrana

---

<div class="post-metadata">

### Author: ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)
#### Post date: [April 26, 2021, 6:50am UTC](https://discuss.elastic.co/t/pie-chart-w-data-from-two-diff-indexes/271199/2 "2021-04-26T06:50:30Z")

</div>

You can list multiple indices in an index pattern. For example, if you want to combine data from `a-data-*` and `b-data-*`, create an index pattern on `a-data-*,b-data-*` (or `*-data-*` if that won't include too much indices), then create your pie chart based on that index pattern.

---

<div class="post-metadata">

### Author: ![azulgrana](https://avatars.discourse-cdn.com/v4/letter/a/df788c/32.png) [@azulgrana](https://discuss.elastic.co/u/azulgrana)
#### Post date: [April 26, 2021, 3:13pm UTC](https://discuss.elastic.co/t/pie-chart-w-data-from-two-diff-indexes/271199/3 "2021-04-26T15:13:18Z")

</div>

my bad I just realized I didn't explain my self very well. What I meant to ask was if it is possible to create a pie using data from two diff index patterns.

---

<div class="post-metadata">

### Author: ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)
#### Post date: [April 26, 2021, 4:32pm UTC](https://discuss.elastic.co/t/pie-chart-w-data-from-two-diff-indexes/271199/4 "2021-04-26T16:32:45Z")

</div>

That's what I'm talking about - you can make the two index pattern one (as long as the field names match). If that's not fitting your use case, could you make a more specific example of what you are trying to achieve?

---

<div class="post-metadata">

### Author: ![azulgrana](https://avatars.discourse-cdn.com/v4/letter/a/df788c/32.png) [@azulgrana](https://discuss.elastic.co/u/azulgrana)
#### Post date: [April 26, 2021, 9:13pm UTC](https://discuss.elastic.co/t/pie-chart-w-data-from-two-diff-indexes/271199/5 "2021-04-26T21:13:49Z")

</div>

Understood, I'll give that a try. Thanks @flash1293

---

<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: [May 24, 2021, 9:14pm UTC](https://discuss.elastic.co/t/pie-chart-w-data-from-two-diff-indexes/271199/6 "2021-05-24T21:14:27Z")

</div>

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