rsyslog.conf: Update to use current config syntax

This commit switches to using the rewritten config file from the
upstream templates. This fixes the problem with writing the state file
to the workDirectory and uses modern syntax.

Resolves: RHEL-28654
This commit is contained in:
Brian C. Lane 2024-07-09 16:58:57 -07:00
parent 7d2788a480
commit b6671d6867

View File

@ -1,62 +1,43 @@
# rsyslog configuration file # minimal rsyslog configuration file for the installer boot.iso
# For more information see /usr/share/doc/rsyslog-*/rsyslog_conf.html # provides support for local system logging (e.g. via logger command)
# If you experience problems, see http://www.rsyslog.com/doc/troubleshoot.html # 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")
#### MODULES #### # provides access to the systemd journal
# The imjournal module below is now used as a message source instead of imuxsock.
$ModLoad imuxsock # provides support for local system logging (e.g. via logger command)
$SystemLogRateLimitInterval 0 # disables message dropping, we need all of them
$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
# Disable rate limiting to the journal, we need all the messages for debugging # Disable rate limiting to the journal, we need all the messages for debugging
$imjournalRatelimitInterval 0 module(load="imjournal"
$imjournalRatelimitBurst 0 Ratelimit.Interval="0"
Ratelimit.Burst="0"
StateFile="imjournal.state")
# Provides UDP syslog reception module(load="imfile" mode="inotify")
#$ModLoad imudp input(type="imfile"
#$UDPServerRun 514 File="/tmp/X.log"
Tag="xserver:"
Facility="local1")
# Provides TCP syslog reception input(type="imfile"
#$ModLoad imtcp File="/tmp/anaconda-tb-all.log"
#$InputTCPServerRun 514 Tag="anaconda-tb:"
Facility="local1")
$ModLoad imfile module(load="builtin:omfile"
$InputFileName /tmp/X.log Template="RSYSLOG_TraditionalFileFormat"
$InputFileTag xserver: )
$InputFileStateFile xserver-statefile
$InputFileFacility local1
$InputRunFileMonitor
$InputFileName /tmp/anaconda-tb-all.log
$InputFileTag anaconda-tb:
$InputFileStateFile anaconda-tb-statefile
$InputFileFacility local1
$InputRunFileMonitor
#### GLOBAL DIRECTIVES #### #### GLOBAL DIRECTIVES ####
# Where to place auxiliary files # Where to place auxiliary files
$WorkDirectory /var/lib/rsyslog global(workDirectory="/var/lib/rsyslog")
# Use default timestamp format
$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
# 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/ # Include all config files in /etc/rsyslog.d/
$IncludeConfig /etc/rsyslog.d/*.conf include(file="/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
#### TEMPLATES #### #### TEMPLATES ####