Merge branch 'master' of git://github.com/logstash/logstash

This commit is contained in:
Ryan Ausanka-Crues 2011-02-02 19:09:35 -08:00
commit 543fa984c4

View file

@ -83,7 +83,7 @@ class LogStash::Filters::Grep < LogStash::Filters::Base
if event[field].nil? and match["negate"] == true
match_count += 1
end
event[field].each do |value|
(event[field].is_a?(Array) ? event[field] : [event[field]]).each do |value|
if match["negate"] == true
@logger.debug("want negate match")
next if re.match(value)