How to collect basic information about xConnect


Description

xConnect is the service layer between the xDB and a trusted client used to read, write, and search the xDB data. It can operate in one of the following modes, depending on the topology in use:

Use the solution that most closely resembles the applied topology.

Minimum Logging Level

xConnect instances and services use the Serilog library to write logs with different minimum logging levels depending on the applied environment.

Note:

Log levels are assigned separately both for instances and services.

If there is a need to change the logging level, for example, to Information, configure the section <MinimumLevel> in the following way:

  1. Navigate to the corresponding paths:
    • \App_data\config\sitecore\CoreServices\sc.Serilog.xml
    • \App_data\jobs\continuous\SERVICE-NAME\App_data\Config\Sitecore\CoreServices\sc.Serilog.xml
  2. Open the sc.Serilog.xml file.
  3. Set the logging level to Information as follows:
    <MinimumLevel>
        <Default>Information</Default>    
    </MinimumLevel>
  4. Save and close the file.

Solution For On-Premise

Solution For Azure Web Apps

App Services (instances)
To access deployed application files, use the approach specified in the section Solution for Sitecore on-premise. Use FTP as one of the fastest ways to access files in Azure Web Apps (see the section Accessing Sitecore Configs and other files via FTP in this article).

WebJobs (services)
Azure WebJobs are used for running IndexWorker, AutomationEngine, and ProcessingEngine services for Cloud environments. Service files are copied to the D:\local\Temp\jobs\continuous folder and run from this directory.

To collect log files for xConnect services run as WebJobs:

  1. in the Azure Portal, find the related xConnect App Service.
  2. using KUDU, navigate to the App_data folder for the corresponding WebJob as follows: D:\local\Temp\jobs\continuous\JOB-NAME\RANDOM-NAME\App_data.
  3. Click the Download button to the left of the Logs folder.

The collected data can be uploaded to the Sitecore Support SharePoint Storage.