Skip to content
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

New replace_values Remap function #5783

Closed
1 task
binarylogic opened this issue Jan 1, 2021 · 1 comment
Closed
1 task

New replace_values Remap function #5783

binarylogic opened this issue Jan 1, 2021 · 1 comment
Labels
domain: vrl Anything related to the Vector Remap Language needs: approval Needs review & approval before work can begin. type: feature A value-adding code addition that introduce new functionality. vrl: stdlib changes to VRL's standard library.

Comments

@binarylogic
Copy link
Contributor

binarylogic commented Jan 1, 2021

Blocked in #5785. Like #5377, but for values instead of keys. Please see #5377 (comment), since this should be an event-level function:

Example

Given this event:

{
	"payment": {
		"number": "4485216652919430"
	}
}

And this Remap expression:

redact_values(redactor = "full", patterns = ['credit_card'])

(see the redact function)

The following event would be produced:

{
	"payment": {
		"number": "****"
	}
}

Requirements

  • The arguments should match the redact function.
@binarylogic binarylogic added type: feature A value-adding code addition that introduce new functionality. domain: vrl Anything related to the Vector Remap Language labels Jan 1, 2021
@binarylogic binarylogic added this to the 2021-01-04 Xenomass Well milestone Jan 1, 2021
@binarylogic binarylogic removed this from the 2021-01-04 Xenomass Well milestone Jan 13, 2021
@binarylogic binarylogic added the needs: approval Needs review & approval before work can begin. label Feb 21, 2021
@JeanMertz JeanMertz added the vrl: stdlib changes to VRL's standard library. label Jun 7, 2022
@jszwedko
Copy link
Member

jszwedko commented Aug 5, 2022

Closing since this is supported by VRL iteration now.

@jszwedko jszwedko closed this as completed Aug 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain: vrl Anything related to the Vector Remap Language needs: approval Needs review & approval before work can begin. type: feature A value-adding code addition that introduce new functionality. vrl: stdlib changes to VRL's standard library.
Projects
None yet
Development

No branches or pull requests

3 participants