Skip to content

write_syslog

Writes events as syslog.

write_syslog [facility=int, severity=int, timestamp=time, hostname=string,
app_name=string, process_id=string, message_id=string,
structured_data=record, message=string]

Writes events as RFC 5424 Syslog messages.

All options to the operator try to get values for the respective fields from the same-named fields in the input events if unspecified.

Set the facility of the syslog.

Defaults to 1 if null.

Set the severity of the syslog.

Defaults to 6 if null.

Set the timestamp of the syslog.

Set the hostname of the syslog.

Set the application name of the syslog.

Set the process id of the syslog.

Set the message id of the syslog.

Set the structured data of the syslog.

Set the message of the syslog.

from {
facility: 1,
severity: 1,
timestamp: now(),
hostname: "localhost",
structured_data: {
origin: {
key: "value",
},
},
message: "Tenzir",
}
write_syslog
<9>1 2025-03-31T13:28:55.971210Z localhost - - - [origin key="value"] Tenzir

parse_syslog, print_syslog, read_syslog