2024-07-09 23:58:57 +00:00
|
|
|
# minimal rsyslog configuration file for the installer boot.iso
|
2018-06-18 18:56:22 +00:00
|
|
|
|
2024-07-09 23:58:57 +00:00
|
|
|
# provides support for local system logging (e.g. via logger command)
|
|
|
|
# disables message dropping, we need all of them
|
|
|
|
# Turn off message reception via local log socket;
|
|
|
|
# local messages are retrieved through imjournal now.
|
|
|
|
module(load="imuxsock"
|
|
|
|
SysSock.RateLimit.Interval="0"
|
|
|
|
SysSock.Use="off")
|
2018-06-18 18:56:22 +00:00
|
|
|
|
2024-07-09 23:58:57 +00:00
|
|
|
# provides access to the systemd journal
|
2020-07-07 22:26:52 +00:00
|
|
|
# Disable rate limiting to the journal, we need all the messages for debugging
|
2024-07-09 23:58:57 +00:00
|
|
|
module(load="imjournal"
|
|
|
|
Ratelimit.Interval="0"
|
|
|
|
Ratelimit.Burst="0"
|
|
|
|
StateFile="imjournal.state")
|
2018-06-18 18:56:22 +00:00
|
|
|
|
2024-07-09 23:58:57 +00:00
|
|
|
module(load="imfile" mode="inotify")
|
|
|
|
input(type="imfile"
|
|
|
|
File="/tmp/X.log"
|
|
|
|
Tag="xserver:"
|
|
|
|
Facility="local1")
|
2018-06-18 18:56:22 +00:00
|
|
|
|
2024-07-09 23:58:57 +00:00
|
|
|
input(type="imfile"
|
|
|
|
File="/tmp/anaconda-tb-all.log"
|
|
|
|
Tag="anaconda-tb:"
|
|
|
|
Facility="local1")
|
2018-06-18 18:56:22 +00:00
|
|
|
|
2024-07-09 23:58:57 +00:00
|
|
|
module(load="builtin:omfile"
|
|
|
|
Template="RSYSLOG_TraditionalFileFormat"
|
|
|
|
)
|
2018-06-18 18:56:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
#### GLOBAL DIRECTIVES ####
|
|
|
|
|
|
|
|
# Where to place auxiliary files
|
2024-07-09 23:58:57 +00:00
|
|
|
global(workDirectory="/var/lib/rsyslog")
|
2018-06-18 18:56:22 +00:00
|
|
|
|
|
|
|
# Include all config files in /etc/rsyslog.d/
|
2024-07-09 23:58:57 +00:00
|
|
|
include(file="/etc/rsyslog.d/*.conf")
|
2018-06-18 18:56:22 +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 ####
|
|
|
|
|
|
|
|
# log everything except anaconda-specific records from local1 (those are stored
|
|
|
|
# directly into files via python logging)
|
|
|
|
|
|
|
|
# discard messages from dracut regenerating initrd
|
2023-01-11 17:59:45 +00:00
|
|
|
:programname,isequal,"dracut" stop
|
2018-06-18 18:56:22 +00:00
|
|
|
|
|
|
|
*.*;\
|
|
|
|
authpriv.none;\
|
|
|
|
local1.none /tmp/syslog;anaconda_syslog
|
|
|
|
& /dev/tty4;anaconda_tty4
|
|
|
|
|
|
|
|
|
|
|
|
# ### 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!
|
|
|
|
# Remote Logging (we use TCP for reliable delivery)
|
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
#$ActionQueueFileName fwdRule1 # unique name prefix for spool files
|
|
|
|
$ActionQueueMaxDiskSpace 1m # space limit (use as much as possible)
|
|
|
|
$ActionQueueSaveOnShutdown off # do not save messages to disk on shutdown
|
|
|
|
#$ActionQueueType LinkedList # run asynchronously
|
|
|
|
#$ActionResumeRetryCount -1 # infinite retries if host is down
|
|
|
|
# remote host is: name/ip:port, e.g. 192.168.0.1:514, port optional
|
|
|
|
#*.* @@remote-host:514
|
|
|
|
# ### end of the forwarding rule ###
|