logstash-plugins / logstash-input-google_pubsub

Logstash input for pulling events from Google Pub/Sub service
Apache License 2.0
19 stars 33 forks source link

Set default codec to json, update documentation. #41

Open ryanschwartz opened 6 years ago

ryanschwartz commented 6 years ago

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.