logstash/logstash — pull request #595 by adambro (2013-08-26 13:23:56+00:00)
Title: Mark "target" field as required in json filter

Without it in config file logstash is throwing following error for completely valid JSON file:
:exception=>#, :level=>:warn

Steps to reproduce:
echo '{ "attr": "val"}' | java -jar logstash-1.1.13-flatjar.jar agent -f logstash-simple.conf

logstash-simple.conf

input {
stdin { type => "stdin-type"}
}

filter {
json {
source => "@message"
}
}

output { stdout { debug => true debug_format => "json"}}