logstash-codec-protobuf
logstash-codec-protobuf copied to clipboard
[WIP] Encoder drop additional fields
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.
I'm setting this to WIP because we have discovered an NPE when using this in production.