You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to export otlp log messages to syslog, the resulting message on the syslog end only contains the timestamp from the otlp message. The "message" and the "priority" do not get picked up.
Component(s)
exporter/syslog
What happened?
Description
When trying to export otlp log messages to syslog, the resulting message on the syslog end only contains the timestamp from the otlp message. The "message" and the "priority" do not get picked up.
Steps to reproduce
Run docker compose command:
with the following
docker-compose.yml
:Watch incoming message as it has been sent by the otel-collector from the syslog-ng container:
Use curl to send an otlp message to the collector from the docker host:
curl -X POST -H "Content-Type: application/json" -d @logs.json -i localhost:4318/v1/logs
With below content for
logs.json
:Expected result
Actual result
The timestamp is picked up from the otel log entry. Two places where this result deviates from expectations:
severityNumber
Is this by design, or is this exporter/syslog not working as intended?
Workaround
By adding a transform to the otel-collector configuration, the expected result can be achived:
Which now renders the result as expected:
Is this as expected, and should a transformation for all expected attributes always be added?
Collector version
0.109.0
Environment information
Environment
Docker desktop 4.33.0 (160616) on MacOS X 15.0
OpenTelemetry Collector configuration
Log output
Additional context
No response
The text was updated successfully, but these errors were encountered: