# How to plot multiple series by multiple indexes into one visualization?

**URL:** <https://discuss.elastic.co/t/how-to-plot-multiple-series-by-multiple-indexes-into-one-visualization/93872>\
**Category:** Kibana\
**Created:** [July 20, 2017, 6:49am UTC](https://discuss.elastic.co/t/how-to-plot-multiple-series-by-multiple-indexes-into-one-visualization/93872 "2017-07-20T06:49:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![monai](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/monai/32/19744_2.png) [@monai](https://discuss.elastic.co/u/monai)\
**Post date:** [July 20, 2017, 6:49am UTC](https://discuss.elastic.co/t/how-to-plot-multiple-series-by-multiple-indexes-into-one-visualization/93872/1 "2017-07-20T06:49:54Z")

</div>

I read the [documentation](https://www.elastic.co/guide/en/kibana/current/_featured_visualizations.html) on Time Series visualization that it can create multiple series by field in the same index.

However, I want to create a line chart with several series that distinguished by index e.g. green line with actual-index and red line with forecast-index.

Is that possible on Kibana 5.5? If so how?

Thank you.

---

<div class="post-metadata">

**Author:** ![ppisljar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ppisljar/32/11588_2.png) [@ppisljar](https://discuss.elastic.co/u/ppisljar)\
**Post date:** [July 20, 2017, 7:26am UTC](https://discuss.elastic.co/t/how-to-plot-multiple-series-by-multiple-indexes-into-one-visualization/93872/2 "2017-07-20T07:26:36Z")

</div>

in the panel settings of time series visual builder you can override the index pattern. you can even set it to \* (to look at all index patterns). the only requirement is that all your index patterns have the same time field (for example @timestamp).

then you can plot metrics on fields from different indexes.

you could also do the same using timelion, without the restriction of same time field:

```auto
.es(index=myfirstindex, timefield=timestamp, metric=sum:bytes), .es(index=secondindex, timefield=time, metric=count)

```

---

<div class="post-metadata">

**Author:** ![monai](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/monai/32/19744_2.png) [@monai](https://discuss.elastic.co/u/monai)\
**Post date:** [July 20, 2017, 7:59am UTC](https://discuss.elastic.co/t/how-to-plot-multiple-series-by-multiple-indexes-into-one-visualization/93872/3 "2017-07-20T07:59:28Z")

</div>

Thank you for pointing out the related settings parameters, I didn't think of the index override pattern in metric option. It works perfectly.

Thanks again.

---

<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:** [August 17, 2017, 7:59am UTC](https://discuss.elastic.co/t/how-to-plot-multiple-series-by-multiple-indexes-into-one-visualization/93872/4 "2017-08-17T07:59:37Z")

</div>

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