Monday, 18 April 2016

Calculate email Traffic using Message Tracking and Log Parser studio

Dear All, recently I got a requirement to calculate and analyze the email traffic of a Exchange gateway servers for migration purpose.


I was searching many tools and finally found that log parser studio is one the best tool for this purpose.

The report can be quickly generated using Log Parser Install it on the server and run the following query from the folder where the message tracking logs are stored.

Please find the link, how to use it.Log Parser to calculate email Traffic

The result will be similar like below.

Date       Hits
---------- ----
2012-03-17 5311
2012-03-18 2575
2012-03-19 6296
2012-03-23 283

It uses the “Receive” message tracking event as the basis of the calculation. Every message should have at least one “Receive” event, but it isn’t necessarily 100% accurate in terms of only counting each unique message once. Consider it a reasonable estimate rather than an exact number.
-------------------------------------------------------------

There is one more useful script for the same purpose, but I prefer the below script will be more useful in the mailbox server where as above steps (using log parser) will be suits in CAS and HUB infrastructure mainly in the gateway perspective.
The main difference in the below script is that, it is actually look for the storedrive attributes with "Receive" events  in the message tracking logs and fetch the details

for eg:If ($_.EventId -eq "RECEIVE" -and $_.Source -eq "STOREDRIVER"

You may need to specify the date (duration) in the below location of the script.

$From = Get-Date "20/11/2011"
While ($To -lt (Get-Date "01/12/2011"))

Also you can specify the server name or let script to fetch from all servers in the below portion of the script.
 (Get-TransportServer) | Get-MessageTrackingLog -ResultSize Unlimited -Start $From -End $To | ForEach {

Please find the link for more details on this

No comments:

Post a Comment