Skip to content

Commit

Permalink
Merge pull request elastic#129 from philcowans/master
Browse files Browse the repository at this point in the history
Grep filter for numerical fields
  • Loading branch information
jordansissel committed Mar 29, 2012
2 parents 498b1c0 + e1018f6 commit daadbbf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/logstash/filters/grep.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ def filter(event)
end

(event[field].is_a?(Array) ? event[field] : [event[field]]).each do |value|
value = value.to_s if value.is_a?(Fixnum)
if @negate
@logger.debug("negate match", :regexp => re, :value => value)
next if re.match(value)
Expand Down

0 comments on commit daadbbf

Please sign in to comment.