BUG: JSON Filter Plugin needs target?


(Isaac Sanders) #1

This log line from the most recent version of this plugin:

Parsed JSON object/hash requires a target configuration option {:source=>"unparsed", :raw=>"                "}

Contradicts the documentation here:
https://www.elastic.co/guide/en/logstash/current/plugins-filters-json.html#plugins-filters-json-target

Which source of information is meant to be wrong? The documentation or the code/log line?


(Magnus Bäck) #2

target is mandatory iff the JSON string parses into anything but an object (hash). In this case it appears you're trying to parse a string containing whitespace, which doesn't produce an object.


(Isaac Sanders) #3

Would it respond by tagging the message with the failure field?


(Magnus Bäck) #4

I'm not sure I get the question, but If target isn't set when it needs to be set the event will be tagged with the tags in tag_on_failure.


(system) #5

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.