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

Exclude keys #3055

Merged
merged 13 commits into from
Jul 27, 2023
Merged

Exclude keys #3055

merged 13 commits into from
Jul 27, 2023

Conversation

shenkw1
Copy link
Contributor

@shenkw1 shenkw1 commented Jul 24, 2023

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

  • New functionality includes testing.
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed with a real name per the DCO

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.

Signed-off-by: Kat Shen <[email protected]>
Signed-off-by: Kat Shen <[email protected]>
…est, modify include/exclude null test to default test

Signed-off-by: Kat Shen <[email protected]>
chenqi0805
chenqi0805 previously approved these changes Jul 26, 2023
Copy link
Collaborator

@chenqi0805 chenqi0805 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

non-blocking comments.

Copy link
Contributor

@JonahCalvo JonahCalvo left a 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);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: final

@asifsmohammed asifsmohammed merged commit 90178c4 into opensearch-project:main Jul 27, 2023
24 checks passed
@shenkw1 shenkw1 deleted the exclude-keys branch October 15, 2024 19:29
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.

4 participants