Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set default codec to json, update documentation. #41

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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