KQL hunting email Queries
Look for a certain email
EmailEvents
| where SenderFromAddress contains "Boltinc8@gmail.com"
| project RecipientEmailAddress, SubjectGet email with lab in the name
EmailEvents
| where RecipientEmailAddress matches regex "^lab\\d{1,2}@.+$"
| project SenderFromAddress, RecipientEmailAddressGet all emails that have a attachment with said name
EmailAttachmentInfo
| where FileName contains "INV9783.pdf"
| project RecipientEmailAddress, FileName, Timestamp, SenderDisplayName, SenderFromAddressGet all emails from Gmail and count
EmailEvents
| where SenderFromAddress contains "@gmail.com"
| summarize Count = count() by SenderFromAddress
| project SenderFromAddress, CountGet all emails with Gmail
Hunt emails except
Regex pattern matches any character that is not an ASCII character
Finding Chinese character
Finding Spanish character
All Languages that are not English
Finding attachments sent from Gmail
Finding attachments that are PDF sent from Gmail with a certain size
Attachments type count
Email contains in subject
Count Sender domain (sent-from)
Count delivered-to domains (recipients)
Last updated