Gateway Server logs not rolling over

Gateway Server logs not rolling over

book

Article ID: KB0070907

calendar_today

Updated On:

Products Versions
TIBCO BusinessConnect 7.3.X, 7.4.0

Description

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

Issue/Introduction

The BusinessConnect Gateway Server log do not roll over

Environment

all platforms

Resolution

To correct the situation, open the $TIBCO_BC_VERSION/lib/gs/log4j2.xml file on the gateway server machine, and look for this xml block:
 

      <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" />

Restarting the GS engine will resolve the issue.