You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Volkan Yazici (Jira)" <ji...@apache.org> on 2022/01/17 22:30:00 UTC

[jira] [Comment Edited] (LOG4J2-2862) Add Masking to JsonTemplateLayout

    [ https://issues.apache.org/jira/browse/LOG4J2-2862?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17477463#comment-17477463 ] 

Volkan Yazici edited comment on LOG4J2-2862 at 1/17/22, 10:29 PM:
------------------------------------------------------------------

You can introduce this custom masking feature to the JSON Template Layout by [extending it via plugins|https://logging.apache.org/log4j/2.x/manual/json-template-layout.html#extending-event-resolvers].


was (Author: vy):
You can introduce this masking feature to the JSON Template Layout by [extending it via plugins|https://logging.apache.org/log4j/2.x/manual/json-template-layout.html#extending-event-resolvers].

> Add Masking to JsonTemplateLayout
> ---------------------------------
>
>                 Key: LOG4J2-2862
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-2862
>             Project: Log4j 2
>          Issue Type: New Feature
>          Components: JsonTemplateLayout, Layouts
>            Reporter: Peter Podniesinski
>            Priority: Minor
>
> 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.20.1#820001)