KB Article #178909

How to change the 'rotation time' for the Transaction event logs.

Problem How to change the 'rotation time' for the Transaction event logs.

  • Event log files roll over every five min, why?
  • How to change event log file rollover time?

Resolution


By default the rollover time for the Transaction event logs is set to 5 minutes.
This is not a configurable option via the UI. Every 5 minutes the files are rotated.


However you can change that time range.

  • In 7.6.2 (SP1) or later, update apigateway/system/conf/loggers/eventLog.xml.
  • In past versions like 7.5.x, update the "log4j2.xml" file which is located
    in each instance's conf directory (groups/group-2/instance-1/conf/log4j2.xml).

For both file locations:
Change the interval in 'TimeBasedTriggeringPolicy' to the value you want (suggested you use 5 min increments.)


Also, if you want to change the file names for these logs you can change them
under the "RollingRandomAccessFile" element. Though caution and testing is suggested, as that change could affect Metrics collection.