4e802319 |
1 | # /etc/rsyslog.conf Configuration file for rsyslog. |
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 |
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 | # provides RELP syslog transmission |
24 | #$ModLoad omrelp |
25 | |
26 | ########################### |
27 | #### GLOBAL DIRECTIVES #### |
28 | ########################### |
29 | |
30 | # |
31 | # Use traditional timestamp format. |
32 | # To enable high precision timestamps, comment out the following line. |
33 | # |
34 | $ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat |
35 | |
36 | # |
37 | # Set the default permissions for all log files. |
38 | # |
39 | $FileOwner root |
40 | $FileGroup adm |
41 | $FileCreateMode 0640 |
42 | $DirCreateMode 0755 |
43 | $Umask 0022 |
44 | |
45 | # |
46 | # Where to place spool and state files |
47 | # |
48 | $WorkDirectory /var/spool/rsyslog |
49 | |
50 | # |
51 | # Include all config files in /etc/rsyslog.d/ |
52 | # |
53 | $IncludeConfig /etc/rsyslog.d/*.conf |
54 | |
55 | |
56 | ############### |
57 | #### RULES #### |
58 | ############### |
59 | |
60 | # |
61 | # First some standard log files. Log by facility. |
62 | # |
63 | auth,authpriv.* /var/log/auth.log |
64 | *.*;auth,authpriv.none -/var/log/syslog |
65 | #cron.* /var/log/cron.log |
66 | daemon.* -/var/log/daemon.log |
67 | kern.* -/var/log/kern.log |
68 | lpr.* -/var/log/lpr.log |
69 | mail.* -/var/log/mail.log |
70 | user.* -/var/log/user.log |
71 | |
72 | # |
73 | # Logging for the mail system. Split it up so that |
74 | # it is easy to write scripts to parse these files. |
75 | # |
76 | mail.info -/var/log/mail.info |
77 | mail.warn -/var/log/mail.warn |
78 | mail.err /var/log/mail.err |
79 | |
80 | # |
81 | # Logging for INN news system. |
82 | # |
83 | news.crit /var/log/news/news.crit |
84 | news.err /var/log/news/news.err |
85 | news.notice -/var/log/news/news.notice |
86 | |
87 | # |
88 | # Some "catch-all" log files. |
89 | # |
90 | *.=debug;\ |
91 | auth,authpriv.none;\ |
92 | news.none;mail.none -/var/log/debug |
93 | *.=info;*.=notice;*.=warn;\ |
94 | auth,authpriv.none;\ |
95 | cron,daemon.none;\ |
96 | mail,news.none -/var/log/messages |
97 | |
98 | # |
99 | # Emergencies are sent to everybody logged in. |
100 | # |
101 | *.emerg :omusrmsg:* |
102 | |
103 | # |
104 | # I like to have messages displayed on the console, but only on a virtual |
105 | # console I usually leave idle. |
106 | # |
107 | #daemon,mail.*;\ |
108 | # news.=crit;news.=err;news.=notice;\ |
109 | # *.=debug;*.=info;\ |
110 | # *.=notice;*.=warn /dev/tty8 |
111 | |
112 | # The named pipe /dev/xconsole is for the `xconsole' utility. To use it, |
113 | # you must invoke `xconsole' with the `-file' option: |
114 | # |
115 | # $ xconsole -file /dev/xconsole [...] |
116 | # |
117 | # NOTE: adjust the list below, or you'll go crazy if you have a reasonably |
118 | # busy site.. |
119 | # |
120 | daemon.*;mail.*;\ |
121 | news.err;\ |
122 | *.=debug;*.=info;\ |
123 | *.=notice;*.=warn |/dev/xconsole |
124 | |
125 | # For slave blades |
126 | *.* @maitre:514 ## UCP |
127 | #*.* @@maitre:514 ## TCP |
128 | #*.* :omrelp:maitre:514 ## RELP |
129 | |