5ad1ede7ce0f4a0056afdf80b1e221be77d1c46a
[matthijs/servers/drsnuggles.git] / etc / rsyslog.conf
1 #  /etc/rsyslog.conf    Configuration file for rsyslog v3.
2 #
3 #                       For more information see 
4 #                       /usr/share/doc/rsyslog-doc/html/rsyslog_conf.html
5
6
7 #################
8 #### MODULES ####
9 #################
10
11 $ModLoad imuxsock # provides support for local system logging
12 $ModLoad immark   # provides --MARK-- message capability
13 $MarkMessagePeriod  900 # mark messages appear every 15 Minutes
14
15 ###########################
16 #### GLOBAL DIRECTIVES ####
17 ###########################
18
19 #
20 # Use traditional timestamp format.
21 # To enable high precision timestamps, comment out the following line.
22 #
23 $ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
24
25 #
26 # Set the default permissions for all log files.
27 #
28 $FileOwner root
29 $FileGroup adm
30 $FileCreateMode 0640
31 $DirCreateMode 0755
32
33 #
34 # Include all config files in /etc/rsyslog.d/
35 #
36 $IncludeConfig /etc/rsyslog.d/*.conf
37
38
39 ###############
40 #### RULES ####
41 ###############
42
43 #
44 # Log each facility into its own log
45 auth,authpriv.*                 /var/log/auth.log
46 cron.*                          -/var/log/user.log
47 daemon.*                        -/var/log/daemon.log
48 kern.*                          -/var/log/kern.log
49 lpr.*                           -/var/log/lpr.log
50 mail.*                          -/var/log/mail.log
51 user.*                          -/var/log/user.log
52 local0,local1,local2,\
53         local3,local4,local5,\
54         local6,local7.*         -/var/log/local.log
55
56 # Omitted facilities: syslog, news, uucp, ftp
57
58 # All logs end up in syslog as weel as the corresponding facility log above
59 # (except for auth, mail which only end up in the facility log for privacy
60 # reasons and debug which only ends up in the debug log below to prevent
61 # flooding).
62 *.*;\
63         *.!=debug;\
64         auth,authpriv.none;\
65         mail.none               -/var/log/syslog
66
67 # Debug entries end up in debug.log as well as the corresponding facility log
68 # above (except for auth and mail, which only end up in the facility logs for
69 # privacy reasons).
70 *.=debug;\
71         auth,authpriv.none;\
72         news.none;mail.none     -/var/log/debug.log
73 #
74 # Emergencies are sent to everybody logged in.
75 #
76 *.emerg                         *