Hi, thanks for coming back!
There is nothing sensitive in the documents. It’s a generic metricbeat set of metrics.
What I need is an alert grouped by certain field/term. In this case host.name.
BTW I tried to use some other fields like host.hostname or just system_id. There is a column there but always empty.
An idea. Is it possible that the column is empty because the grouping is case sensitive or the first caps is only a matter of visualization?
Two documents for your reference.
{
"_index": "metricbeat-a_u-r_m-stat-2024.09_cls5.0",
"_id": "Je2N7o0BoUI6je75bhY3",
"_version": 1,
"_score": null,
"_source": {
"log_source": "metricbeat generic",
"access_level": "user",
"system_id": "999-123",
"ecs": {},
"system": {
"cpu": {
"idle": {
"norm": {
"pct": 0.995
},
"pct": 3.9802
},
"cores": 4,
"total": {
"norm": {
"pct": 0.005
},
"pct": 0.0198
},
"system": {
"norm": {
"pct": 0.0021
},
"pct": 0.0083
},
"user": {
"norm": {
"pct": 0.0029
},
"pct": 0.0115
}
}
},
"@timestamp": "2024-02-28T07:11:04.381Z",
"agent": {
"name": "WIN06",
"type": "metricbeat"
},
"@version": "1",
"host": {
"name": "WIN06",
"ip": "fe80::9c1b:ade7:a895:70a8",
"hostname": "win06",
"cpu": {
"usage": 0.005
},
"os": {
"type": "windows"
}
},
"event": {
"dataset": "system.cpu",
"module": "system"
},
"service": {
"type": "system"
},
"metricset": {
"name": "cpu",
"period": 30000
}
},
"fields": {
"@timestamp": [
"2024-02-28T07:11:04.381Z"
]
},
"sort": [
1709104264381
]
}
{
"_index": "metricbeat-a_u-r_m-stat-2024.09_cls5.0",
"_id": "7e2N7o0BoUI6je75WwtJ",
"_version": 1,
"_score": null,
"_source": {
"log_source": "metricbeat generic",
"access_level": "user",
"system_id": "999-123",
"ecs": {},
"system": {
"cpu": {
"cores": 8,
"total": {
"norm": {
"pct": 0.0011
},
"pct": 0.0084
},
"irq": {
"norm": {
"pct": 0
},
"pct": 0
},
"system": {
"norm": {
"pct": 0.0005
},
"pct": 0.004
},
"iowait": {
"norm": {
"pct": 0
},
"pct": 0.0003
},
"nice": {
"norm": {
"pct": 0
},
"pct": 0
},
"user": {
"norm": {
"pct": 0.0005
},
"pct": 0.004
},
"idle": {
"norm": {
"pct": 0.9989
},
"pct": 7.9913
},
"softirq": {
"norm": {
"pct": 0
},
"pct": 0.0003
},
"steal": {
"norm": {
"pct": 0
},
"pct": 0
}
}
},
"@timestamp": "2024-02-28T07:10:59.988Z",
"agent": {
"name": "mtm02.refta3.local",
"type": "metricbeat"
},
"@version": "1",
"event": {
"dataset": "system.cpu",
"duration": 91405,
"module": "system"
},
"service": {
"type": "system"
},
"host": {
"name": "mtm02.refta3.local",
"ip": "192.168.131.52",
"cpu": {
"usage": 0.0011
},
"hostname": "mtm02.refta3.local",
"os": {
"type": "linux"
}
},
"metricset": {
"name": "cpu",
"period": 30000
}
},
"fields": {
"@timestamp": [
"2024-02-28T07:10:59.988Z"
]
},
"sort": [
1709104259988
]
}