How to change the Tibco Spotfire Web Player and Automation Service default log location to non-default location from version 10.3 and higher?

How to change the Tibco Spotfire Web Player and Automation Service default log location to non-default location from version 10.3 and higher?

book

Article ID: KB0072495

calendar_today

Updated On:

Products Versions
Spotfire Server 10.3 and higher
Spotfire Web Player 10.3 and higher

Description

This KB Article describes steps to reconfigure the TIBCO Spotfire Node manager services log file(s) location to a non-default location for windows OS machines, specifically for Web Player and Automation Services.

Issue/Introduction

This KB Article describes steps to reconfigure the TIBCO Spotfire Node manager services log file(s) location to a non-default location for windows OS machines, specifically for Web Player and Automation Services.

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.
Follow the steps below to change the log file(s) location:
  1. Export the configuration for services(eg- Web Player and Automation Services) using the export-service-config command. Please see the documentation link   https://docs.tibco.com/pub/spotfire_server/latest/doc/html/TIB_sfire_server_tsas_admin_help/server/topics/manually_editing_the_service_configuration_files.html
  2. The export-service-config exports to  <Spotfire Server Install>\tomcat\spotfire-bin\config\root  folder . 
  3. Navigate to the above folder and you will find a file named log4net.config file
  4. Open the log4net.config file in a text editor and replace the value:- "value="..\..\logs\" at all places required in the file with the new path e.g:- "value="C:\tibco\Logs" (it must be absolute path) 
  5. Use the import-Service-config commands to import the configuration and apply the new service configuration either using the UI or using the set-service-config commands. Please check the reference links below for information on how to import-service-config and set-service-config
  6. The Service will be restarted once the new configuration is applied.
  7. All important services worker host logs file like(RequestLog,DocumentCacheLog,Spotfire.dxp.worker.{service_id},Spotfire.dxp.worker.debug.{service_id},querylog etc will now be written to the new folder
  8. Repeat the above steps for other service configurations e.g. if you have a different configuration for each Web player or Automation Services


Note:- Please note service.stdout* files cannot be moved to the new location.

Additional Information

Please follow the KB Article Link below for changing the TERR and PYTHON Services logs location from default to non-default location.

How-to-change-the-Tibco-Spotfire-TERR-and-Python-Service-default-log-location-to-non-default-location-from-version-10-3-and-higher-For-Windows-OS

Doc:- Export and Import Service Configuration(WEB_PLAYER and AUTOMATION_SERVICE) command line argument

https://docs.tibco.com/pub/spotfire_server/latest/doc/html/TIB_sfire_server_tsas_admin_help/server/topics/export-service-config.html
https://docs.tibco.com/pub/spotfire_server/latest/doc/html/TIB_sfire_server_tsas_admin_help/server/topics/import-service-config.html

Set-service-config
https://docs.tibco.com/pub/spotfire_server/latest/doc/html/TIB_sfire_server_tsas_admin_help/server/topics/set-service-config.html