From 7c67be2ba85d624f5e7f6e1d68b410adf595bdcb Mon Sep 17 00:00:00 2001 From: Ryan Ausanka-Crues Date: Sat, 22 Jan 2011 16:10:58 -0800 Subject: [PATCH] Fix negate changes to match what was actually working on the test box. Also improve logging to include negate status --- lib/logstash/filters/multiline.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/logstash/filters/multiline.rb b/lib/logstash/filters/multiline.rb index de07618d5..5008b87b4 100644 --- a/lib/logstash/filters/multiline.rb +++ b/lib/logstash/filters/multiline.rb @@ -96,9 +96,9 @@ class LogStash::Filters::Multiline < LogStash::Filters::Base key = [event.source, event.type] pending = @pending[key] - @logger.debug(["Reg: ", typeconfig["pattern"], event.message, match]) + @logger.debug(["Reg: ", typeconfig["pattern"], event.message, match, typeconfig["negate"]]) # Add negate option - match = match and !typeconfig["negate"] || !match and typeconfig["negate"] + match = (match and !typeconfig["negate"]) || (!match and typeconfig["negate"]) case typeconfig["what"] when "previous"