Enabling action logging and system monitoring from the command line

By default, action logging and system monitoring is not enabled. You can enable it from the server command line.

From the command line, running the enable-action-logging command is the first step.

Prerequisites

You must have administrative credentials for Spotfire Server.

Procedure

  1. Log in to the Spotfire Server, and from the Start menu, open a command-line window as administrator.
  2. Browse to <installation dir>\tomcat\bin.
  3. At the command prompt, type the command config config-action-logger, passing in the arguments specifying where to record the logs.
    • To write the action logs to a file, type the following.
      config config-action-logger --file-logging-enabled=true --database-logging-enabled=false
      Important: Log files are not removed automatically. If you enable action logging to write to a file, remember to manage space needs for the resulting log files. By default, log files are written on a daily basis, but the configuration can be changed. See Setting the action log interval for more information.
    • To write the action logs to a database, type the following.
      config config-action-logger --file-logging-enabled=false --database-logging-enabled=true
    • To write the action logs to both a file and a database, type the following.
      config config-action-logger --file-logging-enabled=true --database-logging-enabled=true
    In these examples, other command-line defaults are accepted. For example, the default configuration enables all categories for logging ( categories="all"). To limit the enabled categories, provide a comma-separated list. See Action log categories for a complete list.
    For information about all available options for this command, see config-action-logger.

What to do next