Microsoft Exchange Server 2003 and Exchange Server 2000 have the ability to trace calendar activities that happen in the store. This trace is done through an Exchange Store Tracing feature and the tracing can be done on a per-user or a per-server basis.
Enabling Exchange Store Tracing
This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:
322756�How to back up and restore the registry in Windows
The following steps explain how this tracing feature can be enabled when you work with a Microsoft support engineer on a support case related to calendar issues.
- Identify the user whose mailbox will be traced by this process.
Note For performance considerations, you should always identify one user who is encountering the issue and then trace their mailbox using per-user tracing. - Obtain the appropriate store.ttd file from your Microsoft support engineer.
In order to use Store tracing, you need to use a store.ttd file designed specifically for logging Calendar events. The store.ttd file is not a publicly available file because of possible Exchange Store performance problems if it is implemented incorrectly. - Place the store.ttd file in the \Exchsrvr\Bin directory on the Exchange server containing the mailbox of the user experiencing calendar issues. By default, the \Bin folder is in the following folder path:
\Program Files\Exchsrvr\Bin - Enable overall tracing using the following registry data:
Registry subkey: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSExchangeIS\ParametersSystem
DWORD: Enable Tracing
Value: 1
To do this, follow these steps:
a. Click Start, click Run, type regedit in the Open box, and then click OK.
b. Locate and then click to select the following registry key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSExchangeIS\ParametersSystem
c. After you select the key that is specified in step b, point to New on the Edit menu, and then click DWORD value.
d. Type Enable Tracing, and then press ENTER.
e. Right-click Enable Tracing, and then click Modify.
f. In the Value data box, type 1, and then click OK.
g. On the File menu, click Exit to quit Registry Editor. - Use a tool like ADSIEdit to determine the Active Directory legacyExchangeDN value of the user identified in Step 1. For example:
/o=Contoso/ou=Site1/cn=Recipients/cn=1234
Please see the following Microsoft Knowledge Base article on Windows Server 2003 support tools, one of which is ADSIEdit:
892777 Windows Server 2003 Service Pack 1 Support Tools - Add the following data to enable per-user tracing for the identified user.
Key: HKLM\SYSTEM\CurrentControlSet\Services\MSExchangeIS\ParametersSystem
REG_SZ: Trace User LegacyDN
Value: <user legacyDN> (for example: /o=Contoso/ou=Site1/cn=Recipients/cn=1234)
To do this, follow these steps:
a. Click Start, click Run, type regedit in the Open box, and then click OK.
b. Locate and then click to select the following registry key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSExchangeIS\ParametersSystem
c. After you select the key that is specified in step b, point to New on the Edit menu, and then click String Value.
d. Type Trace User LegacyDN, and then press ENTER.
e. Right-click Trace User LegacyDN, and then click Modify.
f. In the Value data box, type the Legacy Exchange DN of the user (see step 5 above), and then click OK.
g. On the File menu, click Exit to quit Registry Editor. - Add a test appointment to the user's Calendar folder to ensure Store logging is working.
This is a very important step as you do not want to wait for the next occurrence of the problem only to find out that Store logging wasn�t enabled correctly.
If Store logging is working you will find a Store.log file located in the \Program Files\Exchsrvr\Bin directory. You can open this log file using any text editor (for example, Notepad) to check for an entry related to this test appointment.
Managing the size of the Store.log file while you wait to reproduce the problem
If the problem does not readily reproduce within a day or two of enabling store logging, you should consider checking on the size of the store.log file. There are no hard-fast rules on how large to let the file grow, but you might consider 200 MB as a size at which you want to archive the each store.log file and then start logging again with a new store.log file.
Note You will want to archive the store.log file only when you know the user or their delegate are not actively working with meetings in the user�s Calendar folder.
Use the following process to keep the size of the store.log file to a manageable size.
- When the size of the store.log file hits 200 MB (for example), temporarily stop store tracing.
To do this, follow these steps:
a. Click Start, click Run, type regedit in the Open box, and then click OK.
b. Locate and then click to select the following registry key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSExchangeIS\ParametersSystem
c. Right-click Enable Tracing, and then click Modify.
d. In the Value data box, type 0, and then click OK.
e. On the File menu, click Exit to quit Registry Editor. - Rename the Store.log file to Store_<username>_<current date_time>.log. For example:
Store_guidopica_05-08-2009_1050am.log - Re-enable store tracing.
To do this, follow these steps:
a. Click Start, click Run, type regedit in the Open box, and then click OK.
b. Locate and then click to select the following registry key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSExchangeIS\ParametersSystem
c. Right-click Enable Tracing, and then click Modify.
d. In the Value data box, type 1, and then click OK.
e. On the File menu, click Exit to quit Registry Editor.
Stopping Exchange Store Tracing
Once the calendar issue has occurred while Store tracing was enabled you can use the following steps to disable Store tracing.
- Disable tracing using the following registry data:
Key: HKLM\SYSTEM\CurrentControlSet\Services\MSExchangeIS\ParametersSystem
DWORD: Enable Tracing
Value: 0
To do this, follow these steps:
a. Click Start, click Run, type regedit in the Open box, and then click OK.
b. Locate and then click to select the following registry key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSExchangeIS\ParametersSystem
c. Right-click Enable Tracing, and then click Modify.
d. In the Value data box, type 0, and then click OK.
e. On the File menu, click Exit to quit Registry Editor. - Remove the Trace User LegacyDN string value data under the following registry key.
Registry subkey: HKLM\SYSTEM\CurrentControlSet\Services\MSExchangeIS\ParametersSystem
REG_SZ: Trace User LegacyDN
To do this, follow these steps:
a. Click Start, click Run, type regedit in the Open box, and then click OK.
b. Locate and then click to select the following registry key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSExchangeIS\ParametersSystem
c. Right-click Trace User LegacyDN, and then click Modify.
d. In the Value data box, delete the Legacy Exchange DN of the user and then click OK.
e. On the File menu, click Exit to quit Registry Editor. - After you have stopped Store tracing, collect the Store.log file located in the \Exchsrvr\Bin directory. By default, the \Bin folder is in the following folder path:
\Program Files\Exchsrvr\Bin