Products | Versions |
---|---|
TIBCO BusinessConnect | 7.3.X, 7.4.0 |
The BusinessConnect Gateway Server (GS) logs do not rollover correctly. Instead of archiving the content when the size threshold is reached, the log gets deleted and recreated with new entries.
This is caused by an incorrect entry in the Gateway Server log4j2.xml file, which is located in the $TIBCO_BC_VERSION/lib/gs directory
<RollingFile name="Rollingfile" filename="${env:BC_GS_HOME}/logs/gs.log"
filepattern="%d{MM-dd-yy-HH-mm-ss}-%i.log">
<PatternLayout pattern="[%d\{ISO8601} (%-5p)] %m%n" />
Modify it to look like this:
<RollingFile name="Rollingfile" filename="${env:BC_GS_HOME}/logs/gs.log"
filepattern="${env:BC_GS_HOME}/logs/gs-%i.log">
<PatternLayout pattern="[%d\{ISO8601} (%-5p)] %m%n" />