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

Are there breaking changes between influxdata/go-syslog/v3 and leodido/go-syslog/v4? #14

Closed
andrzej-stencel opened this issue May 23, 2024 · 1 comment

Comments

@andrzej-stencel
Copy link

First of all I want to thank @leodido for continuing to work on the go-syslog package. 🙏 This package is currently used by the OpenTelemetry Collector Contrib for parsing of syslog messages, used for example in the Syslog receiver of the collector. Btw. perhaps it's worth adding an adopters file in this repo?

Triggered by the archiving of the https://github.com/influxdata/go-syslog repository, we are planning to replace the influxdata/go-syslog/v3 package with leodido/go-syslog/v4 (open-telemetry/opentelemetry-collector-contrib#33205). This brings the question: are there any breaking changes that users looking to do similar switch should look out for?

Looking at the release notes for v4.0.0, seems to me that the only change that might be worth describing as potentially breaking is Allow non UTF8 characters in message #35, as it changes the default behavior of the parser to be more permissive. This means that if someone was relying on the package to reject non-compliant messages, they might need to use the WithCompliantMsg option. Does this make sense?

@leodido
Copy link
Owner

leodido commented May 24, 2024

Hey @andrzej-stencel, what you described for RFC5424 makes sense. You spotted it right.

Let me add that similar relaxations have been implemented for RFC3164 to allow more non-compliant old syslog formats (eg., OpenBSD without hostname part, etc.). In this case tho, there is no option pattern (With<Something>()) implemented at the moment. Maybe that's an idea for a future contribution!

@leodido leodido closed this as completed Jun 24, 2024
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

No branches or pull requests

2 participants