Setup sniproxy and rsyslog
[cacert-puppet.git] / sitemodules / profiles / templates / rsyslog / rsyslog.conf.epp
1 <%- | Boolean $enable_klog = false | -%>
2 # THIS FILE IS MANAGED BY PUPPET, MANUAL CHANGES WILL BE OVERWRITTEN AT THE
3 # NEXT PUPPET RUN.
4 # /etc/rsyslog.conf Configuration file for rsyslog.
5 #
6 # For more information see
7 # /usr/share/doc/rsyslog-doc/html/rsyslog_conf.html
8
9
10 #################
11 #### MODULES ####
12 #################
13
14 module(load="imuxsock") # provides support for local system logging
15 <%- if $enable_klog == true { -%>
16 module(load="imklog") # provides kernel logging support
17 <% } -%>
18 #module(load="immark") # provides --MARK-- message capability
19
20 # provides UDP syslog reception
21 #module(load="imudp")
22 #input(type="imudp" port="514")
23
24 # provides TCP syslog reception
25 #module(load="imtcp")
26 #input(type="imtcp" port="514")
27
28
29 ###########################
30 #### GLOBAL DIRECTIVES ####
31 ###########################
32
33 #
34 # Use traditional timestamp format.
35 # To enable high precision timestamps, comment out the following line.
36 #
37 $ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
38
39 #
40 # Set the default permissions for all log files.
41 #
42 $FileOwner root
43 $FileGroup adm
44 $FileCreateMode 0640
45 $DirCreateMode 0755
46 $Umask 0022
47
48 #
49 # Where to place spool and state files
50 #
51 $WorkDirectory /var/spool/rsyslog
52
53 #
54 # Include all config files in /etc/rsyslog.d/
55 #
56 $IncludeConfig /etc/rsyslog.d/*.conf
57
58
59 ###############
60 #### RULES ####
61 ###############
62
63 #
64 # First some standard log files. Log by facility.
65 #
66 auth,authpriv.* /var/log/auth.log
67 *.*;auth,authpriv.none -/var/log/syslog
68 #cron.* /var/log/cron.log
69 daemon.* -/var/log/daemon.log
70 kern.* -/var/log/kern.log
71 lpr.* -/var/log/lpr.log
72 mail.* -/var/log/mail.log
73 user.* -/var/log/user.log
74
75 #
76 # Logging for the mail system. Split it up so that
77 # it is easy to write scripts to parse these files.
78 #
79 mail.info -/var/log/mail.info
80 mail.warn -/var/log/mail.warn
81 mail.err /var/log/mail.err
82
83 #
84 # Some "catch-all" log files.
85 #
86 *.=debug;\
87 auth,authpriv.none;\
88 news.none;mail.none -/var/log/debug
89 *.=info;*.=notice;*.=warn;\
90 auth,authpriv.none;\
91 cron,daemon.none;\
92 mail,news.none -/var/log/messages
93
94 #
95 # Emergencies are sent to everybody logged in.
96 #
97 *.emerg :omusrmsg:*