blob: 843bdd44f4b06222496cb59acc04cd3fadb2efaa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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
|