Question

1
Replies
287
Views
Close popover
Akash Sinha (AkashS1762)
VirtusaPolaris

VirtusaPolaris
IN
AkashS1762 Member since 2016 28 posts
VirtusaPolaris
Posted: November 15, 2018
Last activity: November 15, 2018
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 System Administration Upgrades
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.