Enable 'negate' modifier for multiline filter so that you can do more complex multi-line event matching

This commit is contained in:
Ryan Ausanka-Crues 2011-01-22 16:08:21 -08:00
parent c09d5e2021
commit b1701cb37d

View file

@ -97,6 +97,9 @@ class LogStash::Filters::Multiline < LogStash::Filters::Base
pending = @pending[key]
@logger.debug(["Reg: ", typeconfig["pattern"], event.message, match])
# Add negate option
match = match and !typeconfig["negate"] || !match and typeconfig["negate"]
case typeconfig["what"]
when "previous"
if match