Convert kibana query language in json format automatically?

hello i ve this query on discover

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

how convert in this format



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

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.

hello is very good

tnx

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