POST /metricbeat-2022.11.17/_search
{
"size": 2,
"_source": ["system.process.cpu.total.pct"],
"query": {
"bool": {
"must": [
{"match": { "event.dataset": "system.process" }},
{"range": { "@timestamp": { "gte": "now-30m" } } },
{"match": { "process.name": "gnome-shell" } }
]
}
},
"aggs": {
"max_cpu": { "max": { "field": "system.process.cpu.total.pct" } }
}
}
Returned a response like this:
{
"took" : 896,
"timed_out" : false,
"_shards" : {
"total" : 1,
"successful" : 1,
"skipped" : 0,
"failed" : 0
},
"hits" : {
"total" : {
"value" : 180,
"relation" : "eq"
},
"max_score" : 4.0646133,
"hits" : [
{
"_index" : "metricbeat-2022.11.17",
"_id" : "GtKphoQBTwBiL9RwTxkO",
"_score" : 4.0646133,
"_source" : {
"system" : {
"process" : {
"cpu" : {
"total" : {
"pct" : 0.1149
}
}
}
}
}
},
{
"_index" : "metricbeat-2022.11.17",
"_id" : "LNKphoQBTwBiL9RwWhnI",
"_score" : 4.0646133,
"_source" : {
"system" : {
"process" : {
"cpu" : {
"total" : {
"pct" : 0.1279
}
}
}
}
}
}
]
},
"aggregations" : {
"max_cpu" : {
"value" : 0.0
}
}
}
How is it possible that at least one returned document has a positive value for system.process.cpu.total.pct, but the max aggregation returns zero?