-
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] not sending data of jornald receiver in correct format #34373
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
When I add transform, i start getting the message but strangely only SU message. I haven't added any filter at journals receiver end as when I use file exporter I get all journald logs but not in syslog server:
Logs on syslog:
Please suggest if there is any other way to export journald logs to syslog server format or do we have to use transform to get each attribute for RFC5424 https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/exporter/syslogexporter/README.md#rfc5424 ? |
I was able to get some values using transform below:
|
Based on discussion on CNCF slack I believe this is an issue with the exporter and not the receiver. To generalize the issue a bit, does the exporter have any requirements for the format of the logs it consumes? In other words, does it fail if a certain attribute is missing, etc? If so, this is unlike how users typically expect to work with exporters. It would be much better if any If this is already the intention of the receiver, then I think this might be a bug. |
@djaglowski Yes you are right. The issue is with exporter, not consuming logs from journald receiver as it is but only if the attributes are preset or are manually added. |
I think this is a pretty clear bug given that we are not handling missing attributed as stated in the documentation. I'll remove the triage label. |
The Syslog exporter expects the input to be structured in a specific way. The docs could probably be improved, but you can get this by looking at the Examples section: https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/v0.111.0/exporter/syslogexporter/README.md#examples. Specifically, in RFC5424, the details of the syslog message are expected to be specified in log record's attributes:
There is definitely space for discussion on how to make this easier. I'm open to suggestions. |
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. |
Component(s)
exporter/syslog
What happened?
Description
Sending to logs collected by journals receiver from host system to syslog-ng server using syslog exporter.
Steps to Reproduce
Expected Result
System journald logs are collected and sent to syslog-ng server using syslog exporter
Actual Result
No useful logs collected at syslog server
Collector version
0.95.0
Environment information
Environment
OS: Debian Bookworm
k3s version v1.29.6+k3s2
OpenTelemetry Collector configuration
Log output
Additional context
No response
The text was updated successfully, but these errors were encountered: