ByteRay CQL Hub
← All queries

Calculate Last Windows Boot Time

Outputs the last reboot timestamp and calculates the time elapsed since then.

CQL · Falcon Next-Gen SIEMCopy query
#event_simpleName=AgentOnline event_platform=Win  
| groupBy([aid], function=([selectLast([BaseTime])]))
| LastReboot_milli:=(BaseTime/1000*1024)+978307200
| round("LastReboot_milli")
| LastRebootAgo:=now()-(LastReboot_milli*1000)
| formatDuration("LastRebootAgo", precision=2)
| LastReboot:=formatTime(format="%F %T %Z", field="LastReboot_milli")
calculate_last_windows_boot_time.yml
CrowdStrike
Monitoring
Endpoint
Insight
2025-08-26
2025-10-29

Get this query running in your SIEM, with someone on call.

Our Managed SIEM team operates CrowdStrike Falcon Next-Gen SIEM in production, with over 350 battle-tested use cases and 24/7 incident response behind them.

Talk to the SIEM team