[ https://issues.apache.org/jira/browse/LOG4J2-696?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Piotr Karwasz closed LOG4J2-696. -------------------------------- Resolution: Duplicate I am closing this issue and moving it to GitHub: [#3086|https://github.com/apache/logging-log4j2/issues/3086] > RegexFilter does not match multiline log messages > ------------------------------------------------- > > Key: LOG4J2-696 > URL: https://issues.apache.org/jira/browse/LOG4J2-696 > Project: Log4j 2 > Issue Type: Bug > Components: Filters > Affects Versions: 2.0-rc2 > Reporter: phil wray > Assignee: Ralph Goers > Priority: Major > Attachments: RegexFilterTest.java > > > RegexFilter is constructed with a pattern, but pattern does not support > multiline matches, so impossible for the filter to ever match a multiline msg. > Should maybe provide a multline="x attribute whichi should default to true > and result in the patter being compiled as such: > Pattern pattern = Pattern.compile(".*line.*", Pattern.DOTALL); > See attached UnitTest illustrating failure -- This message was sent by Atlassian Jira (v8.20.10#820010)