magnusbaeck / logstash-filter-verifier

Apache License 2.0
192 stars 27 forks source link

Insert codec as a string, not as a single-quoted character literal. #77

Closed cresh closed 4 years ago

cresh commented 4 years ago

This enables codecs that need additional configuration settings, like multiline with an escaped string:

codec: "multiline {
       pattern => \"^%{YEAR}/%{MONTHNUM}/%{MONTHDAY}[T ]%{HOUR}:?%{MINUTE}:?%{SECOND}\"
       negate => true
       what => previous
    }"
magnusbaeck commented 4 years ago

This makes total sense, thanks!