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 Computer_Name �MessageTrackingLogMaxDirectorySize DirectorySize
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 DirectorySize
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 "Unlimited" (without the quotation marks).
The following table describes the various letters that you can use as qualifiers.
Collapse this tableExpand this table
Letter | Unit |
---|
B | bytes |
KB | kilobytes |
MB | megabytes |
GB | gigabytes |
TB | terabytes |
Note Integers that do not include a qualifier are treated as bytes.