Closed ubcharron closed 8 months ago
receiver/syslog
According to the doc, the syslog receiver can add resources to every incoming syslog via the "resource" key:
Field: resource Default value: [] Description: A map of key: value labels to add to the entry's resource
However, it doesn't seem to actually add them.
Setup syslog receiver:
receivers: syslog: resource: mytag: myvalue udp: listen_address: "127.0.0.1:514" protocol: rfc3164
Send a syslog message:
logger -d fdkskjsdf --server=localhost --rfc3164
The ResourceLog should have a resource attribute "mytag" with the value "myvalue".
The ResourceLog does not have any resource attributes.
0.96.0
OS: Ubuntu LTS
receivers: syslog: resource: mytag: myvalue udp: listen_address: "127.0.0.1:514" protocol: rfc3164 exporters: debug: verbosity: detailed service: pipelines: logs: receivers: [syslog] exporters: [debug]
2024-03-20T15:19:22.572Z info LogsExporter {"kind": "exporter", "data_type": "logs", "name": "debug", "resource logs": 1, "log records": 1} 2024-03-20T15:19:22.572Z info ResourceLog #0 Resource SchemaURL: ScopeLogs #0 ScopeLogs SchemaURL: InstrumentationScope LogRecord #0 ObservedTimestamp: 2024-03-20 15:19:22.568639715 +0000 UTC Timestamp: 2024-03-20 15:19:22 +0000 UTC SeverityText: notice SeverityNumber: Info2(10) Body: Str(<13>Mar 20 15:19:22 bcharron-wks-2 bcharron: fdkskjsdf) Attributes: -> hostname: Str(bcharron-wks-2) -> facility: Int(1) -> appname: Str(bcharron) -> message: Str(fdkskjsdf) -> priority: Int(13) Trace ID: Span ID: Flags: 0 {"kind": "exporter", "data_type": "logs", "name": "debug"}
No response
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself.
Component(s)
receiver/syslog
What happened?
Description
According to the doc, the syslog receiver can add resources to every incoming syslog via the "resource" key:
However, it doesn't seem to actually add them.
Steps to Reproduce
Setup syslog receiver:
Send a syslog message:
Expected Result
The ResourceLog should have a resource attribute "mytag" with the value "myvalue".
Actual Result
The ResourceLog does not have any resource attributes.
Collector version
0.96.0
Environment information
Environment
OS: Ubuntu LTS
OpenTelemetry Collector configuration
Log output
Additional context
No response