Open kroepke opened 8 years ago
To make sure messages do not contain any fields not on the whitelist, we should have a function similar to remove_field, possibly name remove_fields_except()
remove_fields_except()
See https://github.com/Graylog2/graylog2-server/issues/2118
How about retain_fields() (similar to the nomenclature in CharMatcher)?
retain_fields()
CharMatcher
This day i also run into the challenge to remove multiple fields. But until now i am not in the position to solve this i a smart way.
To make sure messages do not contain any fields not on the whitelist, we should have a function similar to remove_field, possibly name
remove_fields_except()