Configuring service logging

The Spotfire Statistics Services service generates logs containing information you can use to troubleshoot. You can set logging to different levels.

Spotfire Statistics Services uses log4j2 (http://https://logging.apache.org/log4j/2.x/) as the primary logging mechanism for the service. The log files roll over, but by default only three are kept. (This default is configurable).
Note: Other log files in SPSERVER_HOME/tomcat/logs occasionally generate Spotfire Statistics Services-related information but, in general, most information is written to <servicename>Server.log.

Prerequisites

You must have administrative access to the Spotfire Statistics Services installation to change the log level file.

Procedure

  1. Browse to the directory <SPSERVER_HOME>/conf.

    For a cluster installation, navigate to <SPSERVER_SHARE>/conf.

  2. Using a text editor, open for editing the file log4j2.xml.
  3. Locate the section <Root level="INFO">
  4. Change the entry for "INFO" to the level of logging needed.
    Log Threshold Description
    "DEBUG" Troubleshoot or debug.
    "INFO" Determine only if the server is healthy and active. The default.
    "WARN" Determine only for a potential issue.
    "ERROR" Investigate only when an issue has occurred.
    "FATAL" Investigate only when a catastrophic event has occurred.
    Note: For assistance using any of the appenders, contact TIBCO Support.
Related concepts