# Kibana panels using filters show very low performance

**URL:** <https://discuss.elastic.co/t/kibana-panels-using-filters-show-very-low-performance/310269>\
**Category:** Kibana\
**Tags:** kql-kibana-query-language\
**Created:** [July 21, 2022, 10:32am UTC](https://discuss.elastic.co/t/kibana-panels-using-filters-show-very-low-performance/310269 "2022-07-21T10:32:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adso\_4](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adso_4/32/99542_2.png) [@Adso\_4](https://discuss.elastic.co/u/Adso_4)\
**Post date:** [July 21, 2022, 10:32am UTC](https://discuss.elastic.co/t/kibana-panels-using-filters-show-very-low-performance/310269/1 "2022-07-21T10:32:07Z")

</div>

We have a Kibana dashboard with several panels. On these panels, we use filters through kql or just with the "Add filter" option.

The issue is that, when searching a given index pattern, it takes just seconds to load everything. Contrary, with the same index pattern, but specifying a filter, the panel takes even minutes to load properly. Sometimes, the load is even aborted due to timeout.

Is there a way to speed up these queries?

At the moment, we are using version 7.17 of the elastic stack. The data we are querying belongs to APM index pattern.

---

<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:** [July 21, 2022, 1:38pm UTC](https://discuss.elastic.co/t/kibana-panels-using-filters-show-very-low-performance/310269/2 "2022-07-21T13:38:41Z")

</div>

Which fields are you filtering on and what kind of filters are you using? Depending on how the indices are structured, performance can vary wildly

---

<div class="post-metadata">

**Author:** ![Adso\_4](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adso_4/32/99542_2.png) [@Adso\_4](https://discuss.elastic.co/u/Adso_4)\
**Post date:** [July 22, 2022, 8:06am UTC](https://discuss.elastic.co/t/kibana-panels-using-filters-show-very-low-performance/310269/3 "2022-07-22T08:06:28Z")

</div>

I'm filtering several fields included in the APM index pattern. Also, in some panels, I'm combining kql filtering and the ones available with the "Add filter" option. I was wondering if this could be the issue...

---

<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:** [July 22, 2022, 8:28am UTC](https://discuss.elastic.co/t/kibana-panels-using-filters-show-very-low-performance/310269/4 "2022-07-22T08:28:30Z")

</div>

Could you share the actual filters you are using? It's hard to help you on the general level

---

<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 19, 2022, 8:28am UTC](https://discuss.elastic.co/t/kibana-panels-using-filters-show-very-low-performance/310269/5 "2022-08-19T08:28:53Z")

</div>

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