Phish Detections by delivery location trend
Description
This query visualises total emails with Phish detections over time summarizing the data daily by Delivery Location.
Query · kql
let TimeStart = startofday(ago(30d)); let TimeEnd = startofday(now()); EmailEvents | where Timestamp >= TimeStart | where OrgLevelPolicy != "Phishing simulation" and OrgLevelPolicy != "SecOps Mailbox" | extend Key = strcat(NetworkMessageId, "-", RecipientEmailAddress) | summarize arg_max(Timestamp, *) by Key | where DetectionMethods has "Phish" and EmailDirection == "Inbound" | make-series TotalPhishDetections = count(), Quarantine = countif(DeliveryLocation == "Quarantine"), Junkfolder = countif(DeliveryLocation == "Junk folder"), Inbox = countif(DeliveryLocation == "Inbox/folder"), Failed = countif(DeliveryLocation == "Failed"), Dropped = countif(DeliveryLocation == "Dropped") default = 0 on Timestamp from TimeStart to TimeEnd step 1d | render timechart