Get-MessageTrackingLog usefull or not

P

Pjot

hi

I was looking for some counting command for Exchange 2010. I Want to count all e-mails received in an Exchange organization with several hub/transport servers from installations time and had a thought about Get-MessageTrackingLog-

Get-TransportServer | get-messagetrackinglog -eventid " receive" -resultsize unlimited | measure-object

However i do not know whether this result will show the real " received" mails from the beginning of installation ? or just for a period

If not what else to do ?
 
B

Brian Desmond -MVP-

Message tracking logs roll every 14 or 30 days by default (I forget). Check Get-TransportServer | fl *tracking* for the timeline.

Active Directory, 4th Edition - www.briandesmond.com/ad4/
 
M

mjolinor

Unless you've changed it the default message tracking log retention is 30 days. How long ago was this server installed?

[string](0..33|%{[char][int](46+(" 686552495351636652556262185355647068516270555358646562655775 0645570" ).substring(($_*2),2))})-replace " "
 
P

Pjot

Hi -

more then 30 days -I am not interested in 30 days but in all mails received (as a mailcount) since beginning.
 
M

mjolinor

Then the message tracking logs won't be able to give you that information, and I don't know of anywhere the hub transport servers keep a running total of all emails sent or received.

You'd need to set up schedulted tasks to periodically check the message tracking or daily stat logs and accumulate those totals for you.

[string](0..33|%{[char][int](46+(" 686552495351636652556262185355647068516270555358646562655775 0645570" ).substring(($_*2),2))})-replace " "
 
P

Pjot

hmm it is a usefull task to add in SP2 or next version of Exchange - mail count should be a thing which should be implemented in Exchange as a odometer in a car
I might end with something like mjolinor mention -
 
M

mjolinor

Check this directory on your transport servers.

C:\Program Files\Microsoft\Exchange Server\V14\TransportRoles\Logs\ServerStats

Those files may contain all the stats you want without having to chew through the message tracking logs to get them.

[string](0..33|%{[char][int](46+(" 686552495351636652556262185355647068516270555358646562655775 0645570" ).substring(($_*2),2))})-replace " "
 
Thread starter Similar threads Forum Replies Date
J Outlook Wishlist 0
J Exchange Server Questions 2

Similar threads

Top