-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[receiver/syslog] rfc6587 is overwritting each parsed event #23577
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
@timannguyen, thanks for reporting this. Will you be able to make a pull request for it? |
@djaglowski i will. thank you for checking. |
@djaglowski would adding something like adding in ParserOperator:
i will refactor other funcs to ensure minimal duplication. if that is sensible, i'll move forward with that. cc: @splunkericl |
@timannguyen I don't have an understanding of the failure mechanism yet so can't say what a good solution looks like. I recommend a minimal solution be proposed and then we can refactor to reduce duplication if it looks good. |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Closed by #23645 |
Component(s)
receiver/syslog
What happened?
Description
syslog receiver is incorrectly breaking RFC6587 events. currently it's using influxdata syslog parser where each event is correctly parsed https://github.com/influxdata/go-syslog/blob/develop/octetcounting/parser.go#L124-L132. However, the parsed object is getting overridden each time https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/pkg/stanza/operator/parser/syslog/syslog.go#L316-L319. It is expected that the octet parser to return all parsed events rather than just the last.
Steps to Reproduce
when sending 4 events of the following with framing to the syslog receiver:
it would be bundled to a single event without the newline:
Expected Result
it would expected there would be 4 events of
Actual Result
one event of:
Collector version
0.74.0
Environment information
Environment
OS: MAC OS, Ubuntu 22.04
OpenTelemetry Collector configuration
Log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: