forked from saltstack-formulas/syslog-ng-formula
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pillar.debian.example
225 lines (212 loc) · 4.81 KB
/
pillar.debian.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
syslog_ng:
options:
- chain_hostnames: no
- flush_lines: 0
- use_dns: no
- use_fqdn: no
- owner: root
- group: adm
- perm: =0640
- stats_freq: 0
- bad_hostname: "^gconfd$"
source:
- s_src:
- system: null
- internal: null
destination:
# First some standard logfile
- d_auth:
- file:
- /var/log/auth.log
- d_cron:
- file:
- /var/log/cron.log
- d_daemon:
- file:
- /var/log/daemon.log
- d_kern:
- file:
- /var/log/kern.log
- d_lpr:
- file:
- /var/log/lpr.log
- d_mail:
- file:
- /var/log/mail.log
- d_syslog:
- file:
- /var/log/syslog
- d_user:
- file:
- /var/log/user.log
- d_uucp:
- file:
- /var/log/uucp.log
# This files are the log come from the mail subsystem.
- d_mailinfo:
- file:
- /var/log/mail.info
- d_mailwarn:
- file:
- /var/log/mail.warn
- d_mailerr:
- file:
- /var/log/mail.err
# Logging for INN news system
- d_newscrit:
- file:
- /var/log/news/news.crit
- d_newserr:
- file:
- /var/log/news/news.err
- d_newsnotice:
- file:
- /var/log/news/news.notice
# Some 'catch-all' logfiles
- d_debug:
- file:
- /var/log/debug
- d_error:
- file:
- /var/log/error
- d_messages:
- file:
- /var/log/messages
# The root's console.
- d_console:
- usertty:
- root
# Virtual console.
- d_console_all:
- file:
- '`tty10`'
# The named pipe /dev/xconsole is for the nsole' utility.
- d_xconsole:
- pipe:
- /dev/xconsole
# Debian only
- d_ppp:
- file:
- /var/log/ppp.log
filter:
- f_dbg:
- level: =debug
- f_info:
- level: =info
- f_notice:
- level: =notice
- f_warn:
- level: =warn
- f_err:
- level: =err
- f_crit:
- level: =crit .. emerg
- f_error:
- level: =err .. emerg
- f_console:
- level: =warn .. emerg
- f_debug:
- =level(debug) and not facility(auth, authpriv, news, mail)
- f_messages:
- =level(info,notice,warn) and not facility(auth,authpriv,cron,daemon,mail,news)
- f_auth:
- =facility(auth, authpriv) and not filter(f_debug)
- f_cron:
- =facility(cron) and not filter(f_debug)
- f_daemon:
- =facility(daemon) and not filter(f_debug)
- f_kern:
- =facility(kern) and not filter(f_debug)
- f_lpr:
- =facility(lpr) and not filter(f_debug)
- f_local:
- =facility(local0, local1, local3, local4, local5, local6, local7) and not filter(f_debug)
- f_mail:
- =facility(mail) and not filter(f_debug)
- f_news:
- =facility(news) and not filter(f_debug)
- f_syslog3:
- =not facility(auth, authpriv, mail) and not filter(f_debug)
- f_user:
- =facility(user) and not filter(f_debug)
- f_uucp:
- =facility(uucp) and not filter(f_debug)
- f_cnews:
- =level(notice, err, crit) and facility(news)
- f_cother:
- =level(debug, info, notice, warn) or facility(daemon, mail)
- f_ppp:
- =facility(local2) and not filter(f_debug)
log:
-
- source: =s_src
- filter: =f_auth
- destination: =d_auth
-
- source: =s_src
- filter: =f_cron
- destination: =d_cron
-
- source: =s_src
- filter: =f_daemon
- destination: =d_daemon
-
- source: =s_src
- filter: =f_kern
- destination: =d_kern
-
- source: =s_src
- filter: =f_lpr
- destination: =d_lpr
-
- source: =s_src
- filter: =f_syslog3
- destination: =d_syslog
-
- source: =s_src
- filter: =f_user
- destination: =d_user
-
- source: =s_src
- filter: =f_uucp
- destination: =d_uucp
-
- source: =s_src
- filter: =f_mail
- destination: =d_mail
-
- source: =s_src
- filter: =f_news
- filter: =f_crit
- destination: =d_newscrit
-
- source: =s_src
- filter: =f_news
- filter: =f_err
- destination: =d_newserr
-
- source: =s_src
- filter: =f_news
- filter: =f_notice
- destination: =d_newsnotice
-
- source: =s_src
- filter: =f_debug
- destination: =d_debug
-
- source: =s_src
- filter: =f_error
- destination: =d_error
-
- source: =s_src
- filter: =f_messages
- destination: =d_messages
-
- source: =s_src
- filter: =f_console
- destination: =d_console_all
- destination: =d_xconsole
-
- source: =s_src
- filter: =f_crit
- destination: =d_console