Skip to content

Commit

Permalink
Add Traces.kql file.
Browse files Browse the repository at this point in the history
  • Loading branch information
SpilledMilkCOM committed Mar 1, 2020
1 parent 7c41425 commit fc562c4
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1 deletion.
5 changes: 4 additions & 1 deletion KQL/Dependencies.kql
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// REF: https://docs.microsoft.com/en-us/azure/kusto/query/

dependencies
| where timestamp > ago(1d)
| where timestamp > ago(10m)
and type == "HTTP"
| summarize targetCount=count() by target, operation_Name
| order by targetCount desc
Expand All @@ -16,8 +16,11 @@ dependencies
dependencies
| where timestamp > ago(20m)
| order by timestamp desc
| extend ago=now() - timestamp
| project timestamp
, ago
, operation_Name
, duration
, operation_SyntheticSource
, target
, name
Expand Down
25 changes: 25 additions & 0 deletions KQL/Traces.kql
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// FILE: Traces.kql
// REF: https://docs.microsoft.com/en-us/azure/kusto/query/

traces
| extend ago=timestamp - now()
| order by timestamp desc
| project ago, message, customDimensions, cloud_RoleInstance, client_City

// Is there ANY NEW data?

traces
| where message startswith "Clone caused miner to reload"
and timestamp > ago(3d)
| extend ago=timestamp - now()
, custom=parse_json(customDimensions)
| where custom.isNewData == "True"
| order by timestamp
| project ago, message, custom.isNewData, customDimensions, cloud_RoleInstance, client_City

// Any email sent?

traces
| where timestamp > ago(7d)
| search "Sending Email:"
| limit 10
1 change: 1 addition & 0 deletions MooveePicker.sln
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ApplicationInsights", "Appl
KQL\Counts.kql = KQL\Counts.kql
KQL\Dependencies.kql = KQL\Dependencies.kql
KQL\RequestLocations.kql = KQL\RequestLocations.kql
KQL\Traces.kql = KQL\Traces.kql
EndProjectSection
EndProject
Global
Expand Down

0 comments on commit fc562c4

Please sign in to comment.