logstash-plugins/logstash-input-elasticsearch

Failure to create an event from the payload can crash the plugin

Opened this issue · 0 comments

It is possible for Logstash event creation from a key/value map to fail with an exception (such as incorrect use of a reserved field in any version, or an invalid field reference as a key name prior to Logstash 8.3.0).

Instead of crashing, this plugin should catch the exception, re-serialize the offending map, and emit a tagged event (similar to how the JSON codec does so).