-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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] Automatically detect protocol #30328
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
I think the general idea makes sense. I'm a bit concerned about the performance impact of auto-detect. Depending on how much work is necessary to determine which format the log messages are, it may end up duplicating a lot of the work. This would only be relevant when the auto-detect functionality is enabled, but it's still something to keep in mind. Another concern I have is that this may make it harder to know if logs are coming in with the wrong format. We'd have to still log for invalid formats to make sure it's not missed. A side effect of this is that there are a few configuration options that are only relevant to one protocol or the other. This allows the collector to validate the config more thoroughly on startup, but this proposal would potentially allow invalid configurations to run. An alternative to adding another config option would be to add another valid value for the As far as feasibility, this receiver is built on top of the stanza package, so any new functionality has to be added there. This may mean that adding this would impact other receivers or features, and is therefore not acceptable. I'll remove |
I share @crobert-1's concerns about performance and protocol-specific config values. Given the concerns, I think we should look at a proof of concept implementation before deciding whether the feature will be supported. |
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. |
this is still an issue |
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. |
This issue has been closed as inactive because it has been stale for 120 days with no activity. |
Component(s)
receiver/syslog
Is your feature request related to a problem? Please describe.
Some of my syslog sender devices use RFC 5424 and others use RFC 3164 so I get errors like this:
It would be nice if this receiver could automatically recognize both formats. Some devices are hardcoded to use UDP port 514 so there is no way to separate the 2 protocols on different ports.
Describe the solution you'd like
I'd like to make the
protocol
configuration property optional or add a new possible value ofauto
where it recognizes the format automatically.Describe alternatives you've considered
I'm currently using
rsyslog
to parse and forward messages to otel, but it would be nice to remove that additional dependency.Additional context
No response
The text was updated successfully, but these errors were encountered: