从 Lync Server 2013 中的集中日志记录服务读取捕获日志Reading capture logs from the Centralized Logging Service in Lync Server 2013

 

上次修改的主题: 2016-12-28Topic Last Modified: 2016-12-28

在运行搜索并拥有可用于跟踪报告的问题的文件后,可以充分利用集中日志记录服务的真正优势。You realize the real benefit of the Centralized Logging Service after you run the search and you have a file that you can use to track down a reported problem. 读取该文件有多种方法。There are a number of ways that you can read the file. 输出文件为标准文本格式,可以使用 Notepad.exe 或任何其他可以打开和读取文本文件的程序。The output file is in a standard text format and you can use Notepad.exe or any other programs that will allow you to open and read a text file. 对于较大的文件和更复杂的问题,您可以使用 Snooper.exe 的工具,该工具旨在读取和分析集中日志记录服务中的日志记录输出。For larger files and more complex issues, you could use a tool like Snooper.exe that is designed to read and parse the logging output from the Centralized Logging Service. Snooper 包含在可单独下载的 Lync Server 2013 调试工具中。Snooper is included with the Lync Server 2013 Debug Tools that are available as a separate download. 您可以在此处下载 Lync Server 2013 调试工具: https://go.microsoft.com/fwlink/?LinkId=285257You can download the Lync Server 2013 Debug Tools here: https://go.microsoft.com/fwlink/?LinkId=285257. 当您安装 Lync Server 2013 调试工具时,不会创建短时间的剪切和菜单项。When you install the Lync Server 2013 Debug Tools, short cuts and menu items are not created. 安装 Lync Server 2013 调试工具后,打开 Windows 资源管理器、命令行窗口或 Lync Server 命令行管理程序,然后转到目录 (默认位置) C: \ Program Files \ Microsoft Lync Server 2013 \ 调试工具。After you install the Lync Server 2013 Debug Tools, open Windows Explorer, a command-line window, or Lync Server Management Shell and go to the directory (default location) C:\Program Files\Microsoft Lync Server 2013\Debugging Tools. 如果您使用的是命令行或 Lync Server 命令行管理程序,请双击 "Snooper.exe" 或 "键入 Snooper.exe",然后按 ENTER。Double-click Snooper.exe or type Snooper.exe, and then press ENTER if you are using the command line or Lync Server Management Shell.

重要

本主题的目的不是详细介绍和讨论疑难解答技术。The intent of this topic is not to detail and discuss troubleshooting techniques. 疑难解答及其相关过程是一个复杂的主题。Troubleshooting and the processes around it is a complex subject. 有关疑难解答基础知识和特定工作负荷故障排除的详细信息,请参阅 Microsoft Lync Server 2010 资源工具包书籍 https://go.microsoft.com/fwlink/p/?linkId=211003For details about troubleshooting basics and troubleshooting specific workloads, see the Microsoft Lync Server 2010 Resource Kit book at https://go.microsoft.com/fwlink/p/?linkId=211003. 这些过程和过程仍适用于 Lync Server 2013。The processes and procedures still apply to Lync Server 2013.

Lync Server 2013 引入了更新版本的 Snooper.exe,其中包含一些新功能。Lync Server 2013 introduces an updated version of Snooper that includes some new features. 以下屏幕截图显示了 Office 通信服务器2007中的 Snooper.exe 版本。The following screen shot shows the version of Snooper from Office Communications Server 2007.

Office 通信2007版本的 Snooper.exe。Office Communications 2007 version of Snooper.

以下屏幕截图显示了新版本的 Snooper.exe,其中包含在 Lync Server 2013 调试工具中。The following screen shot shows the new version of Snooper included in the Lync Server 2013 Debug Tools.

Lync Server 2013 版本的 Snooper.exe。Lync Server 2013 version of Snooper.

以下屏幕快照显示了含有常用功能的工具栏。The following screen shot shows the toolbar with frequently used functions.

Snooper.exe 2013 工具栏。Snooper 2013 toolbar.

