-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[exporter/syslog-exporter] Unable to send traces to Syslog sink via UDP #31130
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Doesn't look like the link to the line that I think is the issue was added so here it is: |
Hello @kyleprice, thanks for filing this issue. The line you referenced is not relevant to your issue, it's simply used for the exporter to batch logs if you're using TCP. You need to set the
To code owners: Maybe we want to make this more clear in the README for anyone less familiar with these settings? |
Yeah I think the current behavior is very confusing. At the very least, we should document it. I think we should change the implementation to not use the TLS configuration when UDP is used - or to put it the other way around, only use TLS configuration when TCP is being used. What do you think @crobert-1 @kkujawa-sumo @rnishtala-sumo? |
Yes, I agree that it makes sense to remove TLS configuration for UDP since TLS typically operates over TCP. |
Thanks, that fixed it. Appreciate the help! |
**Description:** fix setting network connection, do not load TLS configuration for UDP **Link to tracking Issue:** #31130 **Testing:** unit test, manual tests with syslog server **Documentation:** added information that TLS config is applied only when TCP is used Signed-off-by: Katarzyna Kujawa <[email protected]>
**Description:** fix setting network connection, do not load TLS configuration for UDP **Link to tracking Issue:** open-telemetry#31130 **Testing:** unit test, manual tests with syslog server **Documentation:** added information that TLS config is applied only when TCP is used Signed-off-by: Katarzyna Kujawa <[email protected]>
The issue was fixed in #31202, it can be closed. |
Component(s)
exporter/syslog
What happened?
Description
When receiving syslog messages and then transmitting via UDP I have the following config:
syslog:
network: udp
port: 1500
endpoint: 10.0.0.2 (local network connection that accepts udp only)
retry_on_failure:
enabled: true
sending_queue:
enabled: true
receivers:
syslog:
tcp:
listen_address: "0.0.0.0:54500"
protocol: rfc3164
location: UTC
service:
pipelines:
logs:
exporters:
- syslog
receivers:
- syslog
Actual Result
This produces tcp connections on the exporter instead of sending over udp. The sink I am using accepts a udp connection, as a result it fails to ship logs to it.
Exporting failed. Dropping data. Try enabling retry_on_failure config option to retry on retryable errors. {"kind": "exporter", data_type": "logs", "name": "syslog", "error": dial tcp 10.0.0.2:1500: connect: connection refused", "dropped_items": 4}
Expected Result
I would expect this to send logs over udp. I looked through the code and saw this line which looks to set the network to tcp always for the exporter. I wanted a 2nd pair of eyes to confirm this as this would match what I am seeing in my deployment.
Collector version
0.93.0
Environment information
Environment
OS: Ubuntu 20.04
Using Otel Operator
OpenTelemetry Collector configuration
No response
Log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: