Check out the most comprehensive, actively managed Lync blog roll in the known universe, your one-stop source for links to over 100 of the very best Lync blogs. Here you will also find weekly blog highlights and a feed for a dozen of the top blogs.
Lync Server Support Home
Top Lync Solutions RSS Feed
Microsoft Senior Support engineers walk you through real-life support cases, giving you an insider’s view into the systematic approach they use to troubleshoot Lync Server issues.
These short videos focus on specific tasks and show you how to accomplish them for Microsoft Lync Server 2010.
The purpose of this entry is to provide information regarding the various types of logging capabilities that exist within the numerous clients accessing the Office Communications Server Infrastructure.
Author: Kent Tilger
Publication date: April 2009
Product version: Office Communications Server 2007 R2
At the very highest level the goal is to provide guidelines to enable both monitoring (using Windows Event logs) and tracing (writing trace statements to log files on the local client). This initial entry will focus exclusively on the Microsoft Office Communicator Client. Future entries will provide a concise reference for client logging for the LiveMeeting Client, Group Chat Client and Conferencing Attendant.
The term “Logging” will be used throughout this document as the umbrella term for instrumentation of service components to support both monitoring the health of the service (primarily real-time) and debugging (diagnosing problems during pilot/production deployment, and by PSS).
For the most part both monitoring and debugging rely on files written to the local hard disk (trace files). Since trace files are useful but not best suited for monitoring, the focus of monitoring functionality has shifted to writing to the Windows Event Log and Performance Monitor whenever possible.
Microsoft Office Communicator 2007 (and R2)Logging can be enabled from User Interface or directly via the registry.
Launch Communicator -> Options Dialog -> General page
Place a check in the option called “Turn on logging in Communicator” to enable file tracing for both UCCP and UCClient. This setting enables two types of logging in the local registry described later.
Place a check in the option called “Turn on Windows Event logging for Communicator” to enable Windows Event logging. In addition to Communicator UCCP logs, a Communicator.ETL file is also created for more in depth tracing needs by PSS. Communicator trace files have an extension of .etl, and UCCP trace files have an extension of .uccplog. (Note that Communicator trace files need to be converted to .txt files for analysis which requires a special tool. These files must be sent to PSS for analysis)
As soon as you close the Options dialog, tracing will be enabled.
You can collect detailed troubleshooting information about Communicator 2007/R2 by using the EnableTracing and EnableEventLogging Group Policies.
These policies correspond to the Communicator 2007/R2 dialog box options Turn Logging on in Communicator and Turn on Windows Event Logging for Communicator.
Enabling the Windows Event Logging option will start to log events to the Windows Event Viewer.
The following Event is logged signifying the Event Logging has been enabled for Office Communicator.
Event Type: InformationEvent Source: CommunicatorEvent ID: 12Description: Communicator has enabled event logging.
Enabling the File Logging option in Communicator enables trace file output under %userprofile% \tracing by default.
*Vista users May need to add themselves to "Performance Log Users" group to generate tracing files in Vista. After that, you need to log off and login to take this into effect.
For Vista users, go to User Accounts in Control Panel and add your username to the Performance Log Group.
To verify that logging is enabled via the UI, or to configure logging directly using the registry editor, browse to the following Registry Path: HKEY_CURRENT_USER\software\Microsoft\Tracing.
There are two unique file tracing entries being set under these two paths for UCCP and UCClient:
To enable File Tracing manually, under both file paths, set the EnableFileTracing == 1 When a user de-selects the enable logging option within the UI or to disable logging manually, set the EnableTracing value back to 0 for both keys.
UCCAPI Logging (optional)Occasionally, you may be instructed by PSS to enable additional logging under the following Registry Path:
Within the Registry, there are also configuration options for MaxFiles, MaxFileSize and FileDirectory:
MaxFiles – Specifies the Number of unique Files to createBy default, you can configure how many uccp trace files will be created, however for .ETL logging, tracing will be combined into a single Communicator.etl file.
Naming Convention for UCCP Tracing Files Since it is possible for more than one application to specify the same FileDirectory location (typically %USERPROFILE%\Tracing). This may result in some tracing information being lost and other problems when multiple applications are running simultaneously on the same machine. In order to avoid this, tracing filenames have the syntax AppString-UCCPlatform-x.log where x is an integer between 0 and MaxFiles-1 i.e. (For example, Communicator passes “Communicator” as the initialization string and if you set MaxFiles to 3, the three files generated would be Communicator-UCCAPI-0, Communicator- UCCAPI-1 and Communicator-UCCAPI-2). The File Extension for UCCP logs is .uccapilog
MaxFileSize – Allows specification for Maximum File SizeBy default, a default trace file size is configured automatically, but you can modify this parameter if desired.
FileDirectory - File System Location where trace files will be written.By default, the UCCP and UCCLIENT (.ETL) logs will be written to the \%userprofile%\tracing folder. However, it is possible to change the logging location if desired by modifying the FileDirectory string.
The *.uccapilog files can be opened in notepad or snooper.exe (OCS Resource Kit). Snooper will enhance readability of the file by highlighting individual sip conversations, but there may be additional information outside of SIP that may be of interest that requires a text editor.
Communicator .ETL files must be sent to PSS for analysis.
Windows Installer (Setup) Logging
It is also possible to enable logging for Communicator Setup. This log will include activities of Communicator install, uninstall, repair, upgrade.
The letters in the Logging value field can be in any order. Each letter turns on a different logging mode.
Each letter's actual function is as follows for MSI version 1.1: v - Verbose outputo - Out-of-disk-space messagesi - Status messagesc - Initial UI parameterse - All error messagesw - Non-fatal warningsa - Start up of actionsr - Action-specific recordsm - Out-of-memory or fatal exit informationu - User requestsp - Terminal properties+ - Append to existing file! - Flush each line to the logx - Extra debugging information. The "x" flag is available only on Windows Server 2003 and later operating systems, and on the MSI redistributable version 3.0, and on later versions of the MSI redistributable.
"*" - Wildcard, log all information except for the v and the x option. To include the v and the x option, specify "/l*vx".
Note: This should be used only for troubleshooting purposes and should not be left on because it will have adverse effects on system performance and disk space. Each time you use the Add/Remove Programs tool in Control Panel, a new Msi*.log file is created.
Start -> Run -> %Temp%Look for the latest MSI*.log file. (* is the reference number) This insight into Office Communications Server 2007 R2 was created as part of Kent Tilger’s participation in the Microsoft Certified Master program.
The Microsoft Certified Master Program: The Microsoft Certified Master: Microsoft Office Communications Server 2007 program provides the most in-depth and comprehensive training available today for Office Communications Server 2007. This three-week training program is delivered by recognized experts from Microsoft and Microsoft partner organizations.
Published Wednesday, April 01, 2009 1:45 PM by ocsteam Filed Under: Communicator 2007 R2