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

Allow remove_field() function to take a regular expression or glob #5653

Closed
lennartkoopmann opened this issue Feb 7, 2019 · 1 comment · Fixed by #15131
Closed

Allow remove_field() function to take a regular expression or glob #5653

lennartkoopmann opened this issue Feb 7, 2019 · 1 comment · Fixed by #15131

Comments

@lennartkoopmann
Copy link
Contributor

The remove_field() pipeline function currently only allows to remove fields that match an exact name. This works if I know which fields my message will have, but not for more dynamic data, like in DNS responses that can contain multiple answers to a request.

Expected Behavior

I'd like to be able to remove all fields of a message that match a regular expression or glob pattern.

Current Behavior

Currently, I can only remove fields if I know the name of each field.

Context

2019-02-07-121406_201x988_scrot

In this example, I'd like to call something like remove_fields('dns_authorities_*').

@thaibinhindex
Copy link

I'm facing this problem

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

Successfully merging a pull request may close this issue.

5 participants