以下查询针对 metricbeat 运行。我试图了解查询返回的确切内容。
GET metricbeat-*/_search
{
"query": {
"bool": {
"filter": [
{
"range": {
"@timestamp": {
"gte": "now-5m"
}
}
},
{
"bool": {
"should": [
{
"match_phrase": {
"host.name": "noether"
}
},
{
"match_phrase": {
"event.dataset": "system.cpu"
}
}
]
}
}
]
}
}
}
这个查询是否等同于这个?
select * from table where range > now-5m and (host.name = 'noether' OR event.dataset = 'system.cpu')