# Convert kibana query language in json format automatically?

**URL:** <https://discuss.elastic.co/t/convert-kibana-query-language-in-json-format-automatically/315762>\
**Category:** Kibana\
**Created:** [October 4, 2022, 10:42am UTC](https://discuss.elastic.co/t/convert-kibana-query-language-in-json-format-automatically/315762 "2022-10-04T10:42:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nikolas1306](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nikolas1306/32/111507_2.png) [@Nikolas1306](https://discuss.elastic.co/u/Nikolas1306)\
**Post date:** [October 4, 2022, 10:42am UTC](https://discuss.elastic.co/t/convert-kibana-query-language-in-json-format-automatically/315762/1 "2022-10-04T10:42:36Z")

</div>

hello i ve this query on discover

`message :"AREAS ENGINEERING" and message:"20220925104256"`

how convert in this format

```auto

GET /myindex/_search
{
 "query": {
     "match_phrase_prefix": { 
       "message": ????? why put in this?????
     }
  }
}

```

---

<div class="post-metadata">

**Author:** ![JLeysens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jleysens/32/67404_2.png) [@JLeysens](https://discuss.elastic.co/u/JLeysens)\
**Post date:** [October 5, 2022, 10:39am UTC](https://discuss.elastic.co/t/convert-kibana-query-language-in-json-format-automatically/315762/2 "2022-10-05T10:39:59Z")

</div>

Hello @Nikolas1306 , depending on the version of ES you are running you should be able to view the request in the "Inspect" panel (can open by clicking the "Inspect" button to the top right of the discover page).

There is a section called "Request". If you open that, you will get the fill ES DSL query in JSON.

 ![Screenshot 2022-10-05 at 12.36.44](https://us1.discourse-cdn.com/elastic/original/3X/9/d/9deaa0462313c4618d9f9607643654e1eafde9c5.png)

---

<div class="post-metadata">

**Author:** ![Nikolas1306](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nikolas1306/32/111507_2.png) [@Nikolas1306](https://discuss.elastic.co/u/Nikolas1306)\
**Post date:** [October 5, 2022, 11:08am UTC](https://discuss.elastic.co/t/convert-kibana-query-language-in-json-format-automatically/315762/4 "2022-10-05T11:08:50Z")

</div>

hello is very good

tnx

---

<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:** [November 2, 2022, 11:09am UTC](https://discuss.elastic.co/t/convert-kibana-query-language-in-json-format-automatically/315762/5 "2022-11-02T11:09:40Z")

</div>

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