api-manager
api-manager copied to clipboard
[APIM 4.1.0] Using replace pattern and replacer in log masking
Description
The 'pertinent.replace_pattern' and 'pertinent.replacer' in the following log masking configs[1] do not work as expected in APIM 4.1.0.
[masking_pattern.properties]
"ACCT_ID" = '(?<=accountId\':)(.*)(?=\')'
"ACCT_ID.replace_pattern"='(.?).(?=.*)'
"ACCT_ID.replacer"="*"
[1] https://apim.docs.wso2.com/en/4.1.0/administer/logging-and-monitoring/logging/masking-sensitive-information-in-logs/#the-masking-pattern-file
Steps to Reproduce
APIM 4.1.0
Affected Component
APIM
Version
4.1.0
Environment Details (with versions)
No response
Relevant Log Output
No response
Related Issues
No response
Suggested Labels
No response