# Add query/filter to reporting?

**URL:** <https://discuss.elastic.co/t/add-query-filter-to-reporting/141464>\
**Category:** Kibana\
**Tags:** elastic-stack-reporting\
**Created:** [July 25, 2018, 1:42am UTC](https://discuss.elastic.co/t/add-query-filter-to-reporting/141464 "2018-07-25T01:42:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sjaak01](https://avatars.discourse-cdn.com/v4/letter/s/73ab20/32.png) [@Sjaak01](https://discuss.elastic.co/u/Sjaak01)\
**Post date:** [July 25, 2018, 1:42am UTC](https://discuss.elastic.co/t/add-query-filter-to-reporting/141464/1 "2018-07-25T01:42:55Z")

</div>

Hi,

I'm building a watch that sum up data usage on switches I have a various locations. The search query I wrote works but now I'm looking at how I can generate a report based off that data.

The amount of locations make it impossible to make a separate dashboard for each location.

Is there some way to pass a query or filter to the reporting url based on the results of the query?

E.g. If location A, D and G pass the threshold, generate a report for each location with the correct filter applied.

---

<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 22, 2018, 1:43am UTC](https://discuss.elastic.co/t/add-query-filter-to-reporting/141464/2 "2018-08-22T01:43:05Z")

</div>

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