logstash-codec-protobuf icon indicating copy to clipboard operation
logstash-codec-protobuf copied to clipboard

[WIP] Encoder drop additional fields

Open IngaFeick opened this issue 4 years ago • 1 comments

This PR introduces a new config option to automatically discard event fields which are not in the protobuf definition. In the current version 1.2.4 an event with additional fields will be discarded and an error will be logged. This PR adds the option pb3_encoder_drop_unknown_fields. When activated (default) it will remove incorrect fields from the event before attempting the encoding.

IngaFeick avatar Jun 19 '20 15:06 IngaFeick

I'm setting this to WIP because we have discovered an NPE when using this in production.

IngaFeick avatar Jul 10 '20 13:07 IngaFeick