-
Notifications
You must be signed in to change notification settings - Fork 38.8k
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
fluentd-gcp 2.0.5 doesn't work with json output to stdout #48108
Comments
@maisem There are no sig labels on this issue. Please add a sig label by: |
@maisem There are no sig labels on this issue. Please add a sig label by: |
@maisem Thanks! That is indeed a bug with the new version. I'll patch it in the repo shortly |
Nope, not a bug with the new version, it was actually introduced with #45734 Because of the first clause in https://github.com/GoogleCloudPlatform/fluent-plugin-google-cloud/blob/master/lib/fluent/plugin/out_google_cloud.rb#L569 additional field in the record breaks JSON logging |
Automatic merge from submit-queue (batch tested with PRs 48139, 48042, 47645, 48054, 48003) Fix fluentd-gcp configuration to facilitate JSON parsing There's a bug in #45734, because of which each records gets additional field and google-cloud plugin thinks it's not JSON (https://github.com/GoogleCloudPlatform/fluent-plugin-google-cloud/blob/master/lib/fluent/plugin/out_google_cloud.rb#L569) Fixes #48108 /cc @piosz @fgrzadkowski
1.6.6 shifted the fluentd-gcp image from 2.0.2 to 2.0.5. This seems to have broken the json detection from stdout. Using 2.0.2 the logs are parsed into jsonPayload, however for 2.0.5 they are passed into textPayload.
Reproduction steps:
cc: @jlowdermilk @crassirostris @piosz
The text was updated successfully, but these errors were encountered: