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

add error handling on JSON parsing for the multiline fix #423

Merged
merged 2 commits into from Feb 18, 2020

Conversation

vsinghal13
Copy link
Contributor

@vsinghal13 vsinghal13 commented Feb 17, 2020

Description

For the multiline to work, we added the first step of the fluentd pipeline to be a record transformer to process the stiched multiline logs in the correct format.

This transformation relies on the fact that the log value is a JSON object based on the default multiline parser regex.

If the user changes the parser to say, docker parser, then the log is no longer a JSON and it fails.

This PR adds error handling for the same. In case the log value is not JSON, we will pass the content as is.

Testing performed
  • ci/build.sh
  • Redeploy fluentd and fluentd-events pods
  • Confirm events, logs, and metrics are coming in

@vsinghal13 vsinghal13 merged commit 8e0a919 into master Feb 18, 2020
@vsinghal13 vsinghal13 deleted the vsinghal-add-error-handling-multiline-parsing branch February 18, 2020 00:14
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.

None yet

3 participants