Skip to content

Instantly share code, notes, and snippets.

@binduchinnasamy
Created August 19, 2019 08:11
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 binduchinnasamy/0b5bb59097479b9df2af894a616741ea to your computer and use it in GitHub Desktop.
Save binduchinnasamy/0b5bb59097479b9df2af894a616741ea to your computer and use it in GitHub Desktop.
Azure AppInsight query to get Azure function logs
traces
| project customDimensions, message, cloud_RoleName, cloud_RoleInstance, operation_Name, timestamp
| where message contains "<<error log or message >>"
| where cloud_RoleName =~ '<<Function App Name>>' and operation_Name == '<<Function name>>'
| where timestamp > ago(30m)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment