# How to have Kibana convert KQL to request (cURL command)?

**URL:** <https://discuss.elastic.co/t/how-to-have-kibana-convert-kql-to-request-curl-command/213062>\
**Category:** Kibana\
**Tags:** kql-kibana-query-language\
**Created:** [December 26, 2019, 9:22am UTC](https://discuss.elastic.co/t/how-to-have-kibana-convert-kql-to-request-curl-command/213062 "2019-12-26T09:22:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ttpro1995](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ttpro1995/32/59970_2.png) [@ttpro1995](https://discuss.elastic.co/u/ttpro1995)\
**Post date:** [December 26, 2019, 9:22am UTC](https://discuss.elastic.co/t/how-to-have-kibana-convert-kql-to-request-curl-command/213062/1 "2019-12-26T09:22:39Z")

</div>

I am using Kibana 7.2

I want to have Kibana convert KQL that I use in Discover tab app/kibana#/discover into format like in in dev tool (app/kibana#/dev\_tools/console)

So far, I can't see the button or anything to output the request from KQL

I am aware of this question on stackoverflow [https://stackoverflow.com/questions/32052507/representing-a-kibana-query-in-a-rest-curl-form/53408911#53408911](https://stackoverflow.com/questions/32052507/representing-a-kibana-query-in-a-rest-curl-form/53408911#53408911)

But I can't find where is it.

---

<div class="post-metadata">

**Author:** ![bhavyarm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhavyarm/32/22392_2.png) [@bhavyarm](https://discuss.elastic.co/u/bhavyarm)\
**Post date:** [December 26, 2019, 3:26pm UTC](https://discuss.elastic.co/t/how-to-have-kibana-convert-kql-to-request-curl-command/213062/2 "2019-12-26T15:26:06Z")

</div>

Hello,

You can open inspector in discover and look at the request & copy it and modify it for using from curl:

 ![Screen Shot 2019-12-26 at 10.29.12 AM](https://us1.discourse-cdn.com/elastic/original/3X/a/5/a502e2c62214c91fc72211c1a6d59d17568cc2c2.png)

Or look at network tab when you are doing a search.

Thanks,  
Bhavya

---

<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:** [January 23, 2020, 3:26pm UTC](https://discuss.elastic.co/t/how-to-have-kibana-convert-kql-to-request-curl-command/213062/3 "2020-01-23T15:26:06Z")

</div>

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