diff options
author | Britney Fransen <brfransen@gmail.com> | 2023-02-01 22:46:22 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2023-02-01 22:46:22 (GMT) |
commit | f3a5f1cbfcc685d03c859e597cf19260868e2498 (patch) | |
tree | 75edd3a1b64f86b8aa2537771f4752b807d4ff76 /linhes/rsyslog/rsyslog.conf | |
parent | f60be96c26c0208a9df48f25c5f435292c0d6b6c (diff) | |
download | linhes_pkgbuild-f3a5f1cbfcc685d03c859e597cf19260868e2498.zip linhes_pkgbuild-f3a5f1cbfcc685d03c859e597cf19260868e2498.tar.gz linhes_pkgbuild-f3a5f1cbfcc685d03c859e597cf19260868e2498.tar.bz2 |
rsyslog: initial inclusion
Diffstat (limited to 'linhes/rsyslog/rsyslog.conf')
-rw-r--r-- | linhes/rsyslog/rsyslog.conf | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/linhes/rsyslog/rsyslog.conf b/linhes/rsyslog/rsyslog.conf new file mode 100644 index 0000000..843bdd4 --- /dev/null +++ b/linhes/rsyslog/rsyslog.conf @@ -0,0 +1,54 @@ +# Minimal config + +$ModLoad imuxsock # provides support for local system logging +$ModLoad imklog # provides kernel logging support +$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat +$FileOwner root +$FileGroup root +$FileCreateMode 0640 +$DirCreateMode 0755 +$Umask 0022 +$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" + +if $programname contains 'lighttpd' then ?DynLighttpd +& stop + + +# Log anything (except mail) of level info or higher. +# Don't log private authentication messages! +#*.info;mail.none;authpriv.none;cron.none -/var/log/messages +*.info;mail.none;authpriv.none;cron.none;local6.none -?DailyPerHostLogs +*.info;mail.none;authpriv.none;cron.none;local6.none -?DynFile + +# The authpriv file has restricted access. +#authpriv.* /var/log/secure +authpriv.* ?DynFile + +# Log all the mail messages in one place. +#mail.* -/var/log/maillog +mail.* ?DynMail + +# Log cron stuff +#cron.* -/var/log/cron +cron.* ?DynCron + +# Everybody gets emergency messages +*.emerg :omusrmsg:* + +# Save news errors of level crit and higher in a special file. +#uucp,news.crit -/var/log/spooler +uucp,news.crit -?DynSpooler + +# Save boot messages also to boot.log +#local7.* /var/log/boot.log +local7.* ?DynBoot |