-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7c41425
commit fc562c4
Showing
3 changed files
with
30 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters