Spam detection technologies
Description
This query visualises total emails with Spam detections summarizing the data by various Spam detection technologies/controls.
Query · kql
//This query visualises total emails with Spam detections summarizing the data by various Spam detection technologies/controls in Microsoft Defender for Office 365.
EmailEvents
| where DetectionMethods has 'Spam'
| where Timestamp > ago(30d) // last 30 days by default, replace 30d with the desired period
| project Timestamp, DT=parse_json(DetectionMethods) | evaluate bag_unpack(DT) | summarize count() by Spam=tostring(column_ifexists('Spam', ''))
| sort by count_
// | render piechart // Uncomment this line to render as a graph