rsyslog: Add default configuration
[matthijs/servers/tika.git] / etc / rsyslog.conf
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 (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 $Umask 0022
42
43 #
44 # Include all config files in /etc/rsyslog.d/
45 #
46 $IncludeConfig /etc/rsyslog.d/*.conf
47
48
49 ###############
50 #### RULES ####
51 ###############
52
53 #
54 # First some standard log files.  Log by facility.
55 #
56 auth,authpriv.*                 /var/log/auth.log
57 *.*;auth,authpriv.none          -/var/log/syslog
58 #cron.*                         /var/log/cron.log
59 daemon.*                        -/var/log/daemon.log
60 kern.*                          -/var/log/kern.log
61 lpr.*                           -/var/log/lpr.log
62 mail.*                          -/var/log/mail.log
63 user.*                          -/var/log/user.log
64
65 #
66 # Logging for the mail system.  Split it up so that
67 # it is easy to write scripts to parse these files.
68 #
69 mail.info                       -/var/log/mail.info
70 mail.warn                       -/var/log/mail.warn
71 mail.err                        /var/log/mail.err
72
73 #
74 # Logging for INN news system.
75 #
76 news.crit                       /var/log/news/news.crit
77 news.err                        /var/log/news/news.err
78 news.notice                     -/var/log/news/news.notice
79
80 #
81 # Some "catch-all" log files.
82 #
83 *.=debug;\
84         auth,authpriv.none;\
85         news.none;mail.none     -/var/log/debug
86 *.=info;*.=notice;*.=warn;\
87         auth,authpriv.none;\
88         cron,daemon.none;\
89         mail,news.none          -/var/log/messages
90
91 #
92 # Emergencies are sent to everybody logged in.
93 #
94 *.emerg                         *
95
96 #
97 # I like to have messages displayed on the console, but only on a virtual
98 # console I usually leave idle.
99 #
100 #daemon,mail.*;\
101 #       news.=crit;news.=err;news.=notice;\
102 #       *.=debug;*.=info;\
103 #       *.=notice;*.=warn       /dev/tty8
104
105 # The named pipe /dev/xconsole is for the `xconsole' utility.  To use it,
106 # you must invoke `xconsole' with the `-file' option:
107
108 #    $ xconsole -file /dev/xconsole [...]
109 #
110 # NOTE: adjust the list below, or you'll go crazy if you have a reasonably
111 #      busy site..
112 #
113 daemon.*;mail.*;\
114         news.err;\
115         *.=debug;*.=info;\
116         *.=notice;*.=warn       |/dev/xconsole