# Adding custom filter in Kibana aggregation

**URL:** <https://discuss.elastic.co/t/adding-custom-filter-in-kibana-aggregation/108983>\
**Category:** Kibana\
**Created:** [November 24, 2017, 7:25am UTC](https://discuss.elastic.co/t/adding-custom-filter-in-kibana-aggregation/108983 "2017-11-24T07:25:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fiestel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fiestel/32/24637_2.png) [@fiestel](https://discuss.elastic.co/u/fiestel)\
**Post date:** [November 24, 2017, 7:25am UTC](https://discuss.elastic.co/t/adding-custom-filter-in-kibana-aggregation/108983/1 "2017-11-24T07:25:04Z")

</div>

Hi Team, I want to use custom filters in Kibana which is actually a combination of multiple filters. Is there any way to write custom queries for filter instead of selecting from dropdown ?

---

<div class="post-metadata">

**Author:** ![ppisljar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ppisljar/32/11588_2.png) [@ppisljar](https://discuss.elastic.co/u/ppisljar)\
**Post date:** [November 24, 2017, 7:34am UTC](https://discuss.elastic.co/t/adding-custom-filter-in-kibana-aggregation/108983/2 "2017-11-24T07:34:12Z")

</div>

When you click `add filter` there is an `edit query DSL` button in the top right of the box ... then you can enter your custom query there.

You can also use the query bar.

Query bar and filter bar would get merged to produce elasticsearch query.  
You can open spy panel and select request from dropdown to see exactly what happens.

---

<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:** [December 22, 2017, 7:34am UTC](https://discuss.elastic.co/t/adding-custom-filter-in-kibana-aggregation/108983/3 "2017-12-22T07:34:20Z")

</div>

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