Filtering Message Tracking Log

Filtering message tracking log on the basis of sender & recipient can be easily achieved thru powershell:

For example:

you want to find mails where sender or recipents are from specific domain:

Run the below powershell command on the hub server & export the results to comma separated file.

Get-MessageTrackingLog -Server exchange-hub -EventId receive -Start “May 16 2010 12:00AM” -resultsize unlimited | where {
$_.recipients -like * -or $_.sender -like *} | select Timestamp,clientip,ClientHostname,ServerIp,ServerHostname,sender,@{Name=”Recipents”;Expression={$_.recipients}} | export-csv c:\abc.csv


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s