# Multiple query and aggregation filter

**URL:** <https://discuss.elastic.co/t/multiple-query-and-aggregation-filter/285020>\
**Category:** Logstash\
**Created:** [September 23, 2021, 5:42pm UTC](https://discuss.elastic.co/t/multiple-query-and-aggregation-filter/285020 "2021-09-23T17:42:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Roberto\_B](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/roberto_b/32/77615_2.png) [@Roberto\_B](https://discuss.elastic.co/u/Roberto_B)\
**Post date:** [September 23, 2021, 5:42pm UTC](https://discuss.elastic.co/t/multiple-query-and-aggregation-filter/285020/1 "2021-09-23T17:42:07Z")

</div>

Let's assume that i have in input 3 different query that fetch data from 3 different tables.

from the first i take for example 4 fields one of them is "id\_test" and it is common and present in the other 2 input query result-set.

if I have an aggregate filter with `task_id => "%{id_test}`", the result-sets of the 3 input-query will be mixed (or merged) and aggregated with "id\_test" ?

---

<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 21, 2021, 5:42pm UTC](https://discuss.elastic.co/t/multiple-query-and-aggregation-filter/285020/2 "2021-10-21T17:42:53Z")

</div>

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