Skip to content

Conversation

ryanschwartz
Copy link

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` and `1.0.5`, [this commit](logstash-plugins@c60e0ae) was added and
the [default codec](https://github.com/logstash-plugins/logstash-input-google_pubsub/blob/master/lib/logstash/inputs/google_pubsub.rb#L217) 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant