Notice: 函数 WP_Scripts::localize 的调用方法不正确$l10n 参数必须是一个数组。若要将任意数据传递给脚本,请改用 wp_add_inline_script() 函数。 请查阅调试 WordPress来获取更多信息。 (这个消息是在 5.7.0 版本添加的。) in /data/www/appblog/wp-includes/functions.php on line 6131

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配置调试