How to change the Tibco Spotfire TERR and Python Service default log location to non-default location from version 10.3 and higher

How to change the Tibco Spotfire TERR and Python Service default log location to non-default location from version 10.3 and higher

book

Article ID: KB0072343

calendar_today

Updated On:

Products Versions
Spotfire Service for Python 10.3 and higher

Description

This KB Article describes steps to reconfigure the TIBCO Spotfire TERR and Pyhton Services log file(s) location to a non-default location for windows OS machines 

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 TERR and Python service.

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 the TERR/PYTHON service or if a new TERR/PYTHON service is installed, you have to manually perform the changes again.
Follow the steps below to change the log file(s) location:
  1. Open <TSS installation folder>\tsnm\x.x.x\nm\services . Inside this folder, it will list the services named(Terr Service Windows-{service_id} and Python service window-{service_id}) which are installed on the respective node manager
  2. Navigate to the service name folder for eg. (TERR Service Window appended with service_id).
  3. Open the lo4j2.xml file in a text editor and replace the property tag value:- "value="..\..\logs\" at all places required in the file with the new path eg:- C:\tibco\Logs(it must be absolute path) . Please find the property tag for which you need to specify your destination path e.g. <Property name="basedir">C:\tibco\Logs</Property>
  4. Similarly, if there are more services installed, navigate through the folder and apply the same step as above
  5. Restart the service.
  6. Repeat the above steps for other service configurations e.g. if you have a different configuration for each Python and TERR service.
Logs will be generated in a new location.