Syslog (RFC5424) output
The syslog
output sends log records over a socket using the Syslog protocol (RFC 5424).
The following example also configures disk-based buffering for the output. For details, see the Syslog-ng DiskBuffer options.
For details on the available options of the output, see the syslog-ng documentation.
host (string, required)
Address of the destination host
Default: -
port (int, optional)
The port number to connect to. more information
Default: -
transport (string, optional)
Specifies the protocol used to send messages to the destination server. more information more information
Default: -
close_on_input (*bool, optional)
By default, syslog-ng OSE closes destination sockets if it receives any input from the socket (for example, a reply). If this option is set to no, syslog-ng OSE just ignores the input, but does not close the socket. more information
Default: -
flags ([]string, optional)
Flags influence the behavior of the destination driver. more information
Default: -
flush_lines (int, optional)
Specifies how many lines are flushed to a destination at a time. more information
Default: -
so_keepalive (*bool, optional)
Enables keep-alive messages, keeping the socket open. more information
Default: -
suppress (int, optional)
Specifies the number of seconds syslog-ng waits for identical messages. more information
Default: -
template (string, optional)
Specifies a template defining the logformat to be used in the destination. more information
Default: 0
template_escape (*bool, optional)
Turns on escaping for the ‘, “, and backspace characters in templated output files. more information
Default: -
tls (*TLS, optional)
Sets various options related to TLS encryption, for example, key/certificate files and trusted CA locations. more information
Default: -
ts_format (string, optional)
Override the global timestamp format (set in the global ts-format() parameter) for the specific destination. more information
Default: -
disk_buffer (*DiskBuffer, optional)
Enables putting outgoing messages into the disk buffer of the destination to avoid message loss in case of a system failure on the destination side. For details, see the Syslog-ng DiskBuffer options.
Default: -
persist_name (string, optional)
Unique name for the syslog-ng driver more information
Default: -