How to change ADS log file size
book
Article ID: KB0082859
calendar_today
Updated On:
TIBCO Data Virtualization
ALL VERSIONS
Show More
Show Less
Description
How to change ADS log file size
Issue/Introduction
How to change ADS log file size
Resolution
The behavior is described in <ADS_INSTALL_DIR>/conf/server/log4j.properties with the following entries: log4j.appender.MAIN.layout=org.apache.log4j.PatternLayout log4j.appender.MAIN.layout.ConversionPattern=%p [%t] %d{yyyy-MM-dd HH:mm:ss.SSS Z} %c{1} - %m%n log4j.appender.MAIN=org.apache.log4j.RollingFileAppender log4j.appender.MAIN.File=D:/Composite/ADS_620/logs/cs_server.log log4j.appender.MAIN.MaxFileSize=10000KB log4j.appender.MAIN.MaxBackupIndex=10 To Increase the number of log files for the <ADS_INSTALL_DIR >\logs\cs_server.log: You will need to modify the following lines in the <ADS_INSTALL_DIR >\server\conf\log4j.properties file : log4j.appender.MAIN.MaxFileSize=10000KB log4j.appender.MAIN.MaxBackupIndex=10 Parameter Type Required Default Description MaxFileSize string No 10M Maximum allowed file size (in bytes) before rolling over. Suffixes "KB", "MB" and "GB" are allowed. 10KB = 10240 bytes, etc. MaxBackupIndex integer No 1 Maximum number of backup files to keep. For the other log files they have corresponding MaxFileSize and MaxBackupIndex as mentioned below which can be changed as per your requirement: log4j.appender.BUNDLE.MaxFileSize=10000KB log4j.appender.EVENTS.MaxFileSize=10000KB log4j.appender.TASK.MaxFileSize=10000KB log4j.appender.CLIENT.MaxFileSize=10000KB log4j.appender.CLUSTER.MaxFileSize=10000KB log4j.appender.DATASOURCE.MaxFileSize=10000KB log4j.appender.STATUS.MaxFileSize=10000KB log4j.appender.METADATA.MaxFileSize=10000KB log4j.appender.FILECACHE.MaxFileSize=10000KB log4j.appender.CSMONITOR_COLLECTOR.MaxFileSize=10000KB log4j.appender.CSMONITOR_SERVER.MaxFileSize=10000KB log4j.appender.BUNDLE.MaxBackupIndex=10 log4j.appender.EVENTS.MaxBackupIndex=10 log4j.appender.TASK.MaxBackupIndex=10 log4j.appender.CLIENT.MaxBackupIndex=10 log4j.appender.CLUSTER.MaxBackupIndex=10 log4j.appender.DATASOURCE.MaxBackupIndex=10 log4j.appender.STATUS.MaxBackupIndex=10 log4j.appender.METADATA.MaxBackupIndex=10 log4j.appender.FILECACHE.MaxBackupIndex=10 log4j.appender.CSMONITOR_COLLECTOR.MaxBackupIndex=10 log4j.appender.CSMONITOR_SERVER.MaxBackupIndex=10 You will have to restart ADS server for the change to be effected.
Feedback
thumb_up
Yes
thumb_down
No