json_encode exception (undefined local variable or method `key')

Description

filter {
json_encode {
source => "usracct"
target => "fields"
}
}

Exception:

Exception in filterworker {"exception"=>#<NameError: undefined local variable or method `key' for #<LogStash::Filters::JSONEncode:0x77e72358>>, "backtrace"=>["file:/opt/logstash/bin/logstash-1.2.0-flatjar.jar!/logstash/filters/json_encode.rb:46:in `filter'", "(eval):47:in `initialize'", "org/jruby/RubyProc.java:255:in `call'", "file:/opt/logstash/bin/logstash-1.2.0-flatjar.jar!/logstash/pipeline.rb:243:in `filter'", "file:/opt/logstash/bin/logstash-1.2.0-flatjar.jar!/logstash/pipeline.rb:191:in `filterworker'", "file:/opt/logstash/bin/logstash-1.2.0-flatjar.jar!/logstash/pipeline.rb:134:in `start_filters'"], :level=>:error}

Activity

Show:
Jordan Sissel
September 6, 2013, 11:51 PM

fixe3d in commit cabc3c6

Fixed

Assignee

Jordan Sissel

Reporter

Fabien Wernli

Fix versions

Affects versions

Configure