# How to find what DSL Query Kibana is running?

**URL:** https://discuss.elastic.co/t/how-to-find-what-dsl-query-kibana-is-running/116745
**Category:** Kibana
**Created:** [January 23, 2018, 7:57pm UTC](https://discuss.elastic.co/t/how-to-find-what-dsl-query-kibana-is-running/116745 "2018-01-23T19:57:08Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)
#### Post date: [January 23, 2018, 7:57pm UTC](https://discuss.elastic.co/t/how-to-find-what-dsl-query-kibana-is-running/116745/1 "2018-01-23T19:57:08Z")

</div>

When using Discover, I can type simple queries such as 'filetype: "server-status"' and Kibana (I assume) is converting that into an actual query that Elasticsearch will respond to. In Machine Learning I want to run a job against the population of events that have 'filetype: "server-status"', but ML requires a proper query. Is there a way to see the query Kibana ran, so that I can copy and paste it into the job datafeed, and not learn the ins and outs of Query DSL 🙂

---

<div class="post-metadata">

### Author: ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)
#### Post date: [January 24, 2018, 5:50pm UTC](https://discuss.elastic.co/t/how-to-find-what-dsl-query-kibana-is-running/116745/2 "2018-01-24T17:50:03Z")

</div>

Click the up caret in the lower left corner of the date histogram. Open the `request` tab. This is the request that was sent to ElasticSearch. The query bar is a lucene query and has been put into the request as a [query\_string](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-query-string-query.html).

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/5/7/573f0f6677377edac1186bb2df5116884c8fc748.png)

---

<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: [February 21, 2018, 5:50pm UTC](https://discuss.elastic.co/t/how-to-find-what-dsl-query-kibana-is-running/116745/3 "2018-02-21T17:50:20Z")

</div>

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