Skip to main content

syslog subscriber

Forwards each event as a single compact-JSON syslog message.

Add to the subscribers block in config.yaml:

subscribers:
syslog:
enabled: true
network: "tcp" # "tcp" or "udp"
address: "syslog-host:514"
tag: "nf-data-connector"
priority: "local0.info"
buffer_size: 1000

Always serial — TCP syslog preserves order per connection. priority accepts standard facility.severity strings (e.g., local0.info, daemon.warning). For large events, prefer TCP — UDP has a ~2KB message limit.

Available fields and defaults

FieldDefaultDescription
networktcptcp or udp
addresshost:port of the syslog receiver
tagnf-data-connectorSyslog program tag
prioritylocal0.info<facility>.<severity>
buffer_size1000Subscriber channel capacity

:::warning Windows not supported

The syslog subscriber uses log/syslog from the Go standard library, which is unavailable on Windows. Enabling it on Windows returns an error at startup.

:::

See Common tuning for buffer_size semantics.