Post Delivery Events by ZAP type
Description
This query visualises the daily amount of emails that had a post delivery action from zero-hour auto purge, summarizing by phish,spam or malware detection action
Query · kql
let TimeStart = startofday(ago(30d)); let TimeEnd = startofday(now()); let baseQuery = EmailPostDeliveryEvents | where Timestamp >= TimeStart | where ActionType has "ZAP"; let szap=baseQuery | where ActionType has 'Spam ZAP' | make-series Count= count() default = 0 on Timestamp from TimeStart to TimeEnd step 1d | extend Details = "Spam ZAP"; let pzap=baseQuery | where ActionType has 'Phish ZAP' | make-series Count= count() default = 0 on Timestamp from TimeStart to TimeEnd step 1d | extend Details = "Phish ZAP"; let mzap=baseQuery | where ActionType has 'Malware ZAP' | make-series Count= count() default = 0 on Timestamp from TimeStart to TimeEnd step 1d | extend Details = "Malware ZAP"; union szap,pzap,mzap | project Count, Details, Timestamp | render timechart