Blame SOURCES/rsyslog.conf

b65758
# rsyslog configuration file
b65758
b65758
# For more information see /usr/share/doc/rsyslog-*/rsyslog_conf.html
b65758
# If you experience problems, see http://www.rsyslog.com/doc/troubleshoot.html
b65758
b65758
#### MODULES ####
b65758
b65758
# The imjournal module bellow is now used as a message source instead of imuxsock.
b65758
$ModLoad imuxsock # provides support for local system logging (e.g. via logger command)
b65758
$ModLoad imjournal # provides access to the systemd journal
b65758
#$ModLoad imklog # reads kernel messages (the same are read from journald)
b65758
#$ModLoad immark  # provides --MARK-- message capability
b65758
b65758
# Provides UDP syslog reception
b65758
#$ModLoad imudp
b65758
#$UDPServerRun 514
b65758
b65758
# Provides TCP syslog reception
b65758
#$ModLoad imtcp
b65758
#$InputTCPServerRun 514
b65758
b65758
b65758
#### GLOBAL DIRECTIVES ####
b65758
b65758
# Where to place auxiliary files
b65758
$WorkDirectory /var/lib/rsyslog
b65758
b65758
# Use default timestamp format
b65758
$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
b65758
b65758
# File syncing capability is disabled by default. This feature is usually not required,
b65758
# not useful and an extreme performance hit
b65758
#$ActionFileEnableSync on
b65758
b65758
# Include all config files in /etc/rsyslog.d/
b65758
$IncludeConfig /etc/rsyslog.d/*.conf
b65758
b65758
# Turn off message reception via local log socket;
b65758
# local messages are retrieved through imjournal now.
b65758
$OmitLocalLogging on
b65758
b65758
# File to store the position in the journal
b65758
$IMJournalStateFile imjournal.state
b65758
b65758
b65758
#### RULES ####
b65758
b65758
# Log all kernel messages to the console.
b65758
# Logging much else clutters up the screen.
b65758
#kern.*                                                 /dev/console
b65758
b65758
# Log anything (except mail) of level info or higher.
b65758
# Don't log private authentication messages!
b65758
*.info;mail.none;authpriv.none;cron.none                /var/log/messages
b65758
b65758
# The authpriv file has restricted access.
b65758
authpriv.*                                              /var/log/secure
b65758
b65758
# Log all the mail messages in one place.
b65758
mail.*                                                  -/var/log/maillog
b65758
b65758
b65758
# Log cron stuff
b65758
cron.*                                                  /var/log/cron
b65758
b65758
# Everybody gets emergency messages
b65758
*.emerg                                                 :omusrmsg:*
b65758
b65758
# Save news errors of level crit and higher in a special file.
b65758
uucp,news.crit                                          /var/log/spooler
b65758
b65758
# Save boot messages also to boot.log
b65758
local7.*                                                /var/log/boot.log
b65758
b65758
b65758
# ### begin forwarding rule ###
b65758
# The statement between the begin ... end define a SINGLE forwarding
b65758
# rule. They belong together, do NOT split them. If you create multiple
b65758
# forwarding rules, duplicate the whole block!
b65758
# Remote Logging (we use TCP for reliable delivery)
b65758
#
b65758
# An on-disk queue is created for this action. If the remote host is
b65758
# down, messages are spooled to disk and sent when it is up again.
b65758
#$ActionQueueFileName fwdRule1 # unique name prefix for spool files
b65758
#$ActionQueueMaxDiskSpace 1g   # 1gb space limit (use as much as possible)
b65758
#$ActionQueueSaveOnShutdown on # save messages to disk on shutdown
b65758
#$ActionQueueType LinkedList   # run asynchronously
b65758
#$ActionResumeRetryCount -1    # infinite retries if host is down
b65758
# remote host is: name/ip:port, e.g. 192.168.0.1:514, port optional
b65758
#*.* @@remote-host:514
b65758
# ### end of the forwarding rule ###