Question
Radial Inc
US
Last activity: 25 Nov 2018 13:10 EST
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> |
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****