d88cb68f4e74e22ef7a132b27d62cf790be7e429
[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 imklog   # provides kernel logging support (previously done by rklogd) 
13 #$ModLoad immark  # provides --MARK-- message capability
14
15 # provides UDP syslog reception
16 #$ModLoad imudp
17 #$UDPServerRun 514
18
19 # provides TCP syslog reception
20 #$ModLoad imtcp
21 #$InputTCPServerRun 514
22
23
24 ###########################
25 #### GLOBAL DIRECTIVES ####
26 ###########################
27
28 #
29 # Use traditional timestamp format.
30 # To enable high precision timestamps, comment out the following line.
31 #
32 $ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
33
34 #
35 # Set the default permissions for all log files.
36 #
37 $FileOwner root
38 $FileGroup adm
39 $FileCreateMode 0640
40 $DirCreateMode 0755
41
42 #
43 # Include all config files in /etc/rsyslog.d/
44 #
45 $IncludeConfig /etc/rsyslog.d/*.conf
46
47
48 ###############
49 #### RULES ####
50 ###############
51
52 #
53 # First some standard log files.  Log by facility.
54 #
55 auth,authpriv.*                 /var/log/auth.log
56 *.*;auth,authpriv.none          -/var/log/syslog
57 #cron.*                         /var/log/cron.log
58 daemon.*                        -/var/log/daemon.log
59 kern.*                          -/var/log/kern.log
60 lpr.*                           -/var/log/lpr.log
61 mail.*                          -/var/log/mail.log
62 user.*                          -/var/log/user.log
63
64 #
65 # Logging for the mail system.  Split it up so that
66 # it is easy to write scripts to parse these files.
67 #
68 mail.info                       -/var/log/mail.info
69 mail.warn                       -/var/log/mail.warn
70 mail.err                        /var/log/mail.err
71
72 #
73 # Logging for INN news system.
74 #
75 news.crit                       /var/log/news/news.crit
76 news.err                        /var/log/news/news.err
77 news.notice                     -/var/log/news/news.notice
78
79 #
80 # Some "catch-all" log files.
81 #
82 *.=debug;\
83         auth,authpriv.none;\
84         news.none;mail.none     -/var/log/debug
85 *.=info;*.=notice;*.=warn;\
86         auth,authpriv.none;\
87         cron,daemon.none;\
88         mail,news.none          -/var/log/messages
89
90 #
91 # Emergencies are sent to everybody logged in.
92 #
93 *.emerg                         *
94
95 #
96 # I like to have messages displayed on the console, but only on a virtual
97 # console I usually leave idle.
98 #
99 #daemon,mail.*;\
100 #       news.=crit;news.=err;news.=notice;\
101 #       *.=debug;*.=info;\
102 #       *.=notice;*.=warn       /dev/tty8
103
104 # The named pipe /dev/xconsole is for the `xconsole' utility.  To use it,
105 # you must invoke `xconsole' with the `-file' option:
106
107 #    $ xconsole -file /dev/xconsole [...]
108 #
109 # NOTE: adjust the list below, or you'll go crazy if you have a reasonably
110 #      busy site..
111 #
112 daemon.*;mail.*;\
113         news.err;\
114         *.=debug;*.=info;\
115         *.=notice;*.=warn       |/dev/xconsole