Post Delivery Events by Admin
Description
This query visualises the daily amount of emails that had an admin post delivery action, summarizing the data by action type
Query · kql
let TimeStart = startofday(ago(30d)); let TimeEnd = startofday(now()); let baseQuery = EmailPostDeliveryEvents | where Timestamp >= TimeStart | where ActionTrigger has "AdminAction"; let sdelete=baseQuery | where Action has 'Soft Delete' | make-series Count= count() default = 0 on Timestamp from TimeStart to TimeEnd step 1d | extend Details = "Soft Delete"; let hdelete=baseQuery | where Action has 'Hard Delete' | make-series Count= count() default = 0 on Timestamp from TimeStart to TimeEnd step 1d | extend Details = "Hard Delete"; let mtojunk=baseQuery | where Action has 'Moved to junk folder' | make-series Count= count() default = 0 on Timestamp from TimeStart to TimeEnd step 1d | extend Details = "Moved to junk folder"; let mtoinbox=baseQuery | where Action has 'Moved to inbox' | make-series Count= count() default = 0 on Timestamp from TimeStart to TimeEnd step 1d | extend Details = "Moved to inbox"; let qrel=baseQuery | where Action has 'Quarantine release' | make-series Count= count() default = 0 on Timestamp from TimeStart to TimeEnd step 1d | extend Details = "Quarantine release"; union sdelete,hdelete,mtojunk,mtoinbox,qrel | project Count, Details, Timestamp | render timechart