TIPS - DQL Timeframe selection

Thanks, very helpful! A small additional hint when interested in UTC. Add the “Z” to your timestamp format. Example:

fetch events, from:toTimestamp("T00:00:00Z")-1d, to: toTimestamp("T00:00:00Z")
| summarize by: {}, sum=count()

gives use the count of events for yesterday, measured in UTC.

Edit: “T00:00:00Z” appears to be just a shortcut for “T00:00:00+0”

Cheers, PJ.

2 Likes