此外,具有附加值的最新功能是流程图(呼叫流)视图。可以在“消息”**** 选项卡中选择消息流,然后单击“呼叫流”**** 按钮。当您继续浏览消息时,呼叫流视图将用新数据更新。And, the newest feature that adds value is the Flow Chart (call flow) diagram view. You select a message flow in the Message tab and click the Call Flow button. As you proceed through the messages, the call flow diagram updates with new data.

Snooper.exe 2013 呼叫流示意图。Snooper 2013 call flow diagram.

您可以悬停在视图上并获得消息的详细信息以及流、消息和服务器元素的内容。单击任意呼叫流箭头可转到“消息”视图中的相应消息。You can hover over the diagram view and get details about the messages and content of the flows and messages as well as the server elements. Click on any call flow arrow to go to the message in the Messages view.

呼叫流图表消息详细信息。Call flow diagram message details.

在 Snooper 中打开日志文件To open a log file in Snooper

  1. 要使用 Snooper 并打开日志文件,您需要具有日志文件的读取权限。要使用 Snooper 并访问日志文件,您必须是基于 CsAdministrator 或 CsServerAdministrator 角色的访问控制 (RBAC) 安全组的成员,或者是包含这两个组之一的自定义 RBAC 角色。To use Snooper and open log files, you need read access to the log files. To use Snooper and access the log files you must be a member of the CsAdministrator or the CsServerAdministrator role-based access control (RBAC) security groups, or a custom RBAC role that contains either of these two groups.

  2. 在安装了 Lync Server 调试工具 ( # A0) 后,请使用 Windows 资源管理器或命令行将目录更改为 Snooper.exe 的位置。After the installation of the Lync Server Debugging Tools (LyncDebugTools.msi), change directory to the location of Snooper.exe using Windows Explorer or from the command line. 默认情况下,调试工具位于 C: \ Program Files \ Microsoft Lync Server 2013 \ 调试工具中。By default, the debugging tools are located in C:\Program Files\Microsoft Lync Server 2013\Debugging Tools. 双击或运行 Snooper.exe。Double-click or run Snooper.exe.

  3. 打开 Snooper 后,右键单击“文件”****,单击“打开文件”****,查找日志文件,在“打开”**** 对话框中选择文件,然后单击“打开”****。After Snooper is open, right-click File, click OpenFile, find your log files, select a file in the Open dialog box, and then click Open.

  4. 日志文件的“跟踪”**** 消息显示在“跟踪”**** 选项卡上。单击“消息”**** 选项卡可查看所收集跟踪的消息内容。The log file’s Trace messages are displayed on the Trace tab. Click the Messages tab to view the message contents of the collected traces.

显示呼叫流程图To display a call flow diagram

  1. 要使用 Snooper 并打开日志文件,您需要具有日志文件的读取权限。要使用 Snooper 并访问日志文件,您需要是基于 CsAdministrator 或 CsServerAdministrator 角色的访问控制 (RBAC) 安全组的成员,或者是包含这两个组之一的自定义 RBAC 角色。To use Snooper and open log files, you need read access to the log files. To use Snooper and access the log files, you need to be a member of the CsAdministrator or the CsServerAdministrator role-based access control (RBAC) security groups, or a custom RBAC role that contains either of these two groups.

  2. 打开日志文件并单击“消息”**** 选项卡,在消息视图中选择对话或在“跟踪”**** 选项卡上选择跟踪组件。Open a log file and click the Messages tab, select a conversation in the messages view or select a trace component on the Trace tab.

  3. 单击“呼叫流”****。Click Call Flow.

    备注

    如果单击不属于呼叫流的消息或跟踪,将不会显示流程图并在 Snooper 的底部显示一条状态消息,指示“此消息不符合呼叫流”。选择另一条属于呼叫流的消息或跟踪,将显示呼叫流。If you click on a message or trace that is not part of a call flow, the diagram will not appear and a status message appears at the bottom of Snooper stating “This message is not eligible for callfow”. Choose another message or trace and the call flow will appear if the message or trace is part of a call flow.

  4. 在消息或跟踪行间移动,并注意呼叫流程图是否更新或更改为显示新图。Move through the Messages or the Trace lines and note whether the call flow diagram updates or changes to display a new diagram.

  5. 在元素上悬停可获得有关呼叫消息、终结点和其他组件的信息。Hover over elements to get information about call messages, endpoints, and other components.