syslogο
Collect logs from Syslog
Type: syslog
{% code title=βsample.yamlβ %}
sources:
syslog_example:
type: syslog
address: 0.0.0.0:9000
mode: udp
path: ''
route_label: ''
tls:
tls.enabled: false
tls.alpn_protocols: ''
tls.verify_certificate: true
tls.verify_hostname: true
tls.ca_file: ''
tls.crt_file: ''
tls.key_file: ''
tls.key_pass: ''
# optional:
# <key>: <value>
{% endcode %}
Fields Referenceο
Below are tables for Base, TLS, and Optional sections. Columns: Key, Label, Type, Default, Required, Depends on, Enum / Notes.
Baseο
Key |
Label |
Type |
Default |
Required |
Enum / Notes |
Depends on |
|---|---|---|---|---|---|---|
address |
Address |
regex |
0.0.0.0:9000 |
β |
The socket address to listen for connections on, or systemd{#N} to use the Nth socket passed by systemd socket activation. |
β |
mode |
Mode |
enum |
udp |
β |
The type of socket to use. Enum: [βtcpβ, βudpβ, βunixβ] |
β |
path |
Path |
string |
ββ |
β |
The Unix socket path. |
mode = unix |
route_label |
Event Routing Label |
string |
ββ |
β |
The label to use in routing these events to a destination. Defaults to source name-type. |
β |
TLSο
Key |
Label |
Type |
Default |
Required |
Enum / Notes |
Depends on |
|---|---|---|---|---|---|---|
tls.enabled |
TLS Enabled |
bool |
false |
β |
Whether or not to require TLS for incoming or outgoing connections. When enabled and used for incoming connections, an identity certificate is also required. See tls.crt_file for more information. |
mode = tcp |
tls.alpn_protocols |
ALPN protocols |
string |
ββ |
β |
Sets the list of supported ALPN protocols. Declare the supported ALPN protocols, which are used during negotiation with peer. They are prioritized in the order that they are defined. |
mode = tcp |
tls.verify_certificate |
Verify Certificate |
bool |
true |
β |
Enables certificate verification. For components that create a server, this requires that the client connections have a valid client certificate. For components that initiate requests, this validates that the upstream has a valid certificate. |
mode = tcp |
tls.verify_hostname |
Verify Hostname |
bool |
true |
β |
Enables hostname verification. If enabled, the hostname used to connect to the remote host must be present in the TLS certificate presented by the remote host, either as the Common Name or as an entry in the Subject Alternative Name extension. Only relevant for outgoing connections. |
mode = tcp |
tls.ca_file |
Certificate Authority File |
file_ca_file |
ββ |
β |
Absolute path to an additional CA certificate file. |
β |
tls.crt_file |
Certificate File |
file_crt_file |
ββ |
β |
Absolute path to a certificate file used to identify this server. |
mode = tcp |
tls.key_file |
Private Key |
file_key_file |
ββ |
β |
Absolute path to a private key file used to identify this server. |
mode = tcp |
tls.key_pass |
Private Key Passphrase |
string |
ββ |
β |
Passphrase used to unlock the encrypted key file. |
mode = tcp |
Optionalο
Key |
Label |
Type |
Default |
Required |
Enum / Notes |
Depends on |
|---|---|---|---|---|---|---|
description |
Description |
string |
ββ |
β |
The description of the entry. |
β |
connection_limit |
Connection Limit |
int |
1024 |
β |
The maximum number of TCP connections that are allowed at any given time. |
mode = tcp |
keepalive.time_secs |
Keepalive Time Secs |
int |
7200 |
β |
The time to wait before starting to send TCP keepalive probes on an idle connection. |
β |
max_length |
Max Length |
int |
β |
β |
The maximum buffer size of incoming messages. |
mode = udp |
receive_buffer_bytes |
Receive Buffer |
int |
β |
β |
The size of the receive buffer used for each connection. Relevant when: mode = βtcpβ or mode = βudpβ |
β |
permit_origin |
Permit Origin |
string |
β |
β |
List of allowed origin IP networks. IP addresses must be in CIDR notation. |
mode = tcp |
socket_file_mode |
Socket File Mode |
int |
ββ |
β |
Unix file mode bits to be applied to the unix socket file as its designated file permissions. |
mode = unix |