summaryrefslogtreecommitdiffstats
path: root/linhes/rsyslog/rsyslog.conf
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2023-02-12 03:49:43 (GMT)
committerBritney Fransen <brfransen@gmail.com>2023-02-12 03:49:43 (GMT)
commit5efcdf226ceab10275f16f6c86b377b535105b2c (patch)
tree81f080ed0e5bd69e9a0c6248147b4c4e65722dd0 /linhes/rsyslog/rsyslog.conf
parent4c764996f8bcf61f06dfa59fafb71bb04de298cc (diff)
downloadlinhes_pkgbuild-5efcdf226ceab10275f16f6c86b377b535105b2c.zip
linhes_pkgbuild-5efcdf226ceab10275f16f6c86b377b535105b2c.tar.gz
linhes_pkgbuild-5efcdf226ceab10275f16f6c86b377b535105b2c.tar.bz2
rsyslog: rsyslog.conf: udpate defaults
Diffstat (limited to 'linhes/rsyslog/rsyslog.conf')
-rw-r--r--linhes/rsyslog/rsyslog.conf23
1 files changed, 14 insertions, 9 deletions
diff --git a/linhes/rsyslog/rsyslog.conf b/linhes/rsyslog/rsyslog.conf
index 843bdd4..feb9621 100644
--- a/linhes/rsyslog/rsyslog.conf
+++ b/linhes/rsyslog/rsyslog.conf
@@ -1,24 +1,29 @@
-# Minimal config
+# if you experience problems, check
+# http://www.rsyslog.com/troubleshoot for assistance
+$ModLoad immark # provides --MARK-- message capability
$ModLoad imuxsock # provides support for local system logging
$ModLoad imklog # provides kernel logging support
+$ModLoad imjournal # Provides the ability to import log messages from systemd journal
$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
$FileOwner root
$FileGroup root
-$FileCreateMode 0640
+$FileCreateMode 0644
$DirCreateMode 0755
$Umask 0022
+$SystemLogRateLimitInterval 2
+$SystemLogRateLimitBurst 500
$WorkDirectory /var/spool/rsyslog
$IncludeConfig /etc/rsyslog.d/*.conf
-$template DailyPerHostLogs,"/var/log/%HOSTNAME%_messages.log"
-$template DynFile,"/var/log/%HOSTNAME%_%programname%.log"
-$template DynMail,"/var/log/%HOSTNAME%_maillog.log"
-$template DynCron,"/var/log/%HOSTNAME%_cron.log"
-$template DynBoot,"/var/log/%HOSTNAME%_boot.log"
-$template DynSpooler,"/var/log/%HOSTNAME%_spooler.log"
-$template DynLighttpd,"/var/log/%HOSTNAME%_lighttpd.log"
+$template DailyPerHostLogs,"/var/log/%$YEAR%-%$MONTH%-%$DAY%/%HOSTNAME%_messages.log"
+$template DynFile,"/var/log/%$YEAR%-%$MONTH%-%$DAY%/%HOSTNAME%_%programname%.log"
+$template DynMail,"/var/log/%$YEAR%-%$MONTH%-%$DAY%/%HOSTNAME%_maillog.log"
+$template DynCron,"/var/log/%$YEAR%-%$MONTH%-%$DAY%/%HOSTNAME%_cron.log"
+$template DynBoot,"/var/log/%$YEAR%-%$MONTH%-%$DAY%/%HOSTNAME%_boot.log"
+$template DynSpooler,"/var/log/%$YEAR%-%$MONTH%-%$DAY%/%HOSTNAME%_spooler.log"
+$template DynLighttpd,"/var/log/%$YEAR%-%$MONTH%-%$DAY%/%HOSTNAME%_lighttpd.log"
if $programname contains 'lighttpd' then ?DynLighttpd
& stop