# Multi query support for multiple visualizations in kibana dashboard

**URL:** <https://discuss.elastic.co/t/multi-query-support-for-multiple-visualizations-in-kibana-dashboard/197867>\
**Category:** Kibana\
**Created:** [September 3, 2019, 1:18pm UTC](https://discuss.elastic.co/t/multi-query-support-for-multiple-visualizations-in-kibana-dashboard/197867 "2019-09-03T13:18:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kev12](https://avatars.discourse-cdn.com/v4/letter/k/6a8cbe/32.png) [@kev12](https://discuss.elastic.co/u/kev12)\
**Post date:** [September 3, 2019, 1:18pm UTC](https://discuss.elastic.co/t/multi-query-support-for-multiple-visualizations-in-kibana-dashboard/197867/1 "2019-09-03T13:18:04Z")

</div>

Hey, i am trying to migrate from kibana 3 to 5 and was wondering if this feature documented at [https://www.elastic.co/guide/en/kibana/3.0/multiple-queries.html](https://www.elastic.co/guide/en/kibana/3.0/multiple-queries.html) is available from kibana 4.0 and above. Specifically in kibana 5.6 for a line-chart.

I have searched for an answer to this and it looks like the only solution is to use "filter aggregation" or add additional y-axis to get the desired result but this can only be done in the visualization tab and not directly in the dashboard.

Also unlike kibana 3 where when querying we could apply and view comparisons of queries on multiple visualization panels, in kibana 4 when using filter aggregation we are limited to a single visualization.

Kindly provide me with a solution

---

<div class="post-metadata">

**Author:** ![Aaron\_Caldwell](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aaron_caldwell/32/45755_2.png) [@Aaron\_Caldwell](https://discuss.elastic.co/u/Aaron_Caldwell)\
**Post date:** [September 4, 2019, 2:41pm UTC](https://discuss.elastic.co/t/multi-query-support-for-multiple-visualizations-in-kibana-dashboard/197867/2 "2019-09-04T14:41:35Z")

</div>

Hello,

I'm actually having some difficulty finding where that feature was deprecated and/or removed, but it appears to have been between versions 3 and 4. I agree, I think your best option here is filter aggregations.

Editing the visualization outside of the dashboard is less convenient but probably your best option here. There is [an issue on github](https://github.com/elastic/kibana/issues/43900) for easier vis updates in the dashboard in case you'd like to follow it.

Regards,  
Aaron

---

<div class="post-metadata">

**Author:** ![kev12](https://avatars.discourse-cdn.com/v4/letter/k/6a8cbe/32.png) [@kev12](https://discuss.elastic.co/u/kev12)\
**Post date:** [September 5, 2019, 5:05am UTC](https://discuss.elastic.co/t/multi-query-support-for-multiple-visualizations-in-kibana-dashboard/197867/3 "2019-09-05T05:05:31Z")

</div>

Hey Aaron,

Thanks for the reply, just to confirm my understanding, you are saying that currently the only way to somewhat replicate the multi query functionality from kibana 3 (where i could compare queries across all visualizations in my dashboard) in kibana 4 + is to individually update each visualization and copy paste the filter aggregation params for each. There is no other way (like using a query dsl etc) is that correct ?

If the above is true then as a follow up question; I think i can change a visualization based on the parameters i pass in the url so would there be any way of saving this visualization using an api ?

My intention is to provide/create the multi query input box myself and taking the parameters from the user update all relevant visualizations based on visualization ID (using the url) save them and refresh the dashboard. Would this be feasible ?

---

<div class="post-metadata">

**Author:** ![kev12](https://avatars.discourse-cdn.com/v4/letter/k/6a8cbe/32.png) [@kev12](https://discuss.elastic.co/u/kev12)\
**Post date:** [September 24, 2019, 10:30am UTC](https://discuss.elastic.co/t/multi-query-support-for-multiple-visualizations-in-kibana-dashboard/197867/4 "2019-09-24T10:30:08Z")

</div>

Hey Aaron,

Any feedback on my proposed solution... As of now i have gone with a different approach where i created a proxy that captures requests from kibana before forwarding it to elastic search and using a custom language in the query to simulate the multi query filter, but i am running into a issue as i need the /bulk\_get Api data to send an appropriate response for /\_msearch

When trying to set a cookie to save /bulk\_get data, all cookies except those that are set for /\_msearch appear to be dropped before they are saved in the browser.

Would using interceptors help in any way instead of a proxy. I would really appreciate a pointer in the right direction

---

<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:** [October 22, 2019, 10:30am UTC](https://discuss.elastic.co/t/multi-query-support-for-multiple-visualizations-in-kibana-dashboard/197867/5 "2019-10-22T10:30:26Z")

</div>

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