Untitled
Anonymous
plain_text
10/31/2024 12:39 PM
1016 B
18
Indexable
Heartbeat
| where TimeGenerated > ago(7d)
| distinct Computer
| extend Status = iff(Computer in (
(VMConnection | where TimeGenerated > ago(7d) | distinct Computer)
), "Active with VMConnection", "No VMConnection Data")
| join kind=leftouter (
Heartbeat
| summarize
LastHeartbeat = max(TimeGenerated),
TotalHeartbeats = count()
by Computer
) on Computer
| join kind=leftouter (
VMConnection
| summarize
LastVMConnection = max(TimeGenerated),
TotalConnections = count()
by Computer
) on Computer
| project
Computer,
Status,
LastHeartbeat,
TotalHeartbeats,
LastVMConnection,
TotalConnections
| order by
Status,
LastHeartbeat descEditor is loading...
Leave a Comment