# Is there a converter from a search in kibana to query language?

**URL:** https://discuss.elastic.co/t/is-there-a-converter-from-a-search-in-kibana-to-query-language/282954
**Category:** Kibana
**Created:** [August 31, 2021, 6:50pm UTC](https://discuss.elastic.co/t/is-there-a-converter-from-a-search-in-kibana-to-query-language/282954 "2021-08-31T18:50:39Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Dovan](https://avatars.discourse-cdn.com/v4/letter/d/bcef8e/32.png) [@Dovan](https://discuss.elastic.co/u/Dovan)
#### Post date: [August 31, 2021, 6:50pm UTC](https://discuss.elastic.co/t/is-there-a-converter-from-a-search-in-kibana-to-query-language/282954/1 "2021-08-31T18:50:39Z")

</div>

I would like to know if there is any program or some type of converter from a search to a query language in kibana

---

<div class="post-metadata">

### Author: ![Aaron\_Caldwell](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aaron_caldwell/32/45755_2.png) [@Aaron\_Caldwell](https://discuss.elastic.co/u/Aaron_Caldwell)
#### Post date: [August 31, 2021, 10:15pm UTC](https://discuss.elastic.co/t/is-there-a-converter-from-a-search-in-kibana-to-query-language/282954/2 "2021-08-31T22:15:52Z")

</div>

Hello Dovan,

Generally the conversion works in the opposite direction, where you enter a KQL query and it's translated into an Elasticsearch request. You can see the results of this by performing various operations in Discover and viewing inspector. See [this thread](https://discuss.elastic.co/t/how-to-have-kibana-convert-kql-to-request-curl-command/213062) for reference.

If you truly are trying to work backwards from a request to a query, my advice would be to piece together the query in the Discover query bar and use Inspector to compare the request to what you're trying to achieve. [KQL](https://www.elastic.co/guide/en/kibana/current/kuery-query.html) is pretty intuitive and the autocomplete feature helps a lot, so it might be easier than you'd think!

Regards,  
Aaron

---

<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 28, 2021, 10:16pm UTC](https://discuss.elastic.co/t/is-there-a-converter-from-a-search-in-kibana-to-query-language/282954/3 "2021-09-28T22:16:14Z")

</div>

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