Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

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


View products that this article applies to.

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.

↑ Back to the top


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 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
LetterUnit
Bbytes
KBkilobytes
MBmegabytes
GBgigabytes
TBterabytes
Note Integers that do not include a qualifier are treated as bytes.

↑ Back to the top


References

For more information about how to use these commands, you can refer to the online Help files for Exchange Server 2007.

↑ Back to the top


Keywords: KB931737, kbhowto, kbexpertiseadvanced, kbdirectory, kbaudit, kbexchtransport

↑ Back to the top

Article Info
Article ID : 931737
Revision : 2
Created on : 5/10/2007
Published on : 5/10/2007
Exists online : False
Views : 402