Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Configure Message Tracking

 

Applies to: Exchange Server 2013

Topic Last Modified: 2013-02-18

Message tracking records the SMTP transport activity of all messages transferred to and from the Transport service or mailboxes on a Microsoft Exchange Server 2013 Mailbox server. You can use message tracking logs for message forensics, mail flow analysis, reporting, and troubleshooting.

  • Estimated time to complete: 15 minutes
  • You need to be assigned permissions before you can perform this procedure or procedures. To see what permissions you need, see the "Transport service" entries in the Mail Flow Permissions topic or the "Mailbox server configuration" entry in the Recipients Permissions topic.
  • You can use the Exchange admin center (EAC) to enable or disable message tracking, or set the message tracking log path. For all other message tracking options, you need to use the Exchange Management Shell.
  • On an Exchange 2013 Mailbox server, you can use either the Set-TransportService or the Set-MailboxServer cmdlet to configure the message tracking options. The procedures in this topic use the Set-TransportService cmdlet.
  • For information about keyboard shortcuts that may apply to the procedures in this topic, see Keyboard Shortcuts in the Exchange Admin Center.
tipTip:
Having problems? Ask for help in the Exchange forums. Visit the forums at: Exchange Server, Exchange Online, or Exchange Online Protection
  1. In the EAC, navigate to Servers > Servers.
  2. Select the Mailbox server you want to configure, and then click Edit Edit Icon.
  3. On the server properties page, click Transport Logs.
  4. In the Message tracking log section, change any of the following:
    • Enable message tracking log   To disable message tracking on the server, clear the check box. To enable message tracking on the server, select the check box.
    • Message tracking log path   The value you specify must be on the local Exchange server. If the folder doesn't exist, it will be created for you when you click Save.
  5. Click Save.

To configure message tracking, run the following command:

Set-TransportService <ServerIdentity> -MessageTrackingLogEnabled <$true | $false> -MessageTrackingLogMaxAge <dd.hh:mm:ss> -MessageTrackingLogMaxDirectorySize <Size> -MessageTrackingLogMaxFileSize <Size> -MessageTrackingLogPath <LocalFilePath> -MessageTrackingLogSubjectLoggingEnabled <$true|$false>

This example sets the following message tracking log settings on the Mailbox server named Mailbox01:

  • Sets the location of the message tracking log files to D:\Message Tracking Log. Note that if the folder doesn't exist, it will be created for you.
  • Sets the maximum size of a message tracking log file to 20 MB.
  • Sets the maximum size of the message tracking log directory to 1.5 GB.
  • Sets the maximum age of a message tracking log file to 45 days.
Set-TransportService Mailbox01 -MessageTrackingLogPath "D:\Hub Message Tracking Log" -MessageTrackingLogMaxFileSize 20MB -MessageTrackingLogMaxDirectorySize 1.5GB -MessageTrackingLogMaxAge 45.00:00:00
noteNote:
  • Setting the MessageTrackingLogPath parameter to the value $null, effectively disables message tracking. However, if the value of the MessageTrackingLogEnabled parameter is $true, event log errors are generated.
  • Setting the MessageTrackingLogMaxAge parameter to the value 00:00:00 prevents the automatic removal of message tracking log files because of their age.
  • On Exchange 2013 Mailbox servers, the maximum size of the message tracking log directory is three times the value of the MessageTrackingLogMaxDirectorySize parameter. Although the message tracking log files that are generated by the four different services have four different name prefixes, the amount and frequency of data written to the MSGTRKMA log files is negligible compared to the three other log file prefixes. For more information, see the "Structure of the message tracking log files" section in the Message Tracking topic.

This example disables message subject logging in the message tracking log on the Mailbox server named Mailbox01:

Set-TransportService Mailbox01 -MessageTrackingLogSubjectLoggingEnabled $false

This example disables message tracking on the Mailbox server named Mailbox01:

Set-TransportService Mailbox01 -MessageTrackingLogEnabled $false

To verify that you have successfully configured message tracking, do the following:

  1. In the Shell, run the following command:
    Get-TransportService <ServerIdentity> | Format-List MessageTrackingLog*
    
  2. Verify that the values displayed are the values you configured.
 
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.