TIBCO Spotfire® Server and Environment - Installation and Administration

Setting the action log interval

If you configure the Spotfire Server to write an action log to a database or a file, then the log is updated and events are logged when an action is performed. If you write the action log to a file, by default, a new file is created on a daily basis, but you can change this setting by editing the log4j2.xml configuration file.

About this task

Note: In contrast to other log files, action log files are not removed automatically. Instead, a new file is created on a daily basis. Ensure that there is room in the file system by clearing old files on a regular basis.

Before you begin

You must have administrative credentials for Spotfire Server.

Before editing the log4j2.xml 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: <server 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.

Results

Any new action log files are created at the new interval.