Question

1
Replies
50
Views
Close popover
Geetha Subramanian (GeethaS9674)
Radial Inc

Radial Inc
US
GeethaS9674 Member since 2017 2 posts
Radial Inc
Posted: November 20, 2018
Last activity: November 25, 2018
Closed

PegaRULES file rolling over too often than expected

Hi

We recently upgraded to 7.3.1 from 7.2.2

We are trying to add date and time to the filePattern as follows. We want the log file to roll over once max size of file reaches 30MB and when it rolls over we want to append date and time as we will have multiple files for the same date. But when we do below. Its rolling over too often instead of based on size. It seems to happen every minute. Is it because of the filePattern including time as well (filePattern="${sys:pega.logdir}/PegaRULES-%d{MM-dd-yyyy_HH-mm-ss}.log.gz)

Please suggest

<RollingRandomAccessFile name="PEGA" fileName="${sys:pega.logdir}/PegaRULES.log" filePattern="${sys:pega.logdir}/PegaRULES-%d{MM-dd-yyyy_HH-mm-ss}.log.gz">

<PatternLayout>

<Pattern>%d [%20.20t] [%10.10X{pegathread}] [%20.20X{tenantid}] [%20.20X{app}] (%30.30c{3}) %-5p %X{stack} %X{userid} - %m%n</Pattern>

</PatternLayout>

<Filters>

<!--Deny message logged under ALERT log level-->

<ThresholdFilter level="ALERT" onMatch="DENY" onMismatch="NEUTRAL"/>

</Filters>

<Policies>

<TimeBasedTriggeringPolicy />

<SizeBasedTriggeringPolicy size="30 MB"/>

</Policies>

<DefaultRolloverStrategy max="20"/>

</RollingRandomAccessFile>

***Edited by Moderator Marissa to update platform capability tags****

Low-Code App Development System Administration
Moderation Team has archived post,
Close popover This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.