-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace pipeline stage #2033
Comments
Can we make this substage to |
Could you show an example? |
It would be same as the one you have shown above. Just that instead of defining one more stage we can use the existing Default
|
extracted[name] = match[i] |
template
stage itself sets the extracted
so we can ignore the above one from regex
stage
Is your feature request related to a problem? Please describe.
Currently it's difficult to replace password or unwanted data in a log line.
This is mainly because you have to matches everything else than what you want to replace in a regexp stage and use that in a template stage. Quite difficult to get right.
Describe the solution you'd like
I'm suggesting we add a new pipeline stages named
replace
that will replace matches from a regex with string.Alternatively replacement could be a template like template stage for more complex scenario.
Additional context
Couple of request in slack for this.
/cc @slim-bean @owen-d @sandeepsukhani WDYT ?
The text was updated successfully, but these errors were encountered: