GET /heartbeat-*/_search
{
"query": {
"bool": {
"must": [
{
"match": {
"monitor.status": "up"
}
},
{
"range": {
"@timestamp": {
"gte": "2019-07-01"
}
}
}
]
}
},
"size": 1,
"sort": {
"@timestamp": "desc"
}
}
转载于:https://my.oschina.net/internetafei/blog/3074864