Configure the Location of Message Tracking Logs

Cc539073.chm_head_left(en-us,TechNet.10).gif Cc539073.chm_head_middle(en-us,TechNet.10).gif Cc539073.chm_head_right(en-us,TechNet.10).gif

Configure the Location of Message Tracking Logs

By default, the message tracking logs are stored in the C:\Program Files\Microsoft\Exchange Server\TransportRoles\Logs\MessageTracking directory. The directory must be local to the Exchange Server 2007 computer. In a single copy cluster (SCC) environment, move the message tracking log directory to a physical disk resource that is located on the shared storage resource. This enables searches of message tracking logs to continue to function if a failover occurs.

Run the following command on an Edge or Hub server: <pre IsFakePre="true" xmlns="https://www.w3.org/1999/xhtml">Set-TransportServer &lt;Identity&gt; -MessageTrackingLogPath &lt;LocalFilePath&gt;</pre> Run the following command on a Mailbox server: FakePre-26be8983397143198ea37dc4466088cb-91a6ac34ba4146579d73e79142145ebe If you set the value of the MessageTrackingLogPath parameter to $null, you effectively disable message tracking. However, if you set the value of the MessageTrackingLogPath parameter to $null when the value of the MessageTrackingLogEnabled attribute is $true, you will generate event log errors. The preferred method to disable message tracking is to use the MessageTrackingLogEnabled parameter with the Set-TransportServer cmdlet or the Set-MailboxServer cmdlet.

When you change the location of the message tracking log directory, this change does not copy any existing log files from the old directory to the new directory. The new message tracking log directory is active almost immediately after the configuration change, but any existing log files are left in the old directory. The following permissions are required on the message tracking log directory:

  • Administrator: Full Control
  • System: Full Control
  • Network Service: Read, Write, and Delete subfolders and files

By default, the Exchange Transport service uses the security credentials of the Network Service user account to create the new message tracking log directory and apply the correct permissions. If the new message tracking log directory does not already exist, and the Network Service account has the rights that are required to create folders and apply permissions at the new location, the new message tracking log directory is created and the correct permissions are applied to the new directory. If the new message tracking log directory already exists, the existing folder permissions are not checked. Whenever you move the message tracking log directory by using the MessageTrackingLogPath parameter with the Set-TransportServer cmdlet or the Set-MailboxServer cmdlet, it is always a good idea to verify the new message tracking log directory and to verify that the new directory has the correct permissions applied to it. If your change to the message tracking log directory is not successful, you can create the new message tracking log directory and apply the correct permissions to it before you use the MessageTrackingLogPath parameter with the Set-TransportServer cmdlet or the Set-MailboxServer cmdlet.