Receive syslog (RFC 5424 and RFC 3164)
Network gear and legacy hosts speak syslog and nothing else. You need RFC 5424 and RFC 3164 on the same collector without losing the priority and facility fields.
Also searched as: syslog receiver, rsyslog, syslog rfc
- Signals
- Logs
- Category
- CollectionParsing
- Source
- Syslog
- Components
- syslogbatchmemory_limiterotlphttp
- Destination
- OTLP/HTTP endpoint
OpenTelemetry Collector
receivers:
syslog/rfc5424:
tcp:
listen_address: 0.0.0.0:54526
protocol: rfc5424
syslog/rfc3164:
udp:
listen_address: 0.0.0.0:54527
protocol: rfc3164
location: UTC
processors:
memory_limiter:
check_interval: 1s
limit_percentage: 80
batch: {}
exporters:
otlphttp:
endpoint: https://your-backend:4318
service:
pipelines:
logs:
receivers: [syslog/rfc5424, syslog/rfc3164]
processors: [memory_limiter, batch]
exporters: [otlphttp]
LinkMesh
Library › Sources › Syslog TCP
- Listen Address
- 0.0.0.0:54526
- Transport
- tcp
- Syslog Format (RFC)
- rfc5424
What LinkMesh then pushes to the collector, under receivers:
syslog/input_src_00000501:
protocol: rfc5424
tcp:
listen_address: 0.0.0.0:54526
The same, as an API call (see automation recipes):
curl -X POST "$LINKMESH/sources" \
-H "Authorization: Bearer $LMSAT" \
-H "Content-Type: application/json" \
-d '{
"defaultConfig": {
"listen_address": "0.0.0.0:54526",
"protocol": "tcp",
"rfc": "rfc5424"
},
"name": "Syslog TCP",
"receiverType": "syslog"
}'Library › Sources › Syslog UDP
- Listen Address
- 0.0.0.0:54527
- Transport
- udp
- Syslog Format (RFC)
- rfc3164
What LinkMesh then pushes to the collector, under receivers:
syslog/input_src_00000501:
protocol: rfc3164
udp:
listen_address: 0.0.0.0:54527
The same, as an API call (see automation recipes):
curl -X POST "$LINKMESH/sources" \
-H "Authorization: Bearer $LMSAT" \
-H "Content-Type: application/json" \
-d '{
"defaultConfig": {
"listen_address": "0.0.0.0:54527",
"protocol": "udp",
"rfc": "rfc3164"
},
"name": "Syslog UDP",
"receiverType": "syslog"
}'The rest of the collector config above (memory_limiter, batch, otlphttp) is not part of these templates: in LinkMesh those are separate sources, processors and destinations on the route.
Generated from LinkMesh's template catalogue by linkmesh-server snippet-render 1.470.5, not written by hand.
Download config.yamlValidated with otelcol-contrib v0.165.0 on 2026-11-30
Complete config files, each checked with the collector's own validate command (otelcol-contrib v0.165.0). Replace https://your-backend:4318 with your own OTLP endpoint before you run it.
The gotcha
RFC 3164 timestamps carry no year, so the collector assumes the current one, which silently misdates logs sent across a new-year boundary.
Used in these pipelines
Skip the YAML on every host
LinkMesh has this job built in as the Syslog TCP and Syslog UDP source templates: activate it on a collector from the control plane instead of editing config files host by host. The first 25 Collectors are free after a no-card registration in the OpenSight Customer Portal (5 without one).
Doing this in LinkMesh: Sources
Related snippets
- Parse Apache access logs into semantic conventionsTurn Apache combined-format access log lines into semantic-convention attributes, with typed status codes and sizes.
- Parse JSON log lines into attributesTurn each JSON log line into attributes you can filter and group by, keeping the original line as the body.
- Parse key=value log linesTurn logfmt-style key=value lines into attributes, quoted values with spaces included.
- Parse nginx access logs into semantic conventionsTurn nginx combined-format access log lines into OpenTelemetry semantic-convention attributes, with typed status codes.