Question

1
Replies
188
Views
AkashS1762 Member since 2016 26 posts
VirtusaPolaris
Posted: 1 year ago
Last activity: 1 year 10 months ago
Closed

RegexFilter does not match multiline log messages

After upgrade from Pega Marketing 7.2.1 to 7.3.1, updated log4j2.xml for custom loggers.

<RollingRandomAccessFile name="PEGA" fileName="/somepath/PegaRULES.log" filePattern="/somepath/PegaRULES-%d{MM-dd-yyyy}-%i.log.gz">
<PatternLayout>
<Pattern>some pattern</Pattern>
</PatternLayout>
<Filters>
<!--Deny message logged under ALERT log level-->
<ThresholdFilter level="ALERT" onMatch="DENY" onMismatch="NEUTRAL"/>
<RegexFilter regex=".*ABC_Logger.*" onMatch="DENY" onMismatch="NEUTRAL"/>
</Filters>
If the log message contains "\n", the message is going to PegaRULES.log instead of custome logger. It works fine if there is no line break.
Pega Marketing Low-Code App Development Low-Code App Development Upgrades
Moderation Team has archived post
Share this page LinkedIn