update config example in remote.conf to match upstream documentation OBS-URL: https://build.opensuse.org/request/show/948347 OBS-URL: https://build.opensuse.org/package/show/Base:System/rsyslog?expand=0&rev=342
86 lines
3.6 KiB
Plaintext
86 lines
3.6 KiB
Plaintext
##
|
|
## === When you're using remote logging, enable on-disk queues ===
|
|
## === in rsyslog.d/remote.conf. ===
|
|
##
|
|
## Note, that when the MYSQL, PGSQL, GSSAPI, GnuTLS or SNMP modules
|
|
## (provided in separate rsyslog-module-* packages) are enabled, the
|
|
## configuration can't be used on a system with /usr on a remote
|
|
## filesystem, except on newer systems where initrd mounts /usr.
|
|
## [The modules are linked against libraries installed bellow of
|
|
## /usr thus also installed in /usr/lib*/rsyslog because of this.]
|
|
##
|
|
|
|
# ######### Enable On-Disk queues for remote logging ##########
|
|
#
|
|
# An on-disk queue is created for this action. If the remote host is
|
|
# down, messages are spooled to disk and sent when it is up again.
|
|
#
|
|
#$WorkDirectory RSYSLOG_SPOOL_DIR # where to place spool files
|
|
#$ActionQueueFileName uniqName # unique name prefix for spool files
|
|
#$ActionQueueMaxDiskSpace 1g # 1gb space limit (use as much as possible)
|
|
#$ActionQueueSaveOnShutdown on # save messages to disk on shutdown
|
|
#$ActionQueueType LinkedList # run asynchronously
|
|
#$ActionResumeRetryCount -1 # infinite retries if host is down
|
|
|
|
# ######### Sending Messages to Remote Hosts ##########
|
|
|
|
# Remote Logging using TCP for reliable delivery
|
|
# remote host is: name/ip:port, e.g. 192.168.0.1:514, port optional
|
|
#*.* @@remote-host
|
|
|
|
# Remote Logging using UDP
|
|
# remote host is: name/ip:port, e.g. 192.168.0.1:514, port optional
|
|
#*.* @remote-host
|
|
|
|
# ######### Receiving Messages from Remote Hosts ##########
|
|
# TCP Syslog Server:
|
|
# provides TCP syslog reception and GSS-API (if compiled to support it)
|
|
# see https://www.rsyslog.com/receiving-messages-from-a-remote-system
|
|
# module(load="imtcp")
|
|
# input(type="imtcp" port="514" Address="10.10.0.1")
|
|
# alternative syntax
|
|
#$ModLoad imtcp.so # load module
|
|
#$Address 10.10.0.1 # force to listen on this IP only
|
|
#$Port <port> # Starts a TCP server on selected port
|
|
# Legacy configuration parameters that should not be used when crafting new configuration files.
|
|
##$UDPServerAddress 10.10.0.1 # force to listen on this IP only
|
|
#$InputTCPServerRun <port> # Starts a TCP server on selected port
|
|
|
|
# UDP Syslog Server:
|
|
# module(load="imudp")
|
|
# input(type="imudp" port="514" Address="10.10.0.1")
|
|
# alternative syntax
|
|
#$ModLoad imudp.so # provides UDP syslog reception
|
|
#$Adress 10.10.0.1 # force to listen on this IP only
|
|
#$Port 514 # start a UDP syslog server at standard port 514
|
|
# Legacy configuration parameters that should not be used when crafting new configuration files.
|
|
#$UDPServerAddress 10.10.0.1 # force to listen on this IP only
|
|
#$UDPServerRun 514 # start a UDP syslog server at standard port 514
|
|
|
|
########### Encrypting Syslog Traffic with TLS ##########
|
|
# -- TLS Syslog Server:
|
|
## make gtls driver the default
|
|
#$DefaultNetstreamDriver gtls
|
|
#
|
|
## certificate files
|
|
#$DefaultNetstreamDriverCAFile ETC_RSYSLOG_D_DIR/ca.pem
|
|
#$DefaultNetstreamDriverCertFile ETC_RSYSLOG_D_DIR/server_cert.pem
|
|
#$DefaultNetstreamDriverKeyFile ETC_RSYSLOG_D_DIR/server_key.pem
|
|
#
|
|
#$ModLoad imtcp # load TCP listener
|
|
#
|
|
#$InputTCPServerStreamDriverMode 1 # run driver in TLS-only mode
|
|
#$InputTCPServerStreamDriverAuthMode anon # client is NOT authenticated
|
|
#$InputTCPServerRun 10514 # start up listener at port 10514
|
|
#
|
|
# -- TLS Syslog Client:
|
|
## certificate files - just CA for a client
|
|
#$DefaultNetstreamDriverCAFile ETC_RSYSLOG_D_DIR/ca.pem
|
|
#
|
|
## set up the action
|
|
#$DefaultNetstreamDriver gtls # use gtls netstream driver
|
|
#$ActionSendStreamDriverMode 1 # require TLS for the connection
|
|
#$ActionSendStreamDriverAuthMode anon # server is NOT authenticated
|
|
#*.* @@(o)server.example.net:10514 # send (all) messages
|
|
|