Skip to content

Syslog

Syslog (syslog)

Emit events as syslog messages to remote or local syslog receivers. Supported endpoint schemes: - udp://host:port - tcp://host:port - tls://host:port - unix:///path (unix stream) - unixgram:///path (unix datagram).

Observability json

Minimal example

output:
syslog:
endpoint: ""
JSON
{
"output": {
"syslog": {
"endpoint": ""
}
}
}

Contents

Fields

FieldTypeRequiredDescription
endpoint Endpointhostname (string)Syslog destination endpoint (selects transport by scheme).
Examples: example.com, localhost
batch BatchingBatchOptional batching hints (still emits one syslog message per event).
retry ReliabilityRetryRetry policy for connection and send failures (TCP/TLS/Unix stream).
format FormatFormatSyslog message format to emit.
Allowed values: rfc5424, rfc3164
framing FramingFramingTCP/TLS/Unix-stream framing mode.
Allowed values: octet-counting, newline
tls SecurityTlsTLS configuration (applies to tls:// endpoints only).
input-field Payloadfield (string)If set, this field’s value becomes the syslog payload (and is also used for field-derived syslog properties like facility/severity).
Examples: data_field
facility PriorityFacilitySyslog facility (static value or event field).
severity PrioritySeveritySyslog severity (static value or event field).
hostname HeadersHostnameRFC 5424 hostname (static value or event field). Defaults to - (NILVALUE).
app-name HeadersApp NameRFC 5424 app-name (static value or event field). Defaults to - (NILVALUE).
procid HeadersProcidRFC 5424 procid (static value or event field). Defaults to - (NILVALUE).
msgid HeadersMsgidRFC 5424 msgid (static value or event field). Defaults to - (NILVALUE).
structured-data Structured DataStructured DataOptional RFC 5424 structured-data encoding. When enabled, the (possibly input_field selected) payload must be a JSON object, or a JSON string that can be parsed into an object when parse_json_string=true.

Batching

Show fields
FieldTypeRequiredDescription
batchBatchOptional batching hints (still emits one syslog message per event).

Reliability

Show fields
FieldTypeRequiredDescription
retryRetryRetry policy for connection and send failures (TCP/TLS/Unix stream).

Endpoint

Show fields
FieldTypeRequiredDescription
endpointhostname (string)Syslog destination endpoint (selects transport by scheme).
Examples: example.com, localhost

Format

Show fields
FieldTypeRequiredDescription
formatFormatSyslog message format to emit.
Allowed values: rfc5424, rfc3164

Framing

Show fields
FieldTypeRequiredDescription
framingFramingTCP/TLS/Unix-stream framing mode.
Allowed values: octet-counting, newline

Security

Show fields
FieldTypeRequiredDescription
tlsTlsTLS configuration (applies to tls:// endpoints only).

Payload

Show fields
FieldTypeRequiredDescription
input-fieldfield (string)If set, this field’s value becomes the syslog payload (and is also used for field-derived syslog properties like facility/severity).
Examples: data_field

Priority

Show fields
FieldTypeRequiredDescription
facilityFacilitySyslog facility (static value or event field).
severitySeveritySyslog severity (static value or event field).

Headers

Show fields
FieldTypeRequiredDescription
hostnameHostnameRFC 5424 hostname (static value or event field). Defaults to - (NILVALUE).
app-nameApp NameRFC 5424 app-name (static value or event field). Defaults to - (NILVALUE).
procidProcidRFC 5424 procid (static value or event field). Defaults to - (NILVALUE).
msgidMsgidRFC 5424 msgid (static value or event field). Defaults to - (NILVALUE).

Structured Data

Show fields
FieldTypeRequiredDescription
structured-dataStructured DataOptional RFC 5424 structured-data encoding. When enabled, the (possibly input_field selected) payload must be a JSON object, or a JSON string that can be parsed into an object when parse_json_string=true.

Schema

Facility Options

OptionNameTypeDescription
facility-valueFacility Valuestring
facility-fieldFacility Fieldstring

Severity Options

OptionNameTypeDescription
severity-valueSeverity Valuestring
severity-fieldSeverity Fieldstring

Hostname Options

OptionNameTypeDescription
hostname-valueHostname Valuestring
hostname-fieldHostname Fieldstring

App Name Options

OptionNameTypeDescription
app-name-valueApp Name Valuestring
app-name-fieldApp Name Fieldstring

Procid Options

OptionNameTypeDescription
proc-id-valueProc Id Valuestring
proc-id-fieldProc Id Fieldstring

Msgid Options

OptionNameTypeDescription
msg-id-valueMsg Id Valuestring
msg-id-fieldMsg Id Fieldstring

Batch Fields

FieldTypeRequiredDescription
fixed-sizenumber (integer)maximum number of events in an output batch.
Examples: 42, 1.2e-10
modeModeIf ‘document’ send on end of document generated by input. If ‘fixed’, use fixed_size.
Allowed values: fixed, document
timeouttime-interval (string)interval after which the batch is sent, to keep throughput going (default 100ms).
Examples: 500ms, 2h
headermultiline-text (string)put a header line before the batch.
footermultiline-text (string)put a header line after the last line of the batch.
use-document-markerboolean (bool)Enrich the job metadata with a document marker (for document handling in batch mode).
wrap-as-jsonboolean (bool)Format the output batch as a JSON array.

Retry Fields

FieldTypeRequiredDescription
timeouttime-interval (string)timeout (e.g. 500ms, 2s etc. - default is 30).
Examples: 500ms, 2h
retriesnumber (integer)number of retries.
Examples: 42, 1.2e-10

Tls Fields

FieldTypeRequiredDescription
ca-certificatestringCustom CA certificate bundle (PEM or path).
client-certificatestringClient certificate for mutual TLS (PEM or path).
client-keystringClient private key for mutual TLS (PEM or path).
server-namestringOverride the TLS server name used for certificate validation (SNI).
insecure-skip-verifyboolean (bool)Skip certificate validation (development only).

Structured Data Fields

FieldTypeRequiredDescription
sd-idstringSD-ID used for the RFC 5424 structured data element (example: lyftdata@32473).
parse-json-stringboolean (bool)If the payload is a JSON string, parse it as JSON (must decode to an object) before encoding into structured data.

Batch - Mode Options

ValueDescription
fixedFixed
documentDocument

Format Options

ValueDescription
rfc5424Rfc5424
rfc3164Rfc3164

Framing Options

ValueDescription
octet-countingRFC 6587 octet-counting framing: <len> <message>.
newlineNewline-delimited framing (LF).