-
Notifications
You must be signed in to change notification settings - Fork 202
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
Exclude keys #3055
Exclude keys #3055
Conversation
Signed-off-by: Kat Shen <[email protected]>
Signed-off-by: Kat Shen <[email protected]>
Signed-off-by: Kat Shen <[email protected]>
Signed-off-by: Kat Shen <[email protected]>
Signed-off-by: Kat Shen <[email protected]>
Signed-off-by: Kat Shen <[email protected]>
Signed-off-by: Kat Shen <[email protected]>
Signed-off-by: Kat Shen <[email protected]>
...r/src/main/java/org/opensearch/dataprepper/plugins/processor/keyvalue/KeyValueProcessor.java
Outdated
Show resolved
Hide resolved
...r/src/main/java/org/opensearch/dataprepper/plugins/processor/keyvalue/KeyValueProcessor.java
Outdated
Show resolved
Hide resolved
.../test/java/org/opensearch/dataprepper/plugins/processor/keyvalue/KeyValueProcessorTests.java
Show resolved
Hide resolved
…est, modify include/exclude null test to default test Signed-off-by: Kat Shen <[email protected]>
...r/src/main/java/org/opensearch/dataprepper/plugins/processor/keyvalue/KeyValueProcessor.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Kat Shen <[email protected]>
...r/src/main/java/org/opensearch/dataprepper/plugins/processor/keyvalue/KeyValueProcessor.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Kat Shen <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
non-blocking comments.
...r/src/main/java/org/opensearch/dataprepper/plugins/processor/keyvalue/KeyValueProcessor.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Kat Shen <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One non-blocking nit
@@ -153,6 +155,14 @@ private boolean validateRegex(final String pattern) | |||
return true; | |||
} | |||
|
|||
private void validateKeySets(final Set<String> includeSet, final Set<String> excludeSet) { | |||
Set<String> intersectionSet = new HashSet<String>(includeSet); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: final
Description
Allow configuration for an array specifying the parsed keys which should not be added to the event. By default no keys will be excluded
Issues Resolved
#890
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.