mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
Merge branch 'master' of git://github.com/logstash/logstash
This commit is contained in:
commit
543fa984c4
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue