You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Peter Podniesinski (Jira)" <ji...@apache.org> on 2020/06/04 18:22:00 UTC

[jira] [Created] (LOG4J2-2862) Add Masking to JsonLayout

Peter Podniesinski created LOG4J2-2862:
------------------------------------------

             Summary: Add Masking to JsonLayout
                 Key: LOG4J2-2862
                 URL: https://issues.apache.org/jira/browse/LOG4J2-2862
             Project: Log4j 2
          Issue Type: New Feature
          Components: Layouts
            Reporter: Peter Podniesinski


Today our team manages our own custom JsonMaskingLayout since we work with NPI data and we need that data to be obfuscated prior to creating a log file.

We would like to use JsonLayout instead of managing our own custom layout. 

Something along the lines of providing a `maskingRegex` option to the JsonLayout and replacing the text with an asterisk would be a good simple start.

 

-----

If there are other alternatives to masking do let me know. So far I am only aware of pattern converters which are great for STD_OUT or custom Layouts.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)