7019352: Changing the Location of Retain Logs

1. Ensure no archive jobs are running and stop Tomcat.

2. Configure Tomcat’s default log location.

a) Click on Start.

b) In the “Search programs and files” box, type: configure tomcat

c) Click on Configure Tomcat

d) Click on the Logging tab.

e) Type in the new log path using the standard Windows path utilizing backslashes “” (i.e., d:retainlogs) or browse to it by clicking on the button with “…” on it.

f) Click OK.

2. Make a backup copy of the existing log4j.properties file.

3. Navigate to thefollowing areas to change the log locations for Retain:

·[drive]:Program FilesBeginfiniteRetainRetainServerWEB-INFclasses

·[drive]:Program FilesBeginfiniteRetainRetainWorkerWEB-INFclasses

·[drive]:Program FilesBeginfiniteRetainRetainStatsServerWEB-INFclasses

·[drive]:Program FilesBeginfiniteRetainRetainStubServerWEB-INFclasses

·[drive]:Program FilesBeginfiniteRetainRetainWebUIWEB-INFclasses

·[drive]:Program FilesBeginfiniteRetainRetainRouterWEB-INFclasses

·[drive]:Program FilesBeginfiniteRetain RetainServerWEB-INF solrweb WEB-INFclasses

a) Edit the log4j.properties located at each of the locations above.

b) Do a search on ${catalina.base}/logs/ and replace it with [desired path using forward slashes “/”]/logs/ (i.e., D:/retain/logs/). Be sure that the ${catalina.base} is removed and replaced with the newlocation.

An easy way to do this is touse the text editor’s (i.e., Notepad”) “Replace” function.

The line should look something likethis after it is replaced: log4j.appender.R.File=D:/retain/logs

4. Navigate to [drive]:Program FilesBeginfiniteRetaintomcat[8]conf

a) Edit the logging.properties file.

b) Do a search on ${catalina.base}/logs/ and replace it with [desired path using forward slashes “/”]/logs/ (i.e., D:/retain/logs/). Be sure that the ${catalina.base} is removed and replaced with the newlocation.

An easy way to do this is touse the text editor’s (i.e., Notepad”) “Replace” function.

The line should look something likethis after it is replaced: log4j.appender.R.File=D:/retain/logs

5. Navigate to [drive]:Program FilesBeginfiniteRetaintomcat[8]conf

a) Editthe server.xmlfile.

b) Do a search for: localhost_access_log (Will be found near thebottom of the file). Just above the line is the line that reads: <ValveclassName=org.apache.catalina.valves.AccessLogValve”directory=”logs”

c) Change the “logs” to the desired path using forward slashes(“/”).

Related:

Leave a Reply