Logback with logstash encoder, custom ValueMaskSupplier #983
Unanswered
charu-jain-sapient
asked this question in
Q&A
Replies: 1 comment
-
@philsttr : Requesting your help here. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I want my logs to appear in JSON format. Hence have used logback-logstash-encoder for logging purposes.
I am able to implement most of my usecases except the masking one.
The description given in https://github.com/logfellow/logstash-logback-encoder#masking lacks examples of how to do custom implementation of ValueMaskSupplier and ValueMasker's
Can anyone points me to some examples which helps me to understand it better.
Also, I have 2 more queries:
in my application.properties, configuration looks like:
Now how could i access it below in ${maskPattern}, as its not able to retrieve value:
Can anyone helps me to understand how can I achieve this usecase as I didn't get any online example to create a custom MaskingJsonGeneratorDecorator.
Please help.
Beta Was this translation helpful? Give feedback.
All reactions