2017-01-09 03:17:38 +00:00
|
|
|
# rsyslog configuration file
|
|
|
|
|
|
|
|
# For more information see /usr/share/doc/rsyslog-*/rsyslog_conf.html
|
|
|
|
# If you experience problems, see http://www.rsyslog.com/doc/troubleshoot.html
|
|
|
|
|
2013-01-24 10:50:02 +00:00
|
|
|
#### MODULES ####
|
2017-01-09 03:17:38 +00:00
|
|
|
|
|
|
|
# The imjournal module bellow is now used as a message source instead of imuxsock.
|
|
|
|
$ModLoad imuxsock # provides support for local system logging (e.g. via logger command)
|
2013-01-24 10:50:02 +00:00
|
|
|
$SystemLogRateLimitInterval 0 # disables message dropping, we need all of them
|
2017-01-09 03:17:38 +00:00
|
|
|
$ModLoad imjournal # provides access to the systemd journal
|
|
|
|
$ModLoad imklog # reads kernel messages (the same are read from journald)
|
|
|
|
#$ModLoad immark # provides --MARK-- message capability
|
|
|
|
|
|
|
|
# Provides UDP syslog reception
|
|
|
|
#$ModLoad imudp
|
|
|
|
#$UDPServerRun 514
|
|
|
|
|
|
|
|
# Provides TCP syslog reception
|
|
|
|
#$ModLoad imtcp
|
|
|
|
#$InputTCPServerRun 514
|
2013-01-24 10:50:02 +00:00
|
|
|
|
|
|
|
$ModLoad imfile
|
|
|
|
$InputFileName /tmp/X.log
|
|
|
|
$InputFileTag xserver:
|
|
|
|
$InputFileStateFile xserver-statefile
|
|
|
|
$InputFileFacility local1
|
|
|
|
$InputRunFileMonitor
|
|
|
|
$InputFileName /tmp/anaconda-tb-all.log
|
|
|
|
$InputFileTag anaconda-tb:
|
|
|
|
$InputFileStateFile anaconda-tb-statefile
|
|
|
|
$InputFileFacility local1
|
|
|
|
$InputRunFileMonitor
|
|
|
|
|
2017-01-09 03:17:38 +00:00
|
|
|
|
2013-01-24 10:50:02 +00:00
|
|
|
#### GLOBAL DIRECTIVES ####
|
2017-01-09 03:17:38 +00:00
|
|
|
|
|
|
|
# Where to place auxiliary files
|
|
|
|
#$WorkDirectory /var/lib/rsyslog
|
|
|
|
|
2013-01-24 10:50:02 +00:00
|
|
|
# Use default timestamp format
|
|
|
|
$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
|
|
|
|
|
2017-01-09 03:17:38 +00:00
|
|
|
# File syncing capability is disabled by default. This feature is usually not required,
|
|
|
|
# not useful and an extreme performance hit
|
|
|
|
#$ActionFileEnableSync on
|
|
|
|
|
|
|
|
# Include all config files in /etc/rsyslog.d/
|
|
|
|
$IncludeConfig /etc/rsyslog.d/*.conf
|
|
|
|
|
|
|
|
# Turn off message reception via local log socket;
|
|
|
|
# local messages are retrieved through imjournal now.
|
|
|
|
$OmitLocalLogging on
|
|
|
|
|
|
|
|
# File to store the position in the journal
|
|
|
|
$IMJournalStateFile imjournal.state
|
|
|
|
|
2013-01-24 10:50:02 +00:00
|
|
|
#### TEMPLATES ####
|
|
|
|
|
|
|
|
$template anaconda_tty4, "%syslogseverity-text:::uppercase% %programname%:%msg%\n"
|
|
|
|
$template anaconda_syslog, "%timestamp:8:$:date-rfc3164%,%timestamp:1:3:date-subseconds% %syslogseverity-text:::uppercase% %programname%:%msg%\n"
|
|
|
|
$template virtio_ForwardFormat, "<%PRI%>%TIMESTAMP:::date-rfc3339% localhost %syslogtag:1:32%%msg:::sp-if-no-1st-sp%%msg%\n"
|
|
|
|
|
|
|
|
#### RULES ####
|
2017-01-09 03:17:38 +00:00
|
|
|
|
2013-01-24 10:50:02 +00:00
|
|
|
# log everything except anaconda-specific records from local1 (those are stored
|
|
|
|
# directly into files via python logging)
|
2017-01-09 03:17:38 +00:00
|
|
|
|
|
|
|
# discard messages from dracut regenerating initrd
|
|
|
|
:programname,isequal,"dracut" ~
|
|
|
|
|
2013-01-24 10:50:02 +00:00
|
|
|
*.*;\
|
|
|
|
authpriv.none;\
|
|
|
|
local1.none /tmp/syslog;anaconda_syslog
|
|
|
|
& /dev/tty4;anaconda_tty4
|
|
|
|
|
2017-01-09 03:17:38 +00:00
|
|
|
|
2013-01-24 10:50:02 +00:00
|
|
|
# ### begin forwarding rule ###
|
|
|
|
# The statement between the begin ... end define a SINGLE forwarding
|
|
|
|
# rule. They belong together, do NOT split them. If you create multiple
|
|
|
|
# forwarding rules, duplicate the whole block!
|
2017-01-09 03:17:38 +00:00
|
|
|
# Remote Logging (we use TCP for reliable delivery)
|
2013-01-24 10:50:02 +00:00
|
|
|
#
|
|
|
|
# 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.
|
2017-01-09 03:17:38 +00:00
|
|
|
#$ActionQueueFileName fwdRule1 # unique name prefix for spool files
|
2013-01-24 10:50:02 +00:00
|
|
|
$ActionQueueMaxDiskSpace 1m # space limit (use as much as possible)
|
|
|
|
$ActionQueueSaveOnShutdown off # do not save messages to disk on shutdown
|
2017-01-09 03:17:38 +00:00
|
|
|
#$ActionQueueType LinkedList # run asynchronously
|
|
|
|
#$ActionResumeRetryCount -1 # infinite retries if host is down
|
2013-01-24 10:50:02 +00:00
|
|
|
# remote host is: name/ip:port, e.g. 192.168.0.1:514, port optional
|
2017-01-09 03:17:38 +00:00
|
|
|
#*.* @@remote-host:514
|
2013-01-24 10:50:02 +00:00
|
|
|
# ### end of the forwarding rule ###
|