Query Details
let query_start = ago(30d);
let query_end = ago(1h);
union
(EmailUrlInfo
| where Timestamp between (query_start .. query_end)
),
(EmailAttachmentInfo
| where Timestamp between (query_start .. query_end)
)
| join kind=leftanti (
EmailEvents
| where Timestamp between (query_start .. query_end)
) on NetworkMessageId
| summarize arg_min(Timestamp, *) by NetworkMessageId
| summarize count() by bin(Timestamp, 5m)
| render columnchart
This KQL query is designed to analyze email data over a specified time range and visualize the results. Here's a simple summary:
EmailUrlInfo and EmailAttachmentInfo.NetworkMessageId in the EmailEvents table within the same time range.arg_min) timestamp for each unique NetworkMessageId.In essence, the query identifies and visualizes email-related activities that are present in the EmailUrlInfo and EmailAttachmentInfo tables but not in the EmailEvents table, aggregated in 5-minute intervals over the past 30 days up to 1 hour ago.

Jose Sebastián Canós
Released: October 2, 2024
Tables
Keywords
Operators