{
"query": {
"bool": {
"must": [
{
"range": {
"unixtime": {
"gt": "1631548800000",
"lt": "1631635200000"
}
}
},
{
"term": {
"operation":"login"
}
},
{
"term": {
"num":1
}
}
],
"must_not": [],
"should": []
}
},
"from": 0,
"size": 0,
"sort": [],
"aggs": {
"total": {
"terms": {
"field": "platform_name",
"size": 1000000
},
"aggs": {
"2": {
"date_histogram": {
"field": "@timestamp",
"interval": "1d",//按天分桶统计
"time_zone": "Asia/Shanghai",
"min_doc_count": 0
}
}
}
}
}
}
【备忘】es统计各个平台的每日活跃数量
猜你喜欢
转载自blog.csdn.net/qq_15941409/article/details/120323660
今日推荐
周排行