Fix negate changes to match what was actually working on the test box. Also improve logging to include negate status

This commit is contained in:
Ryan Ausanka-Crues 2011-01-22 16:10:58 -08:00
parent b1701cb37d
commit 7c67be2ba8

View file

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