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

SUMO-124885 attach logs metadata as fields for all log formats #359

Merged
merged 2 commits into from
Jan 14, 2020

Conversation

samjsong
Copy link
Contributor

@samjsong samjsong commented Jan 9, 2020

Description

as a short term workaround, we attach logs metadata as fields regardless of the log format (fields, json, text, json_merge)

this will enable the use of text format with metadata, but multiline detection will be broken, as it was for the old kubernetes collection solution.

Testing performed
  • ci/build.sh
  • Redeploy fluentd and fluentd-events pods
  • Confirm events, logs, and metrics are coming in
  • Confirm logs have logs metadata as fields regardless of log format

@rvmiller89
Copy link
Contributor

did CI fail on this one?

@samjsong
Copy link
Contributor Author

Hmm strange, CI passed on this PR but it didn't report it: https://travis-ci.org/SumoLogic/sumologic-kubernetes-collection/builds/634976511

@rvmiller89
Copy link
Contributor

maybe merge master to kick off CI again

},
}
assert_equal(1, d.filtered_records.size)
assert_equal(d.filtered_records[0], expected)
assert_equal(expected, d.filtered_records[0])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for fixing all these

@samjsong samjsong merged commit 0af045b into master Jan 14, 2020
@samjsong samjsong deleted the ssong-logs-metadata-always branch January 14, 2020 22:00
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.

4 participants