使用了EFK(ElasticSearch、FileBeat、Kibana)版本都是6.8.4,现在用Kibana的Dev Tools写了一些聚合查询的语句,例如:
																				GET /filebeat-6.8.4-2019.12.13/doc/_search
{
  "size": 0, 
  "query": {
    "match": {
      "userlog.event_type": "1"
    }
  }, 
  "aggs": {
    "stat": {
      "date_histogram": {
        "field": "@timestamp",
        "interval": "day",
        "format": "yyyy-MM-dd",
        "time_zone": "+08:00"
      }
    }
  }
}
 
	
2 个回复
匿名用户
赞同来自:
Dashboard
Escanor
赞同来自: