ElasticSearch搜索调试

通过Kibana

Dev Tools -> Console

GET /appblog/_search
{
  "query": {
    "bool": {
      "must": [
        {
          "match": {
            "loglvl": "ERROR"
          }
        }
      ]
    }
  },
  "from": 0,
  "size": 10,
  "sort": [
    {
      "@timestamp": {
        "order": "desc"
      }
    }
  ]
}

通过Postman

ElasticSearch API

POST: http://192.168.1.10:9200/appblog/_search
header: {"Content-Type": "application/json"}
body:

{"query": {"bool": {"must": [{"match": {"loglvl": "ERROR"}}]}}, "from": 0, "size": 10, 
"sort": [{"@timestamp": {"order": "desc"}}]}

Kibana Console API

POST: http://192.168.1.10:5601/api/console/proxy?path=/appblog/_search&method=POST
header: {"Content-Type": "application/json", "kbn-version": "7.1.0"}
body:

{"query": {"bool": {"must": [{"match": {"loglvl": "ERROR"}}]}}, "from": 0, "size": 10, 
"sort": [{"@timestamp": {"order": "desc"}}]}
上一篇 ELK部署记录
下一篇 Logstash grok配置调试
目录
文章列表
1 TestNG套件测试
TestNG套件测试
2
Html input属性为number,maxlength不起作用问题解决
Html input属性为number,maxlength不起作用问题解决
3
aws ssm send-command 报错 An error occurred (InvalidInstanceId) when calling the SendCommand operation
aws ssm send-command 报错 An error occurred (InvalidInstanceId) when calling the SendCommand operation
4
React-Router路由配置
React-Router路由配置
5
高等数学基础:方向导数的计算与梯度
高等数学基础:方向导数的计算与梯度
最新评论
一位WordPress评论者
一位WordPress评论者
2月12日
您好,这是一条评论。若需要审核、编辑或删除评论,请访问仪表盘的评论界面。评论者头像来自 Gravatar。