Skip to content

Comments

Added support for pattern_regex_suffix#12

Open
TejasKM wants to merge 1 commit intofluent:mainfrom
TejasKM:new_suffix_feature
Open

Added support for pattern_regex_suffix#12
TejasKM wants to merge 1 commit intofluent:mainfrom
TejasKM:new_suffix_feature

Conversation

@TejasKM
Copy link
Contributor

@TejasKM TejasKM commented Dec 21, 2022

Currently the plugin supports adding pattern_regex_prefix to the masked string. This feature adds support for pattern_regex_suffix.
Defines the suffix used for masking vales. (default: Regex)

<rule>
       keys log
       pattern_regex /admin/
       pattern_regex_prefix START
       pattern_regex_suffix END
</rule>

Example log
Logged in user admin

Masked value with both prefix and suffix
Logged in user START_6ecdc3e2165612ceea27f78c5958cba2c061ad6524df1f9854d8d2c52c51264a_END

- This feature adds support for pattern_regex_suffix which will append to the masked string

Signed-off-by: TejasKM <tejas.gecg@gmail.com>
@kubotat
Copy link
Contributor

kubotat commented Jan 11, 2023

@TejasKM Thanks for the contribution. I'm curious the reason why you need not only prefix but also suffix. Are there any specific use cases?

@TejasKM
Copy link
Contributor Author

TejasKM commented Oct 13, 2023

Hi @kubotat
Can you please approve this PR ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants