Created
March 11, 2021 13:04
-
-
Save TheCloudScout/3f12a825d51cc7b85e0277cc720b8621 to your computer and use it in GitHub Desktop.
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
let AlertLogs = _GetWatchlist("AlertLogs") | |
| extend AlertDateTime = todatetime(strcat(AlertDate, AlertTime)) | |
| project AlertDateTime, AlertName, UID; | |
let JunosLogs = _GetWatchlist("JunosLogs") | |
| extend JunosDateTime = todatetime(strcat(Date, Time)) | |
| project JunosDateTime, Action, UID=UID_; | |
// JunosLogs | |
AlertLogs | |
| join kind=leftouter JunosLogs on UID | |
| sort by AlertDateTime | |
| summarize arg_max(AlertDateTime, JunosDateTime, *) by UID | |
| where abs(datetime_diff('minute', AlertDateTime, JunosDateTime)) > 5 or isempty(JunosDateTime) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment