Product:TIBCO Spotfire Server
Versions:10.3 and higher
Summary:
How to change the TIBCO Spotfire Server log files location
Details:
This KB Article describes steps to reconfigure the TIBCO Spotfire Server log file(s) location.
Resolution:
Note:
Versions:10.3 and higher
Summary:
How to change the TIBCO Spotfire Server log files location
Details:
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.
- 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.
- 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