Exchange 2013 - get-messagetrackinglog only seems to return last 30 days

Customer has asked me for details of emails received from a particular date. Trouble is when I run the get-messagetrackinglog command all I'm getting is last 30 days.

Pretty sure we set logging to 90 days? Isnt this the default?
LVL 1
paulfoelAsked:
Who is Participating?
 
Senior IT System EngineerIT ProfessionalCommented:
Hi Paul,

what ahappened when you execute the below powershell command in the Exchange Management shell ?


Get-ExchangeServer | where {$_.isHubTransportServer -eq $true -or $_.isMailboxServer -eq $true} | Get-MessageTrackingLog -Sender "sender@email.com" -ResultSize Unlimited | select-object Timestamp, Recipients, MessageSubject, Source, EventId, RecipientCount, totalbytes, ClientIp, ServerHostname | ft -AutoSize

Open in new window

1
 
Ajit SinghCommented:
Please refer to below resources might helps you to get in more detailed:

Searching Message Tracking Logs by Time and Date Range:
http://exchangeserverpro.com/searching-message-tracking-logs-by-time-and-date-range/

Searching Message Tracking Logs by Sender or Recipient Email Address:
http://exchangeserverpro.com/searching-message-tracking-logs-by-sender-or-recipient-email-address/

Get-MessageTrackingLog

Trying to pull emails for last 3 months on Exchange 2013 server but doesn't pull older emails:
http://www.networksteve.com/exchange/topic.php/Trying_to_pull_emails_for_last_3_months_on_Exchange_2013_server/?TopicId=52460&Posts=5

Hope this helps!
0
 
suriyaehnopCommented:
Do the message track log contains log dated 90 days ago?

I think the default is 1 months. You run get-transportconfig to get the details.
0
 
paulfoelAuthor Commented:
Ah that seems to be producing more results - looking at all the server now not just one.

One final question - Im looking at incoming emails, is is possible to flag which ones had attachments?
0
 
suriyaehnopCommented:
I don't see such information result of message tracking log
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.