es组合查询

GET yi_cloud_ecs_monitor/_search
{
"query": {
"bool": {
"must": [
{"match": {
"instance_id": "i-88zcpeekx"
}}
],
"filter": {
"range": {
"collect_time": {
"gte": 1670428800000,
"lte": 1672329600000
}
}
}
}
},
"sort": {
"collect_time": {
"order": "desc"
}
}
}

 

posted @ 2022-12-09 09:55  笃灬  阅读(59)  评论(0)    收藏  举报