Between versions 1.0.4 and 1.0.5, this commit was added and
the default codec began to be respected. This results in json messages
being treated as plain, which wraps the consumed json event in the event's message field, and elasticsearch doesn't properly parse the event into fields.
This commit changes the default type to json, as that is the assumed default format anyway. Alternate codecs can be used by adding a codec attribute to the input plugin's configuration.
Between versions
1.0.4
and1.0.5
, this commit was added and the default codec began to be respected. This results in json messages being treated asplain
, which wraps the consumed json event in the event'smessage
field, and elasticsearch doesn't properly parse the event into fields.This commit changes the default type to
json
, as that is the assumed default format anyway. Alternate codecs can be used by adding a codec attribute to the input plugin's configuration.