Representing a Kibana query in a REST, curl form

后端 未结 3 1952
礼貌的吻别
礼貌的吻别 2020-12-29 07:04

I have a Kibana server in a classic ELK configuration, querying an Elasticsearch instance.

I use the Kibana console to execute sophisticated queries on elasticsearc

3条回答
  •  温柔的废话
    2020-12-29 07:39

    In case you are online using a Chrome browser you can go to your Kibana dashboard, open the developer console and write your query while having the Network tab open in the developer console. When you search for your query in the Kibana dashboard you will see the request appear in the developer console. There you can "right click" and select Copy as cURL, which will copy the curl command to your clipboard. Note that credentials of your basic auth may be copied as well. So be careful where you paste it.

提交回复
热议问题