Skip to content

Instantly share code, notes, and snippets.

@pacodelacruz
Created September 4, 2018 09:15
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 pacodelacruz/28ce16d1544c0024186099c607c33ff9 to your computer and use it in GitHub Desktop.
Save pacodelacruz/28ce16d1544c0024186099c607c33ff9 to your computer and use it in GitHub Desktop.
//Properties used with Azure Functions structure logging are logged as customDimensions.prop__{name}
//To filter events created by our custom structured logging, get only those traces where EventId > 1
traces
| sort by timestamp desc
| where customDimensions.EventId > 1
| project Level = customDimensions.LogLevel
, EventId = customDimensions.EventId
, CheckPoint = customDimensions.prop__CheckPoint
, CorrelationId = customDimensions.prop__CorrelationId
, Description = customDimensions.prop__Description
, EntityType = customDimensions.prop__EntityType
, EntityId = customDimensions.prop__EntityId
, Status = customDimensions.prop__Status
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment