SAP Knowledge Base Article - Preview

3203391 - Logs cluttered with meaningless Solr logs

Symptom

In SAP Commerce, the default level of logging for Solr queries is INFO, which logs every single request in <HYBRIS_HOME_DIR>/hybris/log/solr/instances/default/solr.log and Kibana takes it from there.
This can be a problem, because Kibana logs get cluttered with meaningless logs depending on the point-of-view of who handles them and can also affect the capacity to troubleshoot other issues.

In onprem, to change the default level of logging for Solr queries:

  1. Locate the file <HYBRIS_HOME_DIR>/hybris/config/solr/instances/default/log4j2.xml
  2. Add this line: <Logger name="org.apache.solr.core.SolrCore.Request" level="warn" additivity="false"/>
  3. Restart the server
  4. After making this change, queries are not logged in <HYBRIS_HOME_DIR>/hybris/log/solr/instances/default/solr.log and the level of SolrCore > Request is WARN


Read more...

Environment

SAP Commerce Cloud

Product

SAP Commerce Cloud all versions

Keywords

log, logs, warn, info, solr, log4j2.xml , KBA , CEC-SCC-CLA-DEP , Deployments , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.