Configuring the action log web service from the command line

To collect logging from the Spotfire Server and specified services (Spotfire Analyst, Web Player and Automation Services), first enable and configure writing to files or a database, and then enable and configure the action log web service. This task describes configuring the action log web service from the command line.

If you do not configure the action log web service, then only actions performed on Spotfire Server are logged.

Alternatively, you can enable and configure the action log web service from the configuration tool. For more information, see Configuring the action log web service from the configuration tool.

Prerequisites

You must have administrative credentials for Spotfire Server.

You must have completed the following tasks.

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-log-web-service, passing in the arguments specifying the services for which to collect logs. For example, to enable all categories from all hosts, type the following command.
    config config-action-log-web-service --allowedHosts=".*" --categories="all"
    By default, all hosts are allowed and all categories are logged. If you want to reduce the traffic passing between services and the server, replace the default argument values.
    • Specify from which host the server should accept logging requests.
    • Specify which individual services are allowed for logging. Provide a comma-separated list.

      At startup, all configured services check the server for allowed categories. See Action log categories for a complete list.