Configuring TDM Portal to write log files to a user-defined file system location

Document ID : KB000010118
Last Modified Date : 14/02/2018
Show Technical Document Details
Introduction:

If the TDM portal is installed to a drive other than "C:", by default the portal log files still get written to "C:\ProgramData\CA\CA Test Data Manager Portal".

This article explains the changes that need to be made so that all the log files that are related to the TDM portal service (including third-party application logs such as Tomcat), are written to a user-defined location.

Environment:
TDM Web Portal 3.6 through 4.0
Instructions:

NOTE: Please take a backup of all the files before modification. Preferably backup the files and copy them to a location outside of the CA Test Data Manager Portal folder (which is located at "C:\Program Files\CA\CA Test Data Manager Portal" by default).

Change or SET the system environment variable CATDMWEB_APPDATA to the path where you want your log files to be written. An example screenshot for doing this through the Windows control panel is shown below:

CATDMWEB_APPDATA env var change.jpg

 

Next, modify following files manually:

 

File Location (Replace C: with your installation location)

Lines to be modified

C:\Program Files\CA\CA Test Data Manager Portal\orientdb\config\orientdb-server-log.properties

 

java.util.logging.FileHandler.pattern= C:/ProgramData/CA/CA Test Data Manager Portal/orientdb/log/orient-server.log

 

C:\Program Files\CA\CA Test Data Manager Portal\service\conf\wrapper.conf

 

-Djava.io.tmpdir= C:/ProgramData/CA/CA Test Data Manager Portal/tomcat/temp

C:\Program Files\CA\CA Test Data Manager Portal\tomcat\conf\logging.properties

1catalina.org.apache.juli.AsyncFileHandler.directory = C:/ProgramData/CA/CA Test Data Manager Portal/tomcat/logs

2localhost.org.apache.juli.AsyncFileHandler.directory = C:/ProgramData/CA/CA Test Data Manager Portal/tomcat/logs

3manager.org.apache.juli.AsyncFileHandler.directory = C:/ProgramData/CA/CA Test Data Manager Portal/tomcat/logs

4host-manager.org.apache.juli.AsyncFileHandler.directory = C:/ProgramData/CA/CA Test Data Manager Portal/tomcat/logs

C:\Program Files\CA\CA Test Data Manager Portal\tomcat\conf\server.xml

<Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true" workDir="C:\ProgramData\CA/CA Test Data Manager Portal/tomcat/work" startStopThreads="0">

 

<Valve className="org.apache.catalina.valves.AccessLogValve" directory="C:\ProgramData\CA/CA Test Data Manager Portal/tomcat/logs" prefix="localhost_access_log" suffix=".txt" pattern="%h %l %u %t &quot;%r&quot; %s %b"/>

 

C:\Program Files\CA\CA Test Data Manager Portal\conf\application.properties

Uncomment tdmweb.publish.folder property and set it to tdmweb.publish.folder=${CATDMWEB_APPDATA}

 

Additional Information:

If you face any issues following these steps, please open a support ticket through https://support.ca.com or by calling CA Customer Care using one of the numbers listed on this page: http://www.ca.com/us/services-support/ca-support/contact-support.html