Blame SOURCES/rsyslog.conf

c16178
# rsyslog configuration file
c16178
c16178
# For more information see /usr/share/doc/rsyslog-*/rsyslog_conf.html
c16178
# or latest version online at http://www.rsyslog.com/doc/rsyslog_conf.html 
c16178
# If you experience problems, see http://www.rsyslog.com/doc/troubleshoot.html
c16178
c16178
#### MODULES ####
c16178
c16178
module(load="imuxsock" 	  # provides support for local system logging (e.g. via logger command)
c16178
       SysSock.Use="off") # Turn off message reception via local log socket; 
c16178
			  # local messages are retrieved through imjournal now.
c16178
module(load="imjournal" 	    # provides access to the systemd journal
c16178
       StateFile="imjournal.state") # File to store the position in the journal
c16178
#module(load="imklog") # reads kernel messages (the same are read from journald)
c16178
#module(load"immark") # provides --MARK-- message capability
c16178
c16178
# Provides UDP syslog reception
c16178
# for parameters see http://www.rsyslog.com/doc/imudp.html
c16178
#module(load="imudp") # needs to be done just once
c16178
#input(type="imudp" port="514")
c16178
c16178
# Provides TCP syslog reception
c16178
# for parameters see http://www.rsyslog.com/doc/imtcp.html
c16178
#module(load="imtcp") # needs to be done just once
c16178
#input(type="imtcp" port="514")
c16178
c16178
#### GLOBAL DIRECTIVES ####
c16178
c16178
# Where to place auxiliary files
c16178
global(workDirectory="/var/lib/rsyslog")
c16178
c16178
# Use default timestamp format
c16178
module(load="builtin:omfile" Template="RSYSLOG_TraditionalFileFormat")
c16178
c16178
# Include all config files in /etc/rsyslog.d/
c16178
include(file="/etc/rsyslog.d/*.conf" mode="optional")
c16178
c16178
#### RULES ####
c16178
c16178
# Log all kernel messages to the console.
c16178
# Logging much else clutters up the screen.
c16178
#kern.*                                                 /dev/console
c16178
c16178
# Log anything (except mail) of level info or higher.
c16178
# Don't log private authentication messages!
c16178
*.info;mail.none;authpriv.none;cron.none                /var/log/messages
c16178
c16178
# The authpriv file has restricted access.
c16178
authpriv.*                                              /var/log/secure
c16178
c16178
# Log all the mail messages in one place.
c16178
mail.*                                                  -/var/log/maillog
c16178
c16178
c16178
# Log cron stuff
c16178
cron.*                                                  /var/log/cron
c16178
c16178
# Everybody gets emergency messages
c16178
*.emerg                                                 :omusrmsg:*
c16178
c16178
# Save news errors of level crit and higher in a special file.
c16178
uucp,news.crit                                          /var/log/spooler
c16178
c16178
# Save boot messages also to boot.log
c16178
local7.*                                                /var/log/boot.log
c16178
c16178
c16178
# ### sample forwarding rule ###
c16178
#action(type="omfwd"  
c16178
# An on-disk queue is created for this action. If the remote host is
c16178
# down, messages are spooled to disk and sent when it is up again.
c16178
#queue.filename="fwdRule1"       # unique name prefix for spool files
c16178
#queue.maxdiskspace="1g"         # 1gb space limit (use as much as possible)
c16178
#queue.saveonshutdown="on"       # save messages to disk on shutdown
c16178
#queue.type="LinkedList"         # run asynchronously
c16178
#action.resumeRetryCount="-1"    # infinite retries if host is down
c16178
# Remote Logging (we use TCP for reliable delivery)
c16178
# remote_host is: name/ip, e.g. 192.168.0.1, port optional e.g. 10514
c16178
#Target="remote_host" Port="XXX" Protocol="tcp")