Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save TomGrobbe/fc86a0ea2d8b767763ad6de94b6c0642 to your computer and use it in GitHub Desktop.
Save TomGrobbe/fc86a0ea2d8b767763ad6de94b6c0642 to your computer and use it in GitHub Desktop.
union traces, exceptions
| where message contains "timeout" or outerMessage contains "timeout" or innermostMessage contains "timeout"
| extend minute = datetime_part('minute', timestamp)
| extend timeMinute = make_datetime(
datetime_part('year', timestamp),
datetime_part('month', timestamp),
datetime_part('day', timestamp),
datetime_part('hour', timestamp),
iif(minute between (0 .. 10), 0,
iif(minute between (11 .. 20), 10,
iif(minute between (21 .. 30), 20,
iif(minute between (31 .. 40), 30,
iif(minute between (41 .. 50), 40, 50)))))
)
| where timestamp > ago(8h)
| summarize TimeoutsCount=count() by timeMinute
| order by timeMinute asc
| render timechart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment