How to change the TIBCO Spotfire Server log files location from version 10.3 and higher

How to change the TIBCO Spotfire Server log files location from version 10.3 and higher

book

Article ID: KB0072496

calendar_today

Updated On:

Products Versions
Spotfire Server 10.3 and higher

Description

This KB Article describes steps to reconfigure the TIBCO Spotfire Server log file(s) location.

Resolution

Note
  • Take a backup of any of the below-mentioned files before making any changes.
  • Please remember you need to specify the absolute path of the new location.
  • After the Upgrade of Spotfire Version, the log4j2-custom.xml is copied to a newer version which will contain a new location however service.bat files did not get copied as it depends upon the Java version for that new upgraded version.
Follow the steps below to change the log file(s) location for Spotfire Server logs location :
  • Stop the Spotfire Server Service
  • Open <TSS installation folder>\tomcat\spotfire-config\log4j2-custom.xml in a text editor.Search for "log.dir" string and replace its <property-value> which currently will be "logs" with the new location ( for e.g. C:\tibco\Logs). Save the file.
                   e.g. <Properties><Property name="log.dir">logs</Property> to <Properties><Property name="log.dir">C:\tibco\Logs</Property>
  • Save the file
  • If you are not running Spotfire server as a windows service, All files are now written to a new folder except three files tss1130-stderr.date.log tss1130-stdout.date.log,common-daemons.log file
  • If you are running Spotfire Server as a Windows service, then the above three files can be copied to a new location by updating the service.bat file
  • Open "<TSS installation folder>\tomcat\bin\service.bat" file in a text editor. Search for the string "--LogPath" ( two occurrences) and replace the value with the new location.
  • Save the file.
  • Open a command prompt console window and browse to the <TSS installation folder>\tomcat\bin\> folder.
  • Execute the following two commands to re-install the Spotfire Server service 
  • service.bat remove and then service.bat install
  • Restart the service
After restart, All logs related to the server will be located in a new location.

Issue/Introduction

How to change the TIBCO Spotfire Server log files location

Additional Information

Please follow the below KB 000045910 article link for changing the node manager log files
https://support.tibco.com/s/article/How-to-Change-Tibco-Spotfire-Node-Manager-log-files-location-to-non-default-location-from-version11-3-and-higher-For-Windows-OS

Documentation:
https://docs.tibco.com/pub/spotfire_server/latest/doc/html/TIB_sfire_server_tsas_admin_help/server/topics/changing_the_default_location_of_server_logs.html