Post Delivery Events by Location
Description
This query visualises the amount of emails that had a post delivery action, summarizing the data daily by the final location as a result of the action
Query · kql
let TimeStart = startofday(ago(30d)); let TimeEnd = startofday(now()); let quarantine=EmailPostDeliveryEvents | where Timestamp >= TimeStart | where DeliveryLocation has 'Quarantine' | make-series Count= count() default = 0 on Timestamp from TimeStart to TimeEnd step 1d | extend Details = "Quarantine"; let delete=EmailPostDeliveryEvents | where Timestamp >= TimeStart | where DeliveryLocation has 'Delete' | make-series Count= count() default = 0 on Timestamp from TimeStart to TimeEnd step 1d | extend Details = "Delete"; let junk=EmailPostDeliveryEvents | where Timestamp >= TimeStart | where DeliveryLocation has 'Junk' | make-series Count= count() default = 0 on Timestamp from TimeStart to TimeEnd step 1d | extend Details = "Junk"; let inbox=EmailPostDeliveryEvents | where Timestamp >= TimeStart | where DeliveryLocation has 'Inbox' | make-series Count= count() default = 0 on Timestamp from TimeStart to TimeEnd step 1d | extend Details = "Inbox"; union quarantine,delete,junk,inbox | project Count, Details, Timestamp | render timechart