Microsoft KB Archive/931737

= How to configure directory size settings for message tracking logs and for audit logs in Exchange Server 2007 =

Article ID: 931737

Article Last Modified on 5/10/2007

-

APPLIES TO


 * Microsoft Exchange Server 2007 Enterprise Edition
 * Microsoft Exchange Server 2007 Standard Edition

-



INTRODUCTION
This article describes how to configure directory size limits for message tracking logs and for managed folder audit logs in Microsoft Exchange Server 2007. These size limits apply to each database.



MORE INFORMATION
You can use the Exchange Management Shell to configure directory size limits for log files in Exchange Server 2007. The MessageTrackingLogMaxDirectorySize parameter is used to configure the maximum limit for directory space to be allocated for message tracking logs. The LogDirectorySizeLimitForManagedFolders parameter is used to configure the maximum limit for directory space to be allocated for managed folder audit logs.

When you configure directory size limits for audit logs or for message tracking logs, the limits apply to each database. The following example shows the total space that log files can occupy in a given scenario:

Limit that is configured = 1 GB

Total number of databases = 10

Total space that is allocated = 10 GB

Therefore, if you configure both parameters in this example, these two types of log files can occupy a total of 20 GB of directory space.

Note All directory size limit parameters for audit logs also apply in a similar manner to each database.

How to set directory size limits
To set directory size limits for log files, you must use the MessageTrackingLogMaxDirectorySize parameter and the LogDirectorySizeLimitForManagedFolders parameter as described in the following sections.

Configure the MessageTrackingLogMaxDirectorySize parameter
To configure the directory size limit for message tracking logs, type the following command at the Exchange Management Console prompt:

Set-TransportServer  –MessageTrackingLogMaxDirectorySize

For example, you can set the directory size limit to 400 MB by using the following command:

Set-TransportServer Server_1 –MessageTrackingLogMaxDirectorySize 400MB

Configure the LogDirectorySizeLimitForManagedFolders parameter
To configure the directory size limit for managed folder logs, type the following command at the Exchange Management Console prompt:

Set-MailboxServer –LogDirectorySizeLimitForManagedFolders

For example, you can set the directory size limit to 400 MB by using the following command:

Set-MailboxServer –LogDirectorySizeLimitForManagedFolders 400MB

Units that you can use for size limits
You configure the directory size parameter in the previously described commands by using an integer and a letter or letters that qualify the units that you want.

Alternatively, you can configure the parameter by using the text string &quot;Unlimited&quot; (without the quotation marks).

The following table describes the various letters that you can use as qualifiers.

Note Integers that do not include a qualifier are treated as bytes.

