【发布时间】:2019-09-19 12:29:03
【问题描述】:
我有一些这样的字段:
Group_servers|Name_server|Status**
Group1| server1|OK
Group1| server2|OK
Group2| server1|OK
Group2| server1|No data
Group2| server1|Yellow
Group2| server1|
我想得到如下所示的结果
Group_servers|Status
Group1|OK
Group1| No data
状态组的形成条件如下:
1. If at least one server in the group has the status "No data" or the field is empty, the status for the group is " No data"
2. If at least one server in the group has the "Yellow" status, the status for the group is " Yellow"
3. If all servers in the group have the status "OK", the status for the group is " OK"
【问题讨论】:
标签: splunk