Configure HTTP request logging
Extended xConnect logging can track HTTP requests and responses to xConnect. It is disabled by default.
Enable HTTP request logging
To enable HTTP request logging:
-
Enable the file
\App_Data\Config\Sitecore\CoreServices\sc.XConnect.RequestLogging.Web.Host.xml.disabledby renaming the file to\App_Data\Config\Sitecore\CoreServices\sc.XConnect.RequestLogging.Web.Host.xml.
HTTP request log output example
The log output contains a request (method, URI, HTTP headers, request content) and a response (URI, status code, HTTP headers, and content). You can match requests and responses with the Id field.
Change the log details for HTTP request logging
It is possible to change the log details for HTTP request logging. You can choose one of the following values:
-
OnlyRequest(log the request and response without headers and content). -
RequestWithHeaders(log the request and response headers without content information). -
Full(log all the information from the request and response).
The detail of HTTP request logs is set to Full by default.
To change the log details:
-
Open the config file
\App_Data\Config\Sitecore\CoreServices\sc.XConnect.RequestLogging.Web.Host.xmland modify the value of theSettings/Sitecore/XConnect/Services/HttpRequestLoggingConfiguration/Options/HttpRequestAndResponseLogLevelnode.