Inbound Teams messages by sender domains
Description
This query helps reviewing volume of inbound external Teams message by sender domains
Query · kql
//This query helps reviewing volume of inbound external Teams message by sender domains MessageEvents | where IsExternalThread==1 and IsOwnedThread==1 | mv-expand Recipients = RecipientDetails | extend RecipientEmailAddress = Recipients.RecipientSmtpAddress, RecipientDisplayName = Recipients.RecipientDisplayName, RecipientObjectId = Recipients.RecipientObjectId, RecipientType = Recipients.RecipientType | extend Domain = substring(RecipientEmailAddress, indexof(RecipientEmailAddress, "@")+1) | summarize total=count() by Domain, bin(Timestamp, 1d) | order by Timestamp asc