It's all about the answers!

Ask a question

Is there a way to break down application logs into smaller units in Websphere Application server for CLM apps ?


anup Gaur (1392144) | asked Oct 13 '15, 10:32 a.m.
edited Oct 13 '15, 12:08 p.m. by Patrick Remington (2013)
 We are setting up a CLM 5.0.2 server with WAS 8.5. The application logs like jts.log, ccm.log etc can grow to large sizes depending on errors etc. Also these files keep getting appended with messages. Is there a way to reset the logs based on date or size. Like if the file size grows bigger than 5 mb (example) it should start with a new file with name like ccm_2.log etc. This is implemented in WAS already for stdout errors. We don't want to use stopping of the server to reset / clean / delete the log files.

Any input is appreciated.

Thank you.

Comments
Patrick Remington commented Oct 13 '15, 12:01 p.m.
FORUM MODERATOR / JAZZ DEVELOPER

It might also be helpful to check out the help topic at http://www-01.ibm.com/support/knowledgecenter/SSCP65_5.0.2/com.ibm.jazz.repository.web.admin.doc/topics/t_customizing_log_file.html.  It describes how to manage the size of the log files.


anup Gaur commented Oct 14 '15, 2:18 a.m.

 Thanks a lot Patrick!!

Accepted answer


permanent link
Roberto Sanchez Herrera (2862) | answered Oct 13 '15, 11:20 a.m.
Hello,
Maybe this can help you, specially the "Appenders" section, where the MaxFileSize and MaxBackupIndex properties are described. https://jazz.net/wiki/bin/view/Deployment/ManipulatingCLMLog4j

Each product has its own log4j.property file, located in server/conf/<product>  (e.g. server/conf/jts)

anup Gaur selected this answer as the correct answer

Your answer


Register or to post your answer.