# Time series line chart querying two different indexes

**URL:** <https://discuss.elastic.co/t/time-series-line-chart-querying-two-different-indexes/327233>\
**Category:** Kibana\
**Tags:** visualisation\
**Created:** [March 7, 2023, 10:46pm UTC](https://discuss.elastic.co/t/time-series-line-chart-querying-two-different-indexes/327233 "2023-03-07T22:46:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tom\_White](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tom_white/32/106051_2.png) [@Tom\_White](https://discuss.elastic.co/u/Tom_White)\
**Post date:** [March 7, 2023, 10:46pm UTC](https://discuss.elastic.co/t/time-series-line-chart-querying-two-different-indexes/327233/1 "2023-03-07T22:46:03Z")

</div>

Hello, I would like to create a very simple time series line chart in Kibana. One line would be a filtered aggregation (count) from Index A, and the other line would be a filtered aggregation (count) from Index B. Is this possible?

---

<div class="post-metadata">

**Author:** ![Stratoula\_Kalafateli](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stratoula_kalafateli/32/70923_2.png) [@Stratoula\_Kalafateli](https://discuss.elastic.co/u/Stratoula_Kalafateli)\
**Post date:** [March 8, 2023, 5:13pm UTC](https://discuss.elastic.co/t/time-series-line-chart-querying-two-different-indexes/327233/2 "2023-03-08T17:13:23Z")

</div>

Hey! Welcome to our community 🙂  
Yes you can, first you need to create 2 dataviews, one for indexA, one for indexB.  
Then go to TSVB and on the Panel Options select the indexA. Add your aggregation for this layer and the settings.  
Now add a new layer, click the options panel and enable the Override dataview setting. Here select indexB.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/a/d/ad2352c9f835ed6b73479561ff1017d88ab28f41.png)

---

<div class="post-metadata">

**Author:** ![Tom\_White](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tom_white/32/106051_2.png) [@Tom\_White](https://discuss.elastic.co/u/Tom_White)\
**Post date:** [March 10, 2023, 4:58pm UTC](https://discuss.elastic.co/t/time-series-line-chart-querying-two-different-indexes/327233/3 "2023-03-10T16:58:48Z")

</div>

Thank you so much!

---

<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:** [April 7, 2023, 4:59pm UTC](https://discuss.elastic.co/t/time-series-line-chart-querying-two-different-indexes/327233/4 "2023-04-07T16:59:28Z")

</div>

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