
Enabling tracing and logging for WebSphere Commerce search
You can enable tracing and logging of WebSphere Commerce search features to help debug server-side issues.
Before you begin
Ensure that you have completed the following tasks:
Procedure
- You can enable the trace for WebSphere Commerce search
features by specifying the following trace string in the WebSphere
Application Server administration console.On the WebSphere Commerce server:
com.ibm.commerce.catalog.*=all:com.ibm.commerce.foundation.*=all:com.ibm.commerce.search.*=all
On the WebSphere Commerce search server:
com.ibm.commerce.foundation.*=all: com.ibm.commerce.rest.*=all: org.apache.solr.*=all: org.apache.wink.*=all: com.ibm.commerce.solr.*=all
This trace string enables traces for WebSphere Commerce search that can be used for troubleshooting issues.
- If you need more information, you can enable the following
additional traces to help troubleshoot issues:
- For general Solr-side troubleshooting, enable the following
traces:
org.apache.solr.*=all org.apache.commons.httpclient.*=all com.ibm.commerce.solr.*=all
For web content troubleshooting, enable the following traces:
org.apache.droids.*=all com.ibm.commerce.search.crawler.*=all
For price index troubleshooting, enable the following traces:
com.ibm.commerce.foundation.dataimport.priceindex.*=finest com.ibm.commerce.price.*=finest com.ibm.websphere.commerce.WC_ORDER
- For general Solr-side troubleshooting, enable the following
traces:
- The log file is located in the following directory:
WAS_installdir/profiles/instance_name/logs/server1
WAS_userdir/profiles/instance_name/logs/server1
WCDE_installdir/wasprofiles/logs/server1
- Logging properties exist for the search utilities. You
can get more logging information by updating the logging level from
INFO
toFINEST
:# Default global logging level, INFO .level=FINEST
# Default global logging level, INFO com.ibm.commerce.level=FINEST
For the following utilities and log files:
Setup search index:- WC_installdir/components/foundation/subcomponents/search/config/logging.properties for the local machine.
- working_dir/search/config/logging.properties for the remote machine.
Search preprocessor:WCDE_installdir\workspace\WC\xml\config\dataimport\logging.properties
WC_installdir/instances/instance_name/xml/config/dataimport/logging.properties
WC_instance_root/xml/config/dataimport/logging.properties
Search build index:WCDE_installdir\workspaces\WC\xml\config\dataimport\buildindex-logging.properties
WC_installdir/components/foundation/wc.ear/xml/config/dataimport/buildindex-logging.properties
WC_instance_root/xml/config/dataimport/buildindex-logging.properties
Index prop:
WCDE_installdir\workspaces\WC\xml\config\dataimport\indexprop-logging.properties
WC_installdir/components/foundation/wc.ear/xml/config/dataimport/indexprop-logging.properties
WC_instance_root/xml/config/dataimport/indexprop-logging.properties
Search migration:
WCDE_installdir\components\foundation\subcomponents\search\config\migrate-solr-search-logging.properties
WC_eardir\components\foundation\subcomponents\search\config\migrate-solr-search-logging.properties
Search facet migration:
WCDE_installdir\components\foundation\subcomponents\search\config\migrate-facet-logging.properties
WC_eardir\components\foundation\subcomponents\search\config\migrate-facet-logging.properties
Search replication configuration:
WCDE_installdir\components\foundation\subcomponents\search\config\configure-solr-replication-logging.properties
WC_eardir\components\foundation\subcomponents\search\config\configure-solr-replication-logging.properties
Search price index:
WCDE_installdir\workspace\WC\xml\config\dataimport\calculateprice-logging.properties
WC_installdir/instances/instance_name/xml/config/dataimport/calculateprice-logging.properties
WC_instance_root/xml/config/dataimport/calculateprice-logging.properties