GET /nginx*/_search
{
"query": {
"constant_score": {
"filter": {
"range": {
"@timestamp": {
"gte": "2022-05-30T11:00:00.000Z",
"lte": "2022-05-30T12:00:00.000Z"
}
}
}
}
},
"aggs": {
"count": {
"cardinality": {
"field": "remote_ip.keyword"
}
}
},
"track_total_hits": true,
"_source" : {
"includes": "status"
},
"size": 0
}
elasticsearch根据时间段去重统计数据
最新推荐文章于 2023-07-27 09:37:51 发布