EPA and Java logs rotation and retention


Article ID: 105777


Updated On:


CA Application Performance Management Agent (APM / Wily / Introscope) INTROSCOPE


This article intent to explain and help to adjust logs rotation and retention.


Any Application Performance Management release


The Agent and the Enterprise Manager work the same way with log rolling.

So to clear up some points:

1. Log rolling only takes into account the size of each log file (log4j.appender.logfile.MaxFileSize) and the # of log files (log4j.appender.logfile.MaxBackupIndex

2. The log file names will look like:




3. In your attachment, this snippet appears to be the name of the log files but appended with dates and times.  With this type of format, there isn't any way to match up a log file name to do log rotation, therefore each time the log gets to a certain size, it creates a new log file.

-rw-r--r-- 1 root   root    203673 Jun 20 07:53 IntroscopeAgent.20180620-075326.log

-rw-r--r-- 1 root   root    897489 Jun 20 07:53 AutoProbe.20180620-075322.log

-rw-r--r-- 1 root   root    203673 Jun 20 07:53 IntroscopeAgent.20180620-075341.log

-rw-r--r-- 1 root   root    897489 Jun 20 07:53 AutoProbe.20180620-075337.log

-rw-r--r-- 1 root   root    203673 Jun 20 07:54 IntroscopeAgent.20180620-075356.log

-rw-r--r-- 1 root   root    897489 Jun 20 07:54 AutoProbe.20180620-075352.log