Configure Solr query logging
This logging feature lets you track Solr queries in xConnect logs. It is disabled by default.
Enable Solr query logging
To enable Solr query logging:
-
Enable the file
\App_Data\Config\Sitecore\CollectionSearch\sc.Xdb.Collection.IndexReader.SOLR.Logging.xml.disabledby renaming the file to\App_Data\Config\Sitecore\CollectionSearch\sc.Xdb.Collection.IndexReader.SOLR.Logging.xml.
Solr query log output example
The Solr query log output contains log entries for each query. Log records consist of the query transcript and the sorting used. For example:
Change the log level
You can configure the log level for Solr query logging. The extended XConnect Solr query log entry level is Trace by default.
To change the log level:
-
Open the config file
\App_Data\Config\Sitecore\CollectionSearch\sc.Xdb.Collection.IndexReader.SOLR.Logging.xmland modify the value of theSettings/Sitecore/XConnect/CollectionSearch/Services/Solr.SolrReaderSettings/Options/ExtendedLogLevelnode toTrace,Debug, orInformation.