title: Representing a Kibana query in a REST, curl form
body: <p>I have a <a href="https://wikitech.wikimedia.org/wiki/Logstash#Kibana" rel="noreferrer">Kibana server</a> in a classic <a href="https://www.elastic.co/webinars/elk-stack-devops-environment" rel="noreferrer">ELK</a> configuration, querying an <a href="https://wikitech.wikimedia.org/wiki/Logstash#Elasticsearch" rel="noreferrer">Elasticsearch</a> instance. </p>
  
  <p>I use the Kibana console to execute sophisticated queries on elasticsearch. I would like to use some of these queries in the command linem using cURL or any other http tool.</p>
  
  <p><strong>How can I convert a Kibana search into a <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-search.html" rel="noreferrer">direct, cURL-like REST call to elasticsearch</a>?</strong></p>