# 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:** 1\
**Showing post:** 2

<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

---

_[View the full topic](https://discuss.elastic.co/t/is-there-a-converter-from-a-search-in-kibana-to-query-language/282954)._
