# Kibana maps - add DSL Filter

**URL:** <https://discuss.elastic.co/t/kibana-maps-add-dsl-filter/308267>\
**Category:** Kibana\
**Tags:** painless, maps\
**Created:** [June 27, 2022, 2:15pm UTC](https://discuss.elastic.co/t/kibana-maps-add-dsl-filter/308267 "2022-06-27T14:15:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yair\_Gofen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yair_gofen/32/107626_2.png) [@Yair\_Gofen](https://discuss.elastic.co/u/Yair_Gofen)\
**Post date:** [June 27, 2022, 2:15pm UTC](https://discuss.elastic.co/t/kibana-maps-add-dsl-filter/308267/1 "2022-06-27T14:15:49Z")

</div>

Hi,  
I want to add filter to a layer on my map to reduce number of returned documents.  
however, i can only add a filter in KQL format and not DSL format.  
my filter uses painless script, and i don't know how to do that in KQL, and if its even possible.  
is it possible to use DSL from layer context?

---

<div class="post-metadata">

**Author:** ![jsanz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsanz/32/53734_2.png) [@jsanz](https://discuss.elastic.co/u/jsanz)\
**Post date:** [June 27, 2022, 3:11pm UTC](https://discuss.elastic.co/t/kibana-maps-add-dsl-filter/308267/2 "2022-06-27T15:11:49Z")

</div>

I'm afraid it's not possible to use DSL format for layer filters. It would be great if you could open a [feature request](https://github.com/elastic/kibana/issues/new?assignees=&labels=&template=Feature_request.md) in the Kibana Github repository with as much detail on your requirements as possible.

---

<div class="post-metadata">

**Author:** ![Yair\_Gofen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yair_gofen/32/107626_2.png) [@Yair\_Gofen](https://discuss.elastic.co/u/Yair_Gofen)\
**Post date:** [June 29, 2022, 10:03am UTC](https://discuss.elastic.co/t/kibana-maps-add-dsl-filter/308267/3 "2022-06-29T10:03:41Z")

</div>

Thaks, i will.

---

<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:** [July 27, 2022, 10:03am UTC](https://discuss.elastic.co/t/kibana-maps-add-dsl-filter/308267/4 "2022-07-27T10:03:42Z")

</div>

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