Syslog
Syslog (syslog)
Section titled “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 Enterprise edition json
Minimal example
Section titled “Minimal example”output: syslog: endpoint: "udp://127.0.0.1:5514"JSON
{ "output": { "syslog": { "endpoint": "udp://127.0.0.1:5514" } }}Contents
Section titled “Contents”A ✓ marks a field that accepts a context variable such as
{{ VARIABLE }}.
Batching
Section titled “Batching”Batching
| Field | Type | Required | Description |
|---|---|---|---|
batch |
Batch |
Optional batching hints (still emits one syslog message per event). |
Endpoint
Section titled “Endpoint”Endpoint
| Field | Type | Required | Description |
|---|---|---|---|
endpoint |
string |
✅ | Syslog destination endpoint (selects transport by scheme). |
Format
Section titled “Format”Format
| Field | Type | Required | Description |
|---|---|---|---|
format |
Format |
Syslog message format to emit. Default: rfc5424Allowed values: rfc5424, rfc3164 |
Framing
Section titled “Framing”Framing
| Field | Type | Required | Description |
|---|---|---|---|
framing |
Framing |
TCP/TLS/Unix-stream framing mode. Default: octet-countingAllowed values: octet-counting, newline |
Headers
Section titled “Headers”Headers
| Field | Type | Required | Description |
|---|---|---|---|
hostname |
Hostname |
RFC 5424 hostname (static value or event field). Defaults to - (NILVALUE).Allowed values: hostname-value, hostname-field |
|
app-name |
App Name |
RFC 5424 app-name (static value or event field). Defaults to - (NILVALUE).Allowed values: app-name-value, app-name-field |
|
procid |
Procid |
RFC 5424 procid (static value or event field). Defaults to - (NILVALUE).Allowed values: proc-id-value, proc-id-field |
|
msgid |
Msgid |
RFC 5424 msgid (static value or event field). Defaults to - (NILVALUE).Allowed values: msg-id-value, msg-id-field |
Payload
Section titled “Payload”Payload
| Field | Type | Required | Description |
|---|---|---|---|
input-field |
field (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
Section titled “Priority”Priority
| Field | Type | Required | Description |
|---|---|---|---|
facility |
Facility |
Syslog facility (static value or event field). Allowed values: facility-value, facility-field |
|
severity |
Severity |
Syslog severity (static value or event field). Allowed values: severity-value, severity-field |
Reliability
Section titled “Reliability”Reliability
| Field | Type | Required | Description |
|---|---|---|---|
retry |
Retry |
Retry policy for connection and send failures (TCP/TLS/Unix stream). |
Security
Section titled “Security”Security
| Field | Type | Required | Description |
|---|---|---|---|
tls |
Tls |
TLS configuration (applies to tls:// endpoints only). |
Structured Data
Section titled “Structured Data”Structured Data
| Field | Type | Required | Description |
|---|---|---|---|
structured-data |
Structured Data |
Optional 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
Section titled “Schema”- Hostname Options
- App Name Options
- Procid Options
- Msgid Options
- Facility Options
- Severity Options
- Batch Fields
- Retry - Backoff Fields
- Retry Fields
- Tls Fields
- Structured Data Fields
- Batch - Mode Options
- Format Options
- Framing Options
- Retry - Backoff - Strategy Options
Hostname Options
Section titled “Hostname Options”| Option | Name | Type | Description |
|---|---|---|---|
hostname-value |
Hostname Value | string |
|
hostname-field |
Hostname Field | string |
Examples: data_field |
App Name Options
Section titled “App Name Options”| Option | Name | Type | Description |
|---|---|---|---|
app-name-value |
App Name Value | string |
|
app-name-field |
App Name Field | string |
Examples: data_field |
Procid Options
Section titled “Procid Options”| Option | Name | Type | Description |
|---|---|---|---|
proc-id-value |
Proc Id Value | string |
|
proc-id-field |
Proc Id Field | string |
Examples: data_field |
Msgid Options
Section titled “Msgid Options”| Option | Name | Type | Description |
|---|---|---|---|
msg-id-value |
Msg Id Value | string |
|
msg-id-field |
Msg Id Field | string |
Examples: data_field |
Facility Options
Section titled “Facility Options”| Option | Name | Type | Description |
|---|---|---|---|
facility-value |
Facility Value | string |
|
facility-field |
Facility Field | string |
Examples: data_field |
Severity Options
Section titled “Severity Options”| Option | Name | Type | Description |
|---|---|---|---|
severity-value |
Severity Value | string |
|
severity-field |
Severity Field | string |
Examples: data_field |
Batch Fields
Section titled “Batch Fields”| Field | Type | Required | Description |
|---|---|---|---|
fixed-size ✓ |
number (integer) |
maximum number of events in an output batch. Examples: 42, 1.2e-10 |
|
max-bytes ✓ |
number (integer) |
Close the batch before adding an event that would make the serialized request payload exceed this many bytes. Examples: 42, 1.2e-10 |
|
mode |
Mode |
✅ | If ‘document’ send on end of document generated by input. If ‘fixed’, use fixed_size.Allowed values: fixed, document |
timeout |
time-interval (string) |
✅ | interval after which the batch is sent, to keep throughput going (default 100ms). Default: 100msExamples: 500ms, 2h |
header |
multiline-text (string) |
put a header line before the batch. | |
footer |
multiline-text (string) |
put a header line after the last line of the batch. | |
use-document-marker ✓ |
boolean (bool) |
Enrich the job metadata with a document marker (for document handling in batch mode). Default: false |
|
wrap-as-json ✓ |
boolean (bool) |
Format the output batch as a JSON array. Default: false |
Retry - Backoff Fields
Section titled “Retry - Backoff Fields”| Field | Type | Required | Description |
|---|---|---|---|
strategy |
Strategy |
Backoff strategy to use (default exponential). Allowed values: exponential, linear, fixed |
|
base |
string |
Base delay before retrying (e.g. “200ms”). | |
max |
string |
Maximum delay between retries. | |
jitter ✓ |
boolean (bool) |
Whether to add jitter to retry delays. Default: false |
Retry Fields
Section titled “Retry Fields”| Field | Type | Required | Description |
|---|---|---|---|
max-attempts |
number (integer) |
Maximum attempts before giving up. Examples: 42, 1.2e-10 |
|
forever ✓ |
boolean (bool) |
Retry indefinitely until cancelled. Default: false |
|
backoff |
Backoff |
Backoff strategy configuration. |
Tls Fields
Section titled “Tls Fields”| Field | Type | Required | Description |
|---|---|---|---|
ca-certificate |
string |
Custom CA certificate bundle (PEM or path). | |
client-certificate |
string |
Client certificate for mutual TLS (PEM or path). | |
client-key |
string |
Client private key for mutual TLS (PEM or path). | |
server-name |
string |
Override the TLS server name used for certificate validation (SNI). | |
insecure-skip-verify ✓ |
boolean (bool) |
Skip certificate validation (development only). Default: false |
Structured Data Fields
Section titled “Structured Data Fields”| Field | Type | Required | Description |
|---|---|---|---|
sd-id |
string |
✅ | SD-ID used for the RFC 5424 structured data element (example: lyftdata@32473). |
parse-json-string ✓ |
boolean (bool) |
If the payload is a JSON string, parse it as JSON (must decode to an object) before encoding into structured data. Default: false |
Batch - Mode Options
Section titled “Batch - Mode Options”| Value | Aliases | Name | Description |
|---|---|---|---|
fixed |
fixed | ||
document |
document |
Format Options
Section titled “Format Options”| Value | Aliases | Name | Description |
|---|---|---|---|
rfc5424 |
rfc5424 | ||
rfc3164 |
rfc3164 |
Framing Options
Section titled “Framing Options”| Value | Aliases | Name | Description |
|---|---|---|---|
octet-counting |
octet-counting | RFC 6587 octet-counting framing: <len> <message>. |
|
newline |
newline | Newline-delimited framing (LF). |
Retry - Backoff - Strategy Options
Section titled “Retry - Backoff - Strategy Options”| Value | Aliases | Name | Description |
|---|---|---|---|
exponential |
exponential | ||
linear |
linear | ||
fixed |
fixed |