logstash-plugins / logstash-filter-kv

Apache License 2.0
17 stars 42 forks source link

handle fields that do not have a value splitter #103

Open yaauie opened 2 years ago

yaauie commented 2 years ago

By prepending an optional, non-capturing field splitter to our scanning regexp we ensure that a valueless key is fully consumed, preventing a multibyte field splitter from partially leaking into the next key.

Correctly parses out k1 => v1 and k2 => v2 from any of the following sequences using the field splitter __:

missing__k1=v1__k2=v2
k1=v1__missing__k2=v2
k1=v1__k2=v2__missing

Co-authored-by: Tom Gregory thomas.gregory@elastic.co

mashhurs commented 2 years ago

Do we need to version up (and include changelog)?