Setting the action log interval

If you set the Spotfire Server configuration to write an action log to a database or a file, then the log is updated on a daily basis, by default. You can change the interval from daily by editing the log4j2 configuration file.

Log files are not removed automatically, and changing the interval can affect the amount of space required by the files or in the database. Be prepared to manage the space requirements.

Prerequisites

You must have administrative credentials for Spotfire Server.

Before editing the log4j2 configuration file, make a backup copy.

Procedure

  1. On the computer running Spotfire Server, open the following file in a text editor or an XML editor: <installation dir>/tomcat/spotfire-config/log4j2.xml.
  2. Find the appender section specifying <RollingFile name="actionlog"...>
  3. Edit the filePattern entry to specify a different interval.
  4. Save and close the file.
  5. Restart the server service.

Result

Any action logs are written at the new interval.