# Use ElasticEearch Query as Filter DSL Query in Discover Section of Kibana

**URL:** <https://discuss.elastic.co/t/use-elasticeearch-query-as-filter-dsl-query-in-discover-section-of-kibana/196562>\
**Category:** Kibana\
**Created:** [August 23, 2019, 4:37pm UTC](https://discuss.elastic.co/t/use-elasticeearch-query-as-filter-dsl-query-in-discover-section-of-kibana/196562 "2019-08-23T16:37:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nirajan](https://avatars.discourse-cdn.com/v4/letter/n/6bbea6/32.png) [@Nirajan](https://discuss.elastic.co/u/Nirajan)\
**Post date:** [August 23, 2019, 4:37pm UTC](https://discuss.elastic.co/t/use-elasticeearch-query-as-filter-dsl-query-in-discover-section-of-kibana/196562/1 "2019-08-23T16:37:15Z")

</div>

Hello Everybody,

if i run a elastic query in kibana console then i am able to see the results but if i use the same query as a filter in Discover Section or in any kibana visualizations then i cannot see any results.

Do i have to make some changes in the Kibana settings or its not possible to do such filtering?

Eagerly waiting for any suggestions..

Thank you..

Best Regards,  
Nirajan

---

<div class="post-metadata">

**Author:** ![christophilus](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christophilus/32/42991_2.png) [@christophilus](https://discuss.elastic.co/u/christophilus)\
**Post date:** [August 23, 2019, 7:18pm UTC](https://discuss.elastic.co/t/use-elasticeearch-query-as-filter-dsl-query-in-discover-section-of-kibana/196562/2 "2019-08-23T19:18:14Z")

</div>

Most places where you do a filter in Kibana use KQL or Lucene syntax: [https://www.elastic.co/guide/en/kibana/current/kuery-query.html](https://www.elastic.co/guide/en/kibana/current/kuery-query.html)

I'm not aware of any which take a raw Elasticsearch JSON blob.

---

<div class="post-metadata">

**Author:** ![Nirajan](https://avatars.discourse-cdn.com/v4/letter/n/6bbea6/32.png) [@Nirajan](https://discuss.elastic.co/u/Nirajan)\
**Post date:** [August 27, 2019, 10:46am UTC](https://discuss.elastic.co/t/use-elasticeearch-query-as-filter-dsl-query-in-discover-section-of-kibana/196562/3 "2019-08-27T10:46:40Z")

</div>

Hi Chris,

Thank you for your answer.  
But it seems there are not equivalent KQL query for all the Elasticsearch queries.

for example, i would like to know the KQL for following Elasticsearch query:  
GET /s164\_dfig\_47\_040105/\_search  
{  
"size" : 10000,  
"query": {  
"has\_parent" : {  
"parent\_type" : "Status",  
"query" : {  
"term" : {  
"MeanWindSpeed": {  
"value" : "7.00"  
}  
}  
}  
}  
}  
}

Please correct me if i am wrong.

Best regards,  
Nirajan

---

<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:** [September 24, 2019, 10:57am UTC](https://discuss.elastic.co/t/use-elasticeearch-query-as-filter-dsl-query-in-discover-section-of-kibana/196562/4 "2019-09-24T10:57:58Z")

</div>

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