Skip to content

Instantly share code, notes, and snippets.

@fvztdk
Created October 25, 2018 15:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fvztdk/836e3baeb0bcf536a3f933717d1c07fb to your computer and use it in GitHub Desktop.
Save fvztdk/836e3baeb0bcf536a3f933717d1c07fb to your computer and use it in GitHub Desktop.
get traces of request with 500 error (Azure Log Analytics)
let start=datetime("2018-10-25T06:00:00.000Z");
let end=datetime("2018-10-25T14:00:00.000Z");
requests | where timestamp > start and timestamp < end
| where success == false and resultCode == "500"
| where url contains "your_service_path"
|join (traces
| where message contains "REQUEST: {"
) on $left.id == $right.operation_Id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment