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 preserveLeadingWhitespaces and preserveTrailingWhitespaces variables under logsCollection.containers in values.yaml #1571

Closed

Conversation

wojtekzyla
Copy link
Contributor

Description: Allow users to control whether filelog receiver should remove leading and trailing whitespaces from their logs. We noticed a case when one log message is spread across several logs and then joined using recombine operator, the default behaviour of filelog receiver (removing leading and trailing whitespaces) resulted in malformed combined log.

Testing: Manual testing

Documentation:

…les under logsCollection.containers in values.yaml
@wojtekzyla wojtekzyla requested review from a team as code owners December 12, 2024 13:01
Comment on lines +624 to +627
# Whether to preserve leading whitespaces in logs.
preserveLeadingWhitespaces: false
# Whether to preserve trailing whitespaces in logs.
preserveTrailingWhitespaces: false
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we need extra parameters when these are already available with:

agent.config.receivers.filelog.preserve_leading_whitespaces
agent.config.receivers.filelog.preserve_trailing_whitespaces

Let's not extend the values.yaml interface when it is not necessary

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's right, I missed the part with that configuration. I'll close this PR

@wojtekzyla wojtekzyla closed this Dec 16, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Dec 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants