Representing a Kibana query in a REST, curl form

后端 未结 3 1954
礼貌的吻别
礼貌的吻别 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条回答
  •  Happy的楠姐
    2020-12-29 07:57

    Another option would be to query Elastic Search using lucene queries (same syntax Kibana uses) using the ES search API query_string queries:

    https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-query-string-query.html

    Taken from one of the doc example, you would query ES using something like this:

    GET /_search
    {
        "query": {
            "query_string" : {
                "default_field" : "content",
                "query" : "this AND that OR thus"
            }
        }
    }
    

提交回复
热议问题