fluent-plugin-kubernetes_sumologic 2.3.2 → 2.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Dockerfile +1 -4
- data/README.md +1 -1
- data/daemonset/nonrbac/fluentd.yaml +1474 -1
- data/daemonset/rbac/fluentd.yaml +1467 -1
- data/fluent-plugin-kubernetes_sumologic.gemspec +1 -1
- data/lib/fluent/plugin/filter_kubernetes_sumologic.rb +52 -21
- data/test/plugin/test_filter_kubernetes_sumologic.rb +840 -648
- metadata +2 -12
- data/conf.d/file/source.containers.conf +0 -64
- data/conf.d/file/source.docker.conf +0 -20
- data/conf.d/file/source.kubernetes.conf +0 -158
- data/conf.d/forward/.gitignore +0 -1
- data/conf.d/out.sumo.conf +0 -13
- data/conf.d/systemd/source.containers.conf +0 -47
- data/conf.d/systemd/source.systemd.conf +0 -1088
- data/etc/fluent.file.conf +0 -13
- data/etc/fluent.forward.conf +0 -18
- data/etc/fluent.systemd.conf +0 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '08eead9a6e7b3ebc1d6443d6f0ae73c71cba6a2a40b3c1bbe7c3d1bab75f19bb'
|
4
|
+
data.tar.gz: 187d8c16e7f85938d9ddb8e36f7cc5334831df89abd1ec0df0ffe776c2980d44
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c8bcd1f3b79a3ab7e8a518f16852a3313ee86b48cfce8a506db5b7035597142df03221e8a02e770592ee96cc02da8a0618fcba72cab98580938c7d0bf0b7287
|
7
|
+
data.tar.gz: 43c927a566461d5bf91932cf8511d0c51588ac65a76ced020da57b218e7c8c44af92a394b36b892d513cced255844702e95ae1dd1b838b373a42ccf5ff14cf3e
|
data/Dockerfile
CHANGED
@@ -30,8 +30,7 @@ ENV PATH /home/fluent/.gem/ruby/2.3.0/bin:$PATH
|
|
30
30
|
RUN mkdir -p /mnt/pos
|
31
31
|
EXPOSE 24284
|
32
32
|
|
33
|
-
RUN mkdir -p /fluentd/
|
34
|
-
mkdir -p /fluentd/etc && \
|
33
|
+
RUN mkdir -p /fluentd/etc && \
|
35
34
|
mkdir -p /fluentd/plugins
|
36
35
|
|
37
36
|
# Default settings
|
@@ -66,8 +65,6 @@ ENV FORWARD_INPUT_BIND "0.0.0.0"
|
|
66
65
|
ENV FORWARD_INPUT_PORT "24224"
|
67
66
|
|
68
67
|
COPY --from=builder /var/lib/gems /var/lib/gems
|
69
|
-
COPY ./conf.d/ /fluentd/conf.d/
|
70
|
-
COPY ./etc/* /fluentd/etc/
|
71
68
|
COPY ./entrypoint.sh /fluentd/
|
72
69
|
|
73
70
|
ENTRYPOINT ["/fluentd/entrypoint.sh"]
|
data/README.md
CHANGED
@@ -429,7 +429,7 @@ This daemonset setting mounts /var/log as service account FluentD so you need to
|
|
429
429
|
oc adm policy add-scc-to-user privileged system:serviceaccount:logging:fluentd
|
430
430
|
oc adm policy add-cluster-role-to-user cluster-reader system:serviceaccount:logging:fluentd
|
431
431
|
oc label node —all logging-sumologic-fluentd=true
|
432
|
-
oc patch ds sumologic
|
432
|
+
oc patch ds fluentd-sumologic -p "spec:
|
433
433
|
template:
|
434
434
|
spec:
|
435
435
|
containers:
|
@@ -16,17 +16,26 @@ spec:
|
|
16
16
|
hostPath:
|
17
17
|
path: /var/run/fluentd-pos
|
18
18
|
type: ""
|
19
|
+
# User data 1 mount point for Kubernetes running in OCI Container Engine for Kubernetes (OKE)
|
20
|
+
- name: "u01"
|
21
|
+
hostPath:
|
22
|
+
path: /u01
|
19
23
|
- name: host-logs
|
20
24
|
hostPath:
|
21
25
|
path: /var/log/
|
22
26
|
- name: docker-logs
|
23
27
|
hostPath:
|
24
28
|
path: /var/lib/docker
|
29
|
+
- name: fluentd-sumologic-config
|
30
|
+
configMap:
|
31
|
+
name: fluentd-sumologic-config
|
25
32
|
containers:
|
26
|
-
- image: sumologic/fluentd-kubernetes-sumologic:
|
33
|
+
- image: sumologic/fluentd-kubernetes-sumologic:latest
|
27
34
|
name: fluentd
|
28
35
|
imagePullPolicy: Always
|
29
36
|
volumeMounts:
|
37
|
+
- name: fluentd-sumologic-config
|
38
|
+
mountPath: /fluentd/etc
|
30
39
|
- name: host-logs
|
31
40
|
mountPath: /mnt/log/
|
32
41
|
readOnly: true
|
@@ -36,6 +45,9 @@ spec:
|
|
36
45
|
- name: docker-logs
|
37
46
|
mountPath: /var/lib/docker/
|
38
47
|
readOnly: true
|
48
|
+
- name: "u01"
|
49
|
+
mountPath: /u01
|
50
|
+
readOnly: true
|
39
51
|
- name: pos-files
|
40
52
|
mountPath: /mnt/pos/
|
41
53
|
env:
|
@@ -44,8 +56,1469 @@ spec:
|
|
44
56
|
secretKeyRef:
|
45
57
|
name: sumologic
|
46
58
|
key: collector-url
|
59
|
+
# Improve GC for memory limited envs like docker.
|
60
|
+
- name: RUBY_GC_HEAP_OLDOBJECT_LIMIT_FACTOR
|
61
|
+
value: "0.9"
|
47
62
|
tolerations:
|
48
63
|
- operator: "Exists"
|
49
64
|
- effect: "NoSchedule"
|
50
65
|
key: "node-role.kubernetes.io/master"
|
51
66
|
|
67
|
+
---
|
68
|
+
apiVersion: v1
|
69
|
+
kind: ConfigMap
|
70
|
+
metadata:
|
71
|
+
name: fluentd-sumologic-config
|
72
|
+
labels:
|
73
|
+
app: fluentd-sumologic
|
74
|
+
data:
|
75
|
+
out.sumo.conf: |-
|
76
|
+
<match **>
|
77
|
+
@type sumologic
|
78
|
+
log_key log
|
79
|
+
endpoint "#{ENV['COLLECTOR_URL']}"
|
80
|
+
verify_ssl "#{ENV['VERIFY_SSL']}"
|
81
|
+
log_format "#{ENV['LOG_FORMAT']}"
|
82
|
+
flush_interval "#{ENV['FLUSH_INTERVAL']}"
|
83
|
+
num_threads "#{ENV['NUM_THREADS']}"
|
84
|
+
open_timeout 60
|
85
|
+
add_timestamp "#{ENV['ADD_TIMESTAMP']}"
|
86
|
+
timestamp_key "#{ENV['TIMESTAMP_KEY']}"
|
87
|
+
proxy_uri "#{ENV['PROXY_URI']}"
|
88
|
+
</match>
|
89
|
+
|
90
|
+
fluent.file.conf: |-
|
91
|
+
<match fluent.**>
|
92
|
+
@type null
|
93
|
+
</match>
|
94
|
+
|
95
|
+
<source>
|
96
|
+
@type monitor_agent
|
97
|
+
bind 0.0.0.0
|
98
|
+
port 24220
|
99
|
+
</source>
|
100
|
+
|
101
|
+
@include /fluentd/etc/file.source.*.conf
|
102
|
+
@include /fluentd/etc/user/*.conf
|
103
|
+
@include /fluentd/etc/out.sumo.conf
|
104
|
+
|
105
|
+
fluent.forward.conf: |-
|
106
|
+
## built-in TCP input
|
107
|
+
## $ echo <json> | fluent-cat <tag>
|
108
|
+
<source>
|
109
|
+
@type forward
|
110
|
+
@id forward_input
|
111
|
+
port "#{ENV['FORWARD_INPUT_PORT']}"
|
112
|
+
bind "#{ENV['FORWARD_INPUT_BIND']}"
|
113
|
+
</source>
|
114
|
+
|
115
|
+
<source>
|
116
|
+
@type monitor_agent
|
117
|
+
bind 0.0.0.0
|
118
|
+
port 24220
|
119
|
+
</source>
|
120
|
+
|
121
|
+
@include /fluentd/etc/forward.source.*.conf
|
122
|
+
@include /fluentd/etc/user/*.conf
|
123
|
+
@include /fluentd/etc/out.sumo.conf
|
124
|
+
|
125
|
+
fluent.systemd.conf: |-
|
126
|
+
<match fluent.**>
|
127
|
+
@type null
|
128
|
+
</match>
|
129
|
+
|
130
|
+
<source>
|
131
|
+
@type monitor_agent
|
132
|
+
bind 0.0.0.0
|
133
|
+
port 24220
|
134
|
+
</source>
|
135
|
+
|
136
|
+
@include /fluentd/etc/systemd.source.*.conf
|
137
|
+
@include /fluentd/etc/user/*.conf
|
138
|
+
@include /fluentd/etc/out.sumo.conf
|
139
|
+
|
140
|
+
file.source.containers.conf: |-
|
141
|
+
<source>
|
142
|
+
@type tail
|
143
|
+
format json
|
144
|
+
time_key "#{ENV['TIME_KEY']}"
|
145
|
+
path "#{ENV['CONTAINER_LOGS_PATH']}"
|
146
|
+
exclude_path "#{ENV['EXCLUDE_PATH']}"
|
147
|
+
pos_file /mnt/pos/ggcp-containers.log.pos
|
148
|
+
time_format %Y-%m-%dT%H:%M:%S.%NZ
|
149
|
+
tag containers.*
|
150
|
+
read_from_head "#{ENV['READ_FROM_HEAD']}"
|
151
|
+
enable_stat_watcher "#{ENV['ENABLE_STAT_WATCHER']}"
|
152
|
+
</source>
|
153
|
+
|
154
|
+
<filter containers.**>
|
155
|
+
@type concat
|
156
|
+
key log
|
157
|
+
multiline_start_regexp "#{ENV['MULTILINE_START_REGEXP']}"
|
158
|
+
separator "#{ENV['CONCAT_SEPARATOR']}"
|
159
|
+
timeout_label @NORMAL
|
160
|
+
</filter>
|
161
|
+
|
162
|
+
<match containers.**>
|
163
|
+
@type relabel
|
164
|
+
@label @NORMAL
|
165
|
+
</match>
|
166
|
+
|
167
|
+
<label @NORMAL>
|
168
|
+
<filter containers.**>
|
169
|
+
@type kubernetes_metadata
|
170
|
+
@log_level warn
|
171
|
+
annotation_match ["sumologic\.com.*"]
|
172
|
+
de_dot false
|
173
|
+
watch "#{ENV['K8S_METADATA_FILTER_WATCH']}"
|
174
|
+
ca_file "#{ENV['K8S_METADATA_FILTER_CA_FILE']}"
|
175
|
+
verify_ssl "#{ENV['K8S_METADATA_FILTER_VERIFY_SSL']}"
|
176
|
+
client_cert "#{ENV['K8S_METADATA_FILTER_CLIENT_CERT']}"
|
177
|
+
client_key "#{ENV['K8S_METADATA_FILTER_CLIENT_KEY']}"
|
178
|
+
bearer_token_file "#{ENV['K8S_METADATA_FILTER_BEARER_TOKEN_FILE']}"
|
179
|
+
cache_size "#{ENV['K8S_METADATA_FILTER_BEARER_CACHE_SIZE']}"
|
180
|
+
cache_ttl "#{ENV['K8S_METADATA_FILTER_BEARER_CACHE_TTL']}"
|
181
|
+
tag_to_kubernetes_name_regexp '.+?\.containers\.(?<pod_name>[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*)_(?<namespace>[^_]+)_(?<container_name>.+)-(?<docker_id>[a-z0-9]{64})\.log$'
|
182
|
+
merge_json_log false
|
183
|
+
</filter>
|
184
|
+
|
185
|
+
<filter containers.**>
|
186
|
+
@type kubernetes_sumologic
|
187
|
+
source_name "#{ENV['SOURCE_NAME']}"
|
188
|
+
source_host "#{ENV['SOURCE_HOST']}"
|
189
|
+
log_format "#{ENV['LOG_FORMAT']}"
|
190
|
+
kubernetes_meta "#{ENV['KUBERNETES_META']}"
|
191
|
+
kubernetes_meta_reduce "#{ENV['KUBERNETES_META_REDUCE']}"
|
192
|
+
add_stream "#{ENV['ADD_STREAM']}"
|
193
|
+
add_time "#{ENV['ADD_TIME']}"
|
194
|
+
source_category "#{ENV['SOURCE_CATEGORY']}"
|
195
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
196
|
+
source_category_replace_dash "#{ENV['SOURCE_CATEGORY_REPLACE_DASH']}"
|
197
|
+
exclude_namespace_regex "#{ENV['EXCLUDE_NAMESPACE_REGEX']}"
|
198
|
+
exclude_pod_regex "#{ENV['EXCLUDE_POD_REGEX']}"
|
199
|
+
exclude_container_regex "#{ENV['EXCLUDE_CONTAINER_REGEX']}"
|
200
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
201
|
+
</filter>
|
202
|
+
|
203
|
+
@include /fluentd/etc/out.sumo.conf
|
204
|
+
</label>
|
205
|
+
|
206
|
+
file.source.docker.conf: |-
|
207
|
+
# Examples:
|
208
|
+
# time="2016-02-04T06:51:03.053580605Z" level=info msg="GET /containers/json"
|
209
|
+
# time="2016-02-04T07:53:57.505612354Z" level=error msg="HTTP Error" err="No such image: -f" statusCode=404
|
210
|
+
<source>
|
211
|
+
@type tail
|
212
|
+
format /^time="(?<time>[^)]*)" level=(?<severity>[^ ]*) msg="(?<message>[^"]*)"( err="(?<error>[^"]*)")?( statusCode=($<status_code>\d+))?/
|
213
|
+
time_format %Y-%m-%dT%H:%M:%S.%NZ
|
214
|
+
path /var/lib/docker.log
|
215
|
+
exclude_path "#{ENV['EXCLUDE_PATH']}"
|
216
|
+
pos_file /mnt/pos/ggcp-docker.log.pos
|
217
|
+
tag docker
|
218
|
+
enable_stat_watcher "#{ENV['ENABLE_STAT_WATCHER']}"
|
219
|
+
</source>
|
220
|
+
|
221
|
+
<filter docker.**>
|
222
|
+
@type kubernetes_sumologic
|
223
|
+
source_category docker
|
224
|
+
source_name k8s_docker
|
225
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
226
|
+
</filter>
|
227
|
+
|
228
|
+
file.source.kubernetes.conf: |-
|
229
|
+
# Example:
|
230
|
+
# 2015-12-21 23:17:22,066 [salt.state ][INFO ] Completed state [net.ipv4.ip_forward] at time 23:17:22.066081
|
231
|
+
<source>
|
232
|
+
@type tail
|
233
|
+
format /^(?<time>[^ ]* [^ ,]*)[^\[]*\[[^\]]*\]\[(?<severity>[^ \]]*) *\] (?<message>.*)$/
|
234
|
+
time_format %Y-%m-%d %H:%M:%S
|
235
|
+
path /mnt/log/salt/minion
|
236
|
+
exclude_path "#{ENV['EXCLUDE_PATH']}"
|
237
|
+
pos_file /mnt/pos/ggcp-salt.pos
|
238
|
+
tag salt
|
239
|
+
enable_stat_watcher "#{ENV['ENABLE_STAT_WATCHER']}"
|
240
|
+
</source>
|
241
|
+
|
242
|
+
<filter salt.**>
|
243
|
+
@type kubernetes_sumologic
|
244
|
+
source_category salt
|
245
|
+
source_name k8s_salt
|
246
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
247
|
+
add_stream "#{ENV['ADD_STREAM']}"
|
248
|
+
add_time "#{ENV['ADD_TIME']}"
|
249
|
+
exclude_namespace_regex "#{ENV['EXCLUDE_NAMESPACE_REGEX']}"
|
250
|
+
</filter>
|
251
|
+
|
252
|
+
|
253
|
+
# Example:
|
254
|
+
# Dec 21 23:17:22 gke-foo-1-1-4b5cbd14-node-4eoj startupscript: Finished running startup script /var/run/google.startup.script
|
255
|
+
<source>
|
256
|
+
@type tail
|
257
|
+
format syslog
|
258
|
+
path /mnt/log/startupscript.log
|
259
|
+
exclude_path "#{ENV['EXCLUDE_PATH']}"
|
260
|
+
pos_file /mnt/pos/ggcp-startupscript.log.pos
|
261
|
+
tag startupscript
|
262
|
+
enable_stat_watcher "#{ENV['ENABLE_STAT_WATCHER']}"
|
263
|
+
</source>
|
264
|
+
|
265
|
+
<filter startupscript.**>
|
266
|
+
@type kubernetes_sumologic
|
267
|
+
source_category startupscript
|
268
|
+
source_name k8s_startupscript
|
269
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
270
|
+
add_stream "#{ENV['ADD_STREAM']}"
|
271
|
+
add_time "#{ENV['ADD_TIME']}"
|
272
|
+
exclude_namespace_regex "#{ENV['EXCLUDE_NAMESPACE_REGEX']}"
|
273
|
+
</filter>
|
274
|
+
|
275
|
+
|
276
|
+
# Multi-line parsing is required for all the kube logs because very large log
|
277
|
+
# statements, such as those that include entire object bodies, get split into
|
278
|
+
# multiple lines by glog.
|
279
|
+
|
280
|
+
|
281
|
+
# Example:
|
282
|
+
# I0204 07:32:30.020537 3368 server.go:1048] POST /stats/container/: (13.972191ms) 200 [[Go-http-client/1.1] 10.244.1.3:40537]
|
283
|
+
<source>
|
284
|
+
@type tail
|
285
|
+
format multiline
|
286
|
+
multiline_flush_interval 5s
|
287
|
+
format_firstline /^\w\d{4}/
|
288
|
+
format1 /^(?<severity>\w)(?<time>\d{4} [^\s]*)\s+(?<pid>\d+)\s+(?<source>[^ \]]+)\] (?<message>.*)/
|
289
|
+
time_format %m%d %H:%M:%S.%N
|
290
|
+
path /mnt/log/kubelet.log
|
291
|
+
exclude_path "#{ENV['EXCLUDE_PATH']}"
|
292
|
+
pos_file /mnt/pos/ggcp-kubelet.log.pos
|
293
|
+
tag kubelet
|
294
|
+
enable_stat_watcher "#{ENV['ENABLE_STAT_WATCHER']}"
|
295
|
+
</source>
|
296
|
+
|
297
|
+
<filter kubelet.**>
|
298
|
+
@type kubernetes_sumologic
|
299
|
+
source_category kubelet
|
300
|
+
source_name k8s_kubelet
|
301
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
302
|
+
add_stream "#{ENV['ADD_STREAM']}"
|
303
|
+
add_time "#{ENV['ADD_TIME']}"
|
304
|
+
exclude_namespace_regex "#{ENV['EXCLUDE_NAMESPACE_REGEX']}"
|
305
|
+
</filter>
|
306
|
+
|
307
|
+
|
308
|
+
# Example
|
309
|
+
# 2017-11-06T18:53:49.774520188Z AUDIT: id="6a8sdffd918-0b6a-4aee-a3a1-f1sdf61596" ip="172.11.23.88" method="GET" user="kubelet" groups="\"system:nodes\",\"system:authenticated\"" as="<self>" asgroups="<lookup>" namespace="monty" uri="/api/v1/namespaces/monty/secrets/default-token-fntvb?resourceVersion=0"
|
310
|
+
# 2017-02-09T00:15:57.993528822Z AUDIT: id="6a8sdffd918-0b6a-4aee-a3a1-f1sdf61596" response="200"
|
311
|
+
<source>
|
312
|
+
@type tail
|
313
|
+
format json
|
314
|
+
time_key timestamp
|
315
|
+
time_format %Y-%m-%dT%H:%M:%SZ
|
316
|
+
path "#{ENV['AUDIT_LOG_PATH']}"
|
317
|
+
exclude_path "#{ENV['EXCLUDE_PATH']}"
|
318
|
+
pos_file /mnt/pos/ggcp-kube-audit.log.pos
|
319
|
+
tag kube-audit
|
320
|
+
read_from_head "#{ENV['READ_FROM_HEAD']}"
|
321
|
+
enable_stat_watcher "#{ENV['ENABLE_STAT_WATCHER']}"
|
322
|
+
</source>
|
323
|
+
|
324
|
+
<filter kube-audit.**>
|
325
|
+
@type kubernetes_sumologic
|
326
|
+
source_category kube-audit
|
327
|
+
source_name k8s_kube-audit
|
328
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
329
|
+
add_stream "#{ENV['ADD_STREAM']}"
|
330
|
+
add_time "#{ENV['ADD_TIME']}"
|
331
|
+
exclude_namespace_regex "#{ENV['EXCLUDE_NAMESPACE_REGEX']}"
|
332
|
+
</filter>
|
333
|
+
|
334
|
+
|
335
|
+
# Example:
|
336
|
+
# I0603 15:31:05.793605 6 cluster_manager.go:230] Reading config from path /etc/gce.conf
|
337
|
+
<source>
|
338
|
+
@type tail
|
339
|
+
format multiline
|
340
|
+
multiline_flush_interval 5s
|
341
|
+
format_firstline /^\w\d{4}/
|
342
|
+
format1 /^(?<severity>\w)(?<time>\d{4} [^\s]*)\s+(?<pid>\d+)\s+(?<source>[^ \]]+)\] (?<message>.*)/
|
343
|
+
time_format %m%d %H:%M:%S.%N
|
344
|
+
path /mnt/log/glbc.log
|
345
|
+
exclude_path "#{ENV['EXCLUDE_PATH']}"
|
346
|
+
pos_file /mnt/pos/ggcp-glbc.log.pos
|
347
|
+
tag glbc
|
348
|
+
enable_stat_watcher "#{ENV['ENABLE_STAT_WATCHER']}"
|
349
|
+
</source>
|
350
|
+
|
351
|
+
<filter glbc.**>
|
352
|
+
@type kubernetes_sumologic
|
353
|
+
source_category glbc
|
354
|
+
source_name k8s_glbc
|
355
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
356
|
+
add_stream "#{ENV['ADD_STREAM']}"
|
357
|
+
add_time "#{ENV['ADD_TIME']}"
|
358
|
+
exclude_namespace_regex "#{ENV['EXCLUDE_NAMESPACE_REGEX']}"
|
359
|
+
</filter>
|
360
|
+
|
361
|
+
|
362
|
+
# Example:
|
363
|
+
# I0603 15:31:05.793605 6 cluster_manager.go:230] Reading config from path /etc/gce.conf
|
364
|
+
<source>
|
365
|
+
@type tail
|
366
|
+
format multiline
|
367
|
+
multiline_flush_interval 5s
|
368
|
+
format_firstline /^\w\d{4}/
|
369
|
+
format1 /^(?<severity>\w)(?<time>\d{4} [^\s]*)\s+(?<pid>\d+)\s+(?<source>[^ \]]+)\] (?<message>.*)/
|
370
|
+
time_format %m%d %H:%M:%S.%N
|
371
|
+
path /mnt/log/cluster-autoscaler.log
|
372
|
+
exclude_path "#{ENV['EXCLUDE_PATH']}"
|
373
|
+
pos_file /mnt/pos/ggcp-cluster-autoscaler.log.pos
|
374
|
+
tag cluster-autoscaler
|
375
|
+
enable_stat_watcher "#{ENV['ENABLE_STAT_WATCHER']}"
|
376
|
+
</source>
|
377
|
+
|
378
|
+
<filter cluster-autoscaler.**>
|
379
|
+
@type kubernetes_sumologic
|
380
|
+
source_category cluster-autoscaler
|
381
|
+
source_name k8s_cluster-autoscaler
|
382
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
383
|
+
add_stream "#{ENV['ADD_STREAM']}"
|
384
|
+
add_time "#{ENV['ADD_TIME']}"
|
385
|
+
exclude_namespace_regex "#{ENV['EXCLUDE_NAMESPACE_REGEX']}"
|
386
|
+
</filter>
|
387
|
+
|
388
|
+
systemd.source.containers.conf: |-
|
389
|
+
<source>
|
390
|
+
@type tail
|
391
|
+
format json
|
392
|
+
time_key "#{ENV['TIME_KEY']}"
|
393
|
+
path "#{ENV['CONTAINER_LOGS_PATH']}"
|
394
|
+
exclude_path "#{ENV['EXCLUDE_PATH']}"
|
395
|
+
pos_file /mnt/pos/ggcp-containers.log.pos
|
396
|
+
time_format %Y-%m-%dT%H:%M:%S.%NZ
|
397
|
+
tag containers.*
|
398
|
+
read_from_head "#{ENV['READ_FROM_HEAD']}"
|
399
|
+
enable_stat_watcher "#{ENV['ENABLE_STAT_WATCHER']}"
|
400
|
+
</source>
|
401
|
+
|
402
|
+
<filter containers.**>
|
403
|
+
@type kubernetes_metadata
|
404
|
+
@log_level warn
|
405
|
+
annotation_match ["sumologic\.com.*"]
|
406
|
+
de_dot false
|
407
|
+
watch "#{ENV['K8S_METADATA_FILTER_WATCH']}"
|
408
|
+
ca_file "#{ENV['K8S_METADATA_FILTER_CA_FILE']}"
|
409
|
+
verify_ssl "#{ENV['K8S_METADATA_FILTER_VERIFY_SSL']}"
|
410
|
+
client_cert "#{ENV['K8S_METADATA_FILTER_CLIENT_CERT']}"
|
411
|
+
client_key "#{ENV['K8S_METADATA_FILTER_CLIENT_KEY']}"
|
412
|
+
bearer_token_file "#{ENV['K8S_METADATA_FILTER_BEARER_TOKEN_FILE']}"
|
413
|
+
cache_size "#{ENV['K8S_METADATA_FILTER_BEARER_CACHE_SIZE']}"
|
414
|
+
cache_ttl "#{ENV['K8S_METADATA_FILTER_BEARER_CACHE_TTL']}"
|
415
|
+
tag_to_kubernetes_name_regexp '.+?\.containers\.(?<pod_name>[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*)_(?<namespace>[^_]+)_(?<container_name>.+)-(?<docker_id>[a-z0-9]{64})\.log$'
|
416
|
+
merge_json_log false
|
417
|
+
</filter>
|
418
|
+
|
419
|
+
<filter containers.**>
|
420
|
+
@type kubernetes_sumologic
|
421
|
+
source_name "#{ENV['SOURCE_NAME']}"
|
422
|
+
source_host "#{ENV['SOURCE_HOST']}"
|
423
|
+
log_format "#{ENV['LOG_FORMAT']}"
|
424
|
+
kubernetes_meta "#{ENV['KUBERNETES_META']}"
|
425
|
+
kubernetes_meta_reduce "#{ENV['KUBERNETES_META_REDUCE']}"
|
426
|
+
add_stream "#{ENV['ADD_STREAM']}"
|
427
|
+
add_time "#{ENV['ADD_TIME']}"
|
428
|
+
source_category "#{ENV['SOURCE_CATEGORY']}"
|
429
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
430
|
+
source_category_replace_dash "#{ENV['SOURCE_CATEGORY_REPLACE_DASH']}"
|
431
|
+
exclude_namespace_regex "#{ENV['EXCLUDE_NAMESPACE_REGEX']}"
|
432
|
+
exclude_pod_regex "#{ENV['EXCLUDE_POD_REGEX']}"
|
433
|
+
exclude_container_regex "#{ENV['EXCLUDE_CONTAINER_REGEX']}"
|
434
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
435
|
+
</filter>
|
436
|
+
|
437
|
+
systemd.source.systemd.conf: |-
|
438
|
+
|
439
|
+
<source>
|
440
|
+
@type systemd
|
441
|
+
path /mnt/log/journal
|
442
|
+
filters [{"_SYSTEMD_UNIT": "addon-config.service"}]
|
443
|
+
<storage>
|
444
|
+
@type local
|
445
|
+
persistent true
|
446
|
+
path /mnt/pos/addon-config.log.pos
|
447
|
+
</storage>
|
448
|
+
tag addon-config
|
449
|
+
</source>
|
450
|
+
|
451
|
+
<filter addon-config.**>
|
452
|
+
@type kubernetes_sumologic
|
453
|
+
source_category system
|
454
|
+
source_name addon-config
|
455
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
456
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
457
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
458
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
459
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
460
|
+
</filter>
|
461
|
+
|
462
|
+
<source>
|
463
|
+
@type systemd
|
464
|
+
path /mnt/log/journal
|
465
|
+
filters [{"_SYSTEMD_UNIT": "addon-run.service"}]
|
466
|
+
<storage>
|
467
|
+
@type local
|
468
|
+
persistent true
|
469
|
+
path /mnt/pos/addon-run.log.pos
|
470
|
+
</storage>
|
471
|
+
tag addon-run
|
472
|
+
</source>
|
473
|
+
|
474
|
+
<filter addon-run.**>
|
475
|
+
@type kubernetes_sumologic
|
476
|
+
source_category system
|
477
|
+
source_name addon-run
|
478
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
479
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
480
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
481
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
482
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
483
|
+
</filter>
|
484
|
+
|
485
|
+
<source>
|
486
|
+
@type systemd
|
487
|
+
path /mnt/log/journal
|
488
|
+
filters [{"_SYSTEMD_UNIT": "cfn-etcd-environment.service"}]
|
489
|
+
<storage>
|
490
|
+
@type local
|
491
|
+
persistent true
|
492
|
+
path /mnt/pos/cfn-etcd-environment.log.pos
|
493
|
+
</storage>
|
494
|
+
tag cfn-etcd-environment
|
495
|
+
</source>
|
496
|
+
|
497
|
+
<filter cfn-etcd-environment.**>
|
498
|
+
@type kubernetes_sumologic
|
499
|
+
source_category system
|
500
|
+
source_name cfn-etcd-environment
|
501
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
502
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
503
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
504
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
505
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
506
|
+
</filter>
|
507
|
+
|
508
|
+
<source>
|
509
|
+
@type systemd
|
510
|
+
path /mnt/log/journal
|
511
|
+
filters [{"_SYSTEMD_UNIT": "cfn-signal.service"}]
|
512
|
+
<storage>
|
513
|
+
@type local
|
514
|
+
persistent true
|
515
|
+
path /mnt/pos/cfn-signal.log.pos
|
516
|
+
</storage>
|
517
|
+
tag cfn-signal
|
518
|
+
</source>
|
519
|
+
|
520
|
+
<filter cfn-signal.**>
|
521
|
+
@type kubernetes_sumologic
|
522
|
+
source_category system
|
523
|
+
source_name cfn-signal
|
524
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
525
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
526
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
527
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
528
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
529
|
+
</filter>
|
530
|
+
|
531
|
+
<source>
|
532
|
+
@type systemd
|
533
|
+
path /mnt/log/journal
|
534
|
+
filters [{"_SYSTEMD_UNIT": "clean-ca-certificates.service"}]
|
535
|
+
<storage>
|
536
|
+
@type local
|
537
|
+
persistent true
|
538
|
+
path /mnt/pos/clean-ca-certificates.log.pos
|
539
|
+
</storage>
|
540
|
+
tag clean-ca-certificates
|
541
|
+
</source>
|
542
|
+
|
543
|
+
<filter clean-ca-certificates.**>
|
544
|
+
@type kubernetes_sumologic
|
545
|
+
source_category system
|
546
|
+
source_name clean-ca-certificates
|
547
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
548
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
549
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
550
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
551
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
552
|
+
</filter>
|
553
|
+
|
554
|
+
<source>
|
555
|
+
@type systemd
|
556
|
+
path /mnt/log/journal
|
557
|
+
filters [{"_SYSTEMD_UNIT": "containerd.service"}]
|
558
|
+
<storage>
|
559
|
+
@type local
|
560
|
+
persistent true
|
561
|
+
path /mnt/pos/containerd.log.pos
|
562
|
+
</storage>
|
563
|
+
tag containerd
|
564
|
+
</source>
|
565
|
+
|
566
|
+
<filter containerd.**>
|
567
|
+
@type kubernetes_sumologic
|
568
|
+
source_category system
|
569
|
+
source_name containerd
|
570
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
571
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
572
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
573
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
574
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
575
|
+
</filter>
|
576
|
+
|
577
|
+
<source>
|
578
|
+
@type systemd
|
579
|
+
path /mnt/log/journal
|
580
|
+
filters [{"_SYSTEMD_UNIT": "coreos-metadata.service"}]
|
581
|
+
<storage>
|
582
|
+
@type local
|
583
|
+
persistent true
|
584
|
+
path /mnt/pos/coreos-metadata.log.pos
|
585
|
+
</storage>
|
586
|
+
tag coreos-metadata
|
587
|
+
</source>
|
588
|
+
|
589
|
+
<filter coreos-metadata.**>
|
590
|
+
@type kubernetes_sumologic
|
591
|
+
source_category system
|
592
|
+
source_name coreos-metadata
|
593
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
594
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
595
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
596
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
597
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
598
|
+
</filter>
|
599
|
+
|
600
|
+
<source>
|
601
|
+
@type systemd
|
602
|
+
path /mnt/log/journal
|
603
|
+
filters [{"_SYSTEMD_UNIT": "coreos-setup-environment.service"}]
|
604
|
+
<storage>
|
605
|
+
@type local
|
606
|
+
persistent true
|
607
|
+
path /mnt/pos/coreos-setup-environment.log.pos
|
608
|
+
</storage>
|
609
|
+
tag coreos-setup-environment
|
610
|
+
</source>
|
611
|
+
|
612
|
+
<filter coreos-setup-environment.**>
|
613
|
+
@type kubernetes_sumologic
|
614
|
+
source_category system
|
615
|
+
source_name coreos-setup-environment
|
616
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
617
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
618
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
619
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
620
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
621
|
+
</filter>
|
622
|
+
|
623
|
+
<source>
|
624
|
+
@type systemd
|
625
|
+
path /mnt/log/journal
|
626
|
+
filters [{"_SYSTEMD_UNIT": "coreos-tmpfiles.service"}]
|
627
|
+
<storage>
|
628
|
+
@type local
|
629
|
+
persistent true
|
630
|
+
path /mnt/pos/coreos-tmpfiles.log.pos
|
631
|
+
</storage>
|
632
|
+
tag coreos-tmpfiles
|
633
|
+
</source>
|
634
|
+
|
635
|
+
<filter coreos-tmpfiles.**>
|
636
|
+
@type kubernetes_sumologic
|
637
|
+
source_category system
|
638
|
+
source_name coreos-tmpfiles
|
639
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
640
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
641
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
642
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
643
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
644
|
+
</filter>
|
645
|
+
|
646
|
+
<source>
|
647
|
+
@type systemd
|
648
|
+
path /mnt/log/journal
|
649
|
+
filters [{"_SYSTEMD_UNIT": "dbus.service"}]
|
650
|
+
<storage>
|
651
|
+
@type local
|
652
|
+
persistent true
|
653
|
+
path /mnt/pos/dbus.log.pos
|
654
|
+
</storage>
|
655
|
+
tag dbus
|
656
|
+
</source>
|
657
|
+
|
658
|
+
<filter dbus.**>
|
659
|
+
@type kubernetes_sumologic
|
660
|
+
source_category system
|
661
|
+
source_name dbus
|
662
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
663
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
664
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
665
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
666
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
667
|
+
</filter>
|
668
|
+
|
669
|
+
<source>
|
670
|
+
@type systemd
|
671
|
+
path /mnt/log/journal
|
672
|
+
filters [{"_SYSTEMD_UNIT": "docker.service"}]
|
673
|
+
<storage>
|
674
|
+
@type local
|
675
|
+
persistent true
|
676
|
+
path /mnt/pos/docker.log.pos
|
677
|
+
</storage>
|
678
|
+
tag docker
|
679
|
+
</source>
|
680
|
+
|
681
|
+
<filter docker.**>
|
682
|
+
@type kubernetes_sumologic
|
683
|
+
source_category system
|
684
|
+
source_name docker
|
685
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
686
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
687
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
688
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
689
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
690
|
+
</filter>
|
691
|
+
|
692
|
+
<source>
|
693
|
+
@type systemd
|
694
|
+
path /mnt/log/journal
|
695
|
+
filters [{"_SYSTEMD_UNIT": "efs.service"}]
|
696
|
+
<storage>
|
697
|
+
@type local
|
698
|
+
persistent true
|
699
|
+
path /mnt/pos/efs.log.pos
|
700
|
+
</storage>
|
701
|
+
tag efs
|
702
|
+
</source>
|
703
|
+
|
704
|
+
<filter efs.**>
|
705
|
+
@type kubernetes_sumologic
|
706
|
+
source_category system
|
707
|
+
source_name efs
|
708
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
709
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
710
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
711
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
712
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
713
|
+
</filter>
|
714
|
+
|
715
|
+
<source>
|
716
|
+
@type systemd
|
717
|
+
path /mnt/log/journal
|
718
|
+
filters [{"_SYSTEMD_UNIT": "etcd-member.service"}]
|
719
|
+
<storage>
|
720
|
+
@type local
|
721
|
+
persistent true
|
722
|
+
path /mnt/pos/etcd-member.log.pos
|
723
|
+
</storage>
|
724
|
+
tag etcd-member
|
725
|
+
</source>
|
726
|
+
|
727
|
+
<filter etcd-member.**>
|
728
|
+
@type kubernetes_sumologic
|
729
|
+
source_category system
|
730
|
+
source_name etcd-member
|
731
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
732
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
733
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
734
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
735
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
736
|
+
</filter>
|
737
|
+
|
738
|
+
<source>
|
739
|
+
@type systemd
|
740
|
+
path /mnt/log/journal
|
741
|
+
filters [{"_SYSTEMD_UNIT": "etcd.service"}]
|
742
|
+
<storage>
|
743
|
+
@type local
|
744
|
+
persistent true
|
745
|
+
path /mnt/pos/etcd.log.pos
|
746
|
+
</storage>
|
747
|
+
tag etcd
|
748
|
+
</source>
|
749
|
+
|
750
|
+
<filter etcd.**>
|
751
|
+
@type kubernetes_sumologic
|
752
|
+
source_category system
|
753
|
+
source_name etcd
|
754
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
755
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
756
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
757
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
758
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
759
|
+
</filter>
|
760
|
+
|
761
|
+
<source>
|
762
|
+
@type systemd
|
763
|
+
path /mnt/log/journal
|
764
|
+
filters [{"_SYSTEMD_UNIT": "etcd2.service"}]
|
765
|
+
<storage>
|
766
|
+
@type local
|
767
|
+
persistent true
|
768
|
+
path /mnt/pos/etcd2.log.pos
|
769
|
+
</storage>
|
770
|
+
tag etcd2
|
771
|
+
</source>
|
772
|
+
|
773
|
+
<filter etcd2.**>
|
774
|
+
@type kubernetes_sumologic
|
775
|
+
source_category system
|
776
|
+
source_name etcd2
|
777
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
778
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
779
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
780
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
781
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
782
|
+
</filter>
|
783
|
+
|
784
|
+
<source>
|
785
|
+
@type systemd
|
786
|
+
path /mnt/log/journal
|
787
|
+
filters [{"_SYSTEMD_UNIT": "etcd3.service"}]
|
788
|
+
<storage>
|
789
|
+
@type local
|
790
|
+
persistent true
|
791
|
+
path /mnt/pos/etcd3.log.pos
|
792
|
+
</storage>
|
793
|
+
tag etcd3
|
794
|
+
</source>
|
795
|
+
|
796
|
+
<filter etcd3.**>
|
797
|
+
@type kubernetes_sumologic
|
798
|
+
source_category system
|
799
|
+
source_name etcd3
|
800
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
801
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
802
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
803
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
804
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
805
|
+
</filter>
|
806
|
+
|
807
|
+
<source>
|
808
|
+
@type systemd
|
809
|
+
path /mnt/log/journal
|
810
|
+
filters [{"_SYSTEMD_UNIT": "etcdadm-check.service"}]
|
811
|
+
<storage>
|
812
|
+
@type local
|
813
|
+
persistent true
|
814
|
+
path /mnt/pos/etcdadm-check.log.pos
|
815
|
+
</storage>
|
816
|
+
tag etcdadm-check
|
817
|
+
</source>
|
818
|
+
|
819
|
+
<filter etcdadm-check.**>
|
820
|
+
@type kubernetes_sumologic
|
821
|
+
source_category system
|
822
|
+
source_name etcdadm-check
|
823
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
824
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
825
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
826
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
827
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
828
|
+
</filter>
|
829
|
+
|
830
|
+
<source>
|
831
|
+
@type systemd
|
832
|
+
path /mnt/log/journal
|
833
|
+
filters [{"_SYSTEMD_UNIT": "etcdadm-reconfigure.service"}]
|
834
|
+
<storage>
|
835
|
+
@type local
|
836
|
+
persistent true
|
837
|
+
path /mnt/pos/etcdadm-reconfigure.log.pos
|
838
|
+
</storage>
|
839
|
+
tag etcdadm-reconfigure
|
840
|
+
</source>
|
841
|
+
|
842
|
+
<filter etcdadm-reconfigure.**>
|
843
|
+
@type kubernetes_sumologic
|
844
|
+
source_category system
|
845
|
+
source_name etcdadm-reconfigure
|
846
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
847
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
848
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
849
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
850
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
851
|
+
</filter>
|
852
|
+
|
853
|
+
<source>
|
854
|
+
@type systemd
|
855
|
+
path /mnt/log/journal
|
856
|
+
filters [{"_SYSTEMD_UNIT": "etcdadm-save.service"}]
|
857
|
+
<storage>
|
858
|
+
@type local
|
859
|
+
persistent true
|
860
|
+
path /mnt/pos/etcdadm-save.log.pos
|
861
|
+
</storage>
|
862
|
+
tag etcdadm-save
|
863
|
+
</source>
|
864
|
+
|
865
|
+
<filter etcdadm-save.**>
|
866
|
+
@type kubernetes_sumologic
|
867
|
+
source_category system
|
868
|
+
source_name etcdadm-save
|
869
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
870
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
871
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
872
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
873
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
874
|
+
</filter>
|
875
|
+
|
876
|
+
<source>
|
877
|
+
@type systemd
|
878
|
+
path /mnt/log/journal
|
879
|
+
filters [{"_SYSTEMD_UNIT": "etcdadm-update-status.service"}]
|
880
|
+
<storage>
|
881
|
+
@type local
|
882
|
+
persistent true
|
883
|
+
path /mnt/pos/etcdadm-update-status.log.pos
|
884
|
+
</storage>
|
885
|
+
tag etcdadm-update-status
|
886
|
+
</source>
|
887
|
+
|
888
|
+
<filter etcdadm-update-status.**>
|
889
|
+
@type kubernetes_sumologic
|
890
|
+
source_category system
|
891
|
+
source_name etcdadm-update-status
|
892
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
893
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
894
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
895
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
896
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
897
|
+
</filter>
|
898
|
+
|
899
|
+
<source>
|
900
|
+
@type systemd
|
901
|
+
path /mnt/log/journal
|
902
|
+
filters [{"_SYSTEMD_UNIT": "flanneld.service"}]
|
903
|
+
<storage>
|
904
|
+
@type local
|
905
|
+
persistent true
|
906
|
+
path /mnt/pos/flanneld.log.pos
|
907
|
+
</storage>
|
908
|
+
tag flanneld
|
909
|
+
</source>
|
910
|
+
|
911
|
+
<filter flanneld.**>
|
912
|
+
@type kubernetes_sumologic
|
913
|
+
source_category system
|
914
|
+
source_name flanneld
|
915
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
916
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
917
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
918
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
919
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
920
|
+
</filter>
|
921
|
+
|
922
|
+
<source>
|
923
|
+
@type systemd
|
924
|
+
path /mnt/log/journal
|
925
|
+
filters [{"_SYSTEMD_UNIT": "format-etcd2-volume.service"}]
|
926
|
+
<storage>
|
927
|
+
@type local
|
928
|
+
persistent true
|
929
|
+
path /mnt/pos/format-etcd2-volume.log.pos
|
930
|
+
</storage>
|
931
|
+
tag format-etcd2-volume
|
932
|
+
</source>
|
933
|
+
|
934
|
+
<filter format-etcd2-volume.**>
|
935
|
+
@type kubernetes_sumologic
|
936
|
+
source_category system
|
937
|
+
source_name format-etcd2-volume
|
938
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
939
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
940
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
941
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
942
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
943
|
+
</filter>
|
944
|
+
|
945
|
+
<source>
|
946
|
+
@type systemd
|
947
|
+
path /mnt/log/journal
|
948
|
+
filters [{"_SYSTEMD_UNIT": "kube-node-taint-and-uncordon.service"}]
|
949
|
+
<storage>
|
950
|
+
@type local
|
951
|
+
persistent true
|
952
|
+
path /mnt/pos/kube-node-taint-and-uncordon.log.pos
|
953
|
+
</storage>
|
954
|
+
tag kube-node-taint-and-uncordon
|
955
|
+
</source>
|
956
|
+
|
957
|
+
<filter kube-node-taint-and-uncordon.**>
|
958
|
+
@type kubernetes_sumologic
|
959
|
+
source_category system
|
960
|
+
source_name kube-node-taint-and-uncordon
|
961
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
962
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
963
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
964
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
965
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
966
|
+
</filter>
|
967
|
+
|
968
|
+
# Multi-line parsing is required for all the kube logs because very large log
|
969
|
+
# statements, such as those that include entire object bodies, get split into
|
970
|
+
# multiple lines by glog.
|
971
|
+
|
972
|
+
# Example:
|
973
|
+
# I0204 07:32:30.020537 3368 server.go:1048] POST /stats/container/: (13.972191ms) 200 [[Go-http-client/1.1] 10.244.1.3:40537]
|
974
|
+
<source>
|
975
|
+
@type systemd
|
976
|
+
path /mnt/log/journal
|
977
|
+
filters [{"_SYSTEMD_UNIT": "kubelet.service"}]
|
978
|
+
<storage>
|
979
|
+
@type local
|
980
|
+
persistent true
|
981
|
+
path /mnt/pos/kubelet.log.pos
|
982
|
+
</storage>
|
983
|
+
tag kubelet
|
984
|
+
</source>
|
985
|
+
|
986
|
+
<filter kubelet.**>
|
987
|
+
@type kubernetes_sumologic
|
988
|
+
source_category kubelet
|
989
|
+
source_name k8s_kubelet
|
990
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
991
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
992
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
993
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
994
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
995
|
+
</filter>
|
996
|
+
|
997
|
+
<source>
|
998
|
+
@type systemd
|
999
|
+
path /mnt/log/journal
|
1000
|
+
filters [{"_SYSTEMD_UNIT": "ldconfig.service"}]
|
1001
|
+
<storage>
|
1002
|
+
@type local
|
1003
|
+
persistent true
|
1004
|
+
path /mnt/pos/ldconfig.log.pos
|
1005
|
+
</storage>
|
1006
|
+
tag ldconfig
|
1007
|
+
</source>
|
1008
|
+
|
1009
|
+
<filter ldconfig.**>
|
1010
|
+
@type kubernetes_sumologic
|
1011
|
+
source_category system
|
1012
|
+
source_name ldconfig
|
1013
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
1014
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
1015
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
1016
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
1017
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
1018
|
+
</filter>
|
1019
|
+
|
1020
|
+
<source>
|
1021
|
+
@type systemd
|
1022
|
+
path /mnt/log/journal
|
1023
|
+
filters [{"_SYSTEMD_UNIT": "locksmithd.service"}]
|
1024
|
+
<storage>
|
1025
|
+
@type local
|
1026
|
+
persistent true
|
1027
|
+
path /mnt/pos/locksmithd.log.pos
|
1028
|
+
</storage>
|
1029
|
+
tag locksmithd
|
1030
|
+
</source>
|
1031
|
+
|
1032
|
+
<filter locksmithd.**>
|
1033
|
+
@type kubernetes_sumologic
|
1034
|
+
source_category system
|
1035
|
+
source_name locksmithd
|
1036
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
1037
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
1038
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
1039
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
1040
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
1041
|
+
</filter>
|
1042
|
+
|
1043
|
+
<source>
|
1044
|
+
@type systemd
|
1045
|
+
path /mnt/log/journal
|
1046
|
+
filters [{"_SYSTEMD_UNIT": "logrotate.service"}]
|
1047
|
+
<storage>
|
1048
|
+
@type local
|
1049
|
+
persistent true
|
1050
|
+
path /mnt/pos/logrotate.log.pos
|
1051
|
+
</storage>
|
1052
|
+
tag logrotate
|
1053
|
+
</source>
|
1054
|
+
|
1055
|
+
<filter logrotate.**>
|
1056
|
+
@type kubernetes_sumologic
|
1057
|
+
source_category system
|
1058
|
+
source_name logrotate
|
1059
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
1060
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
1061
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
1062
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
1063
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
1064
|
+
</filter>
|
1065
|
+
|
1066
|
+
<source>
|
1067
|
+
@type systemd
|
1068
|
+
path /mnt/log/journal
|
1069
|
+
filters [{"_SYSTEMD_UNIT": "lvm2-monitor.service"}]
|
1070
|
+
<storage>
|
1071
|
+
@type local
|
1072
|
+
persistent true
|
1073
|
+
path /mnt/pos/lvm2-monitor.log.pos
|
1074
|
+
</storage>
|
1075
|
+
tag lvm2-monitor
|
1076
|
+
</source>
|
1077
|
+
|
1078
|
+
<filter lvm2-monitor.**>
|
1079
|
+
@type kubernetes_sumologic
|
1080
|
+
source_category system
|
1081
|
+
source_name lvm2-monitor
|
1082
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
1083
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
1084
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
1085
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
1086
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
1087
|
+
</filter>
|
1088
|
+
|
1089
|
+
<source>
|
1090
|
+
@type systemd
|
1091
|
+
path /mnt/log/journal
|
1092
|
+
filters [{"_SYSTEMD_UNIT": "mdmon.service"}]
|
1093
|
+
<storage>
|
1094
|
+
@type local
|
1095
|
+
persistent true
|
1096
|
+
path /mnt/pos/mdmon.log.pos
|
1097
|
+
</storage>
|
1098
|
+
tag mdmon
|
1099
|
+
</source>
|
1100
|
+
|
1101
|
+
<filter mdmon.**>
|
1102
|
+
@type kubernetes_sumologic
|
1103
|
+
source_category system
|
1104
|
+
source_name mdmon
|
1105
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
1106
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
1107
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
1108
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
1109
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
1110
|
+
</filter>
|
1111
|
+
|
1112
|
+
<source>
|
1113
|
+
@type systemd
|
1114
|
+
path /mnt/log/journal
|
1115
|
+
filters [{"_SYSTEMD_UNIT": "nfs-idmapd.service"}]
|
1116
|
+
<storage>
|
1117
|
+
@type local
|
1118
|
+
persistent true
|
1119
|
+
path /mnt/pos/nfs-idmapd.log.pos
|
1120
|
+
</storage>
|
1121
|
+
tag nfs-idmapd
|
1122
|
+
</source>
|
1123
|
+
|
1124
|
+
<filter nfs-idmapd.**>
|
1125
|
+
@type kubernetes_sumologic
|
1126
|
+
source_category system
|
1127
|
+
source_name nfs-idmapd
|
1128
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
1129
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
1130
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
1131
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
1132
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
1133
|
+
</filter>
|
1134
|
+
|
1135
|
+
<source>
|
1136
|
+
@type systemd
|
1137
|
+
path /mnt/log/journal
|
1138
|
+
filters [{"_SYSTEMD_UNIT": "nfs-mountd.service"}]
|
1139
|
+
<storage>
|
1140
|
+
@type local
|
1141
|
+
persistent true
|
1142
|
+
path /mnt/pos/nfs-mountd.log.pos
|
1143
|
+
</storage>
|
1144
|
+
tag nfs-mountd
|
1145
|
+
</source>
|
1146
|
+
|
1147
|
+
<filter nfs-mountd.**>
|
1148
|
+
@type kubernetes_sumologic
|
1149
|
+
source_category system
|
1150
|
+
source_name nfs-mountd
|
1151
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
1152
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
1153
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
1154
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
1155
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
1156
|
+
</filter>
|
1157
|
+
|
1158
|
+
<source>
|
1159
|
+
@type systemd
|
1160
|
+
path /mnt/log/journal
|
1161
|
+
filters [{"_SYSTEMD_UNIT": "nfs-server.service"}]
|
1162
|
+
<storage>
|
1163
|
+
@type local
|
1164
|
+
persistent true
|
1165
|
+
path /mnt/pos/nfs-server.log.pos
|
1166
|
+
</storage>
|
1167
|
+
tag nfs-server
|
1168
|
+
</source>
|
1169
|
+
|
1170
|
+
<filter nfs-server.**>
|
1171
|
+
@type kubernetes_sumologic
|
1172
|
+
source_category system
|
1173
|
+
source_name nfs-server
|
1174
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
1175
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
1176
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
1177
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
1178
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
1179
|
+
</filter>
|
1180
|
+
|
1181
|
+
<source>
|
1182
|
+
@type systemd
|
1183
|
+
path /mnt/log/journal
|
1184
|
+
filters [{"_SYSTEMD_UNIT": "nfs-utils.service"}]
|
1185
|
+
<storage>
|
1186
|
+
@type local
|
1187
|
+
persistent true
|
1188
|
+
path /mnt/pos/nfs-utils.log.pos
|
1189
|
+
</storage>
|
1190
|
+
tag nfs-utils
|
1191
|
+
</source>
|
1192
|
+
|
1193
|
+
<filter nfs-utils.**>
|
1194
|
+
@type kubernetes_sumologic
|
1195
|
+
source_category system
|
1196
|
+
source_name nfs-utils
|
1197
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
1198
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
1199
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
1200
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
1201
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
1202
|
+
</filter>
|
1203
|
+
|
1204
|
+
<source>
|
1205
|
+
@type systemd
|
1206
|
+
path /mnt/log/journal
|
1207
|
+
filters [{"_SYSTEMD_UNIT": "oem-cloudinit.service"}]
|
1208
|
+
<storage>
|
1209
|
+
@type local
|
1210
|
+
persistent true
|
1211
|
+
path /mnt/pos/oem-cloudinit.log.pos
|
1212
|
+
</storage>
|
1213
|
+
tag oem-cloudinit
|
1214
|
+
</source>
|
1215
|
+
|
1216
|
+
<filter oem-cloudinit.**>
|
1217
|
+
@type kubernetes_sumologic
|
1218
|
+
source_category system
|
1219
|
+
source_name oem-cloudinit
|
1220
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
1221
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
1222
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
1223
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
1224
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
1225
|
+
</filter>
|
1226
|
+
|
1227
|
+
<source>
|
1228
|
+
@type systemd
|
1229
|
+
path /mnt/log/journal
|
1230
|
+
filters [{"_SYSTEMD_UNIT": "rkt-gc.service"}]
|
1231
|
+
<storage>
|
1232
|
+
@type local
|
1233
|
+
persistent true
|
1234
|
+
path /mnt/pos/rkt-gc.log.pos
|
1235
|
+
</storage>
|
1236
|
+
tag rkt-gc
|
1237
|
+
</source>
|
1238
|
+
|
1239
|
+
<filter rkt-gc.**>
|
1240
|
+
@type kubernetes_sumologic
|
1241
|
+
source_category system
|
1242
|
+
source_name rkt-gc
|
1243
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
1244
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
1245
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
1246
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
1247
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
1248
|
+
</filter>
|
1249
|
+
|
1250
|
+
<source>
|
1251
|
+
@type systemd
|
1252
|
+
path /mnt/log/journal
|
1253
|
+
filters [{"_SYSTEMD_UNIT": "rkt-metadata.service"}]
|
1254
|
+
<storage>
|
1255
|
+
@type local
|
1256
|
+
persistent true
|
1257
|
+
path /mnt/pos/rkt-metadata.log.pos
|
1258
|
+
</storage>
|
1259
|
+
tag rkt-metadata
|
1260
|
+
</source>
|
1261
|
+
|
1262
|
+
<filter rkt-metadata.**>
|
1263
|
+
@type kubernetes_sumologic
|
1264
|
+
source_category system
|
1265
|
+
source_name rkt-metadata
|
1266
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
1267
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
1268
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
1269
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
1270
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
1271
|
+
</filter>
|
1272
|
+
|
1273
|
+
<source>
|
1274
|
+
@type systemd
|
1275
|
+
path /mnt/log/journal
|
1276
|
+
filters [{"_SYSTEMD_UNIT": "rpc-idmapd.service"}]
|
1277
|
+
<storage>
|
1278
|
+
@type local
|
1279
|
+
persistent true
|
1280
|
+
path /mnt/pos/rpc-idmapd.log.pos
|
1281
|
+
</storage>
|
1282
|
+
tag rpc-idmapd
|
1283
|
+
</source>
|
1284
|
+
|
1285
|
+
<filter rpc-idmapd.**>
|
1286
|
+
@type kubernetes_sumologic
|
1287
|
+
source_category system
|
1288
|
+
source_name rpc-idmapd
|
1289
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
1290
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
1291
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
1292
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
1293
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
1294
|
+
</filter>
|
1295
|
+
|
1296
|
+
<source>
|
1297
|
+
@type systemd
|
1298
|
+
path /mnt/log/journal
|
1299
|
+
filters [{"_SYSTEMD_UNIT": "rpc-mountd.service"}]
|
1300
|
+
<storage>
|
1301
|
+
@type local
|
1302
|
+
persistent true
|
1303
|
+
path /mnt/pos/rpc-mountd.log.pos
|
1304
|
+
</storage>
|
1305
|
+
tag rpc-mountd
|
1306
|
+
</source>
|
1307
|
+
|
1308
|
+
<filter rpc-mountd.**>
|
1309
|
+
@type kubernetes_sumologic
|
1310
|
+
source_category system
|
1311
|
+
source_name rpc-mountd
|
1312
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
1313
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
1314
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
1315
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
1316
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
1317
|
+
</filter>
|
1318
|
+
|
1319
|
+
<source>
|
1320
|
+
@type systemd
|
1321
|
+
path /mnt/log/journal
|
1322
|
+
filters [{"_SYSTEMD_UNIT": "rpc-statd.service"}]
|
1323
|
+
<storage>
|
1324
|
+
@type local
|
1325
|
+
persistent true
|
1326
|
+
path /mnt/pos/rpc-statd.log.pos
|
1327
|
+
</storage>
|
1328
|
+
tag rpc-statd
|
1329
|
+
</source>
|
1330
|
+
|
1331
|
+
<filter rpc-statd.**>
|
1332
|
+
@type kubernetes_sumologic
|
1333
|
+
source_category system
|
1334
|
+
source_name rpc-statd
|
1335
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
1336
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
1337
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
1338
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
1339
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
1340
|
+
</filter>
|
1341
|
+
|
1342
|
+
<source>
|
1343
|
+
@type systemd
|
1344
|
+
path /mnt/log/journal
|
1345
|
+
filters [{"_SYSTEMD_UNIT": "rpcbind.service"}]
|
1346
|
+
<storage>
|
1347
|
+
@type local
|
1348
|
+
persistent true
|
1349
|
+
path /mnt/pos/rpcbind.log.pos
|
1350
|
+
</storage>
|
1351
|
+
tag rpcbind
|
1352
|
+
</source>
|
1353
|
+
|
1354
|
+
<filter rpcbind.**>
|
1355
|
+
@type kubernetes_sumologic
|
1356
|
+
source_category system
|
1357
|
+
source_name rpcbind
|
1358
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
1359
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
1360
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
1361
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
1362
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
1363
|
+
</filter>
|
1364
|
+
|
1365
|
+
<source>
|
1366
|
+
@type systemd
|
1367
|
+
path /mnt/log/journal
|
1368
|
+
filters [{"_SYSTEMD_UNIT": "set-aws-environment.service"}]
|
1369
|
+
<storage>
|
1370
|
+
@type local
|
1371
|
+
persistent true
|
1372
|
+
path /mnt/pos/set-aws-environment.log.pos
|
1373
|
+
</storage>
|
1374
|
+
tag set-aws-environment
|
1375
|
+
</source>
|
1376
|
+
|
1377
|
+
<filter set-aws-environment.**>
|
1378
|
+
@type kubernetes_sumologic
|
1379
|
+
source_category system
|
1380
|
+
source_name set-aws-environment
|
1381
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
1382
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
1383
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
1384
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
1385
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
1386
|
+
</filter>
|
1387
|
+
|
1388
|
+
<source>
|
1389
|
+
@type systemd
|
1390
|
+
path /mnt/log/journal
|
1391
|
+
filters [{"_SYSTEMD_UNIT": "system-cloudinit.service"}]
|
1392
|
+
<storage>
|
1393
|
+
@type local
|
1394
|
+
persistent true
|
1395
|
+
path /mnt/pos/system-cloudinit.log.pos
|
1396
|
+
</storage>
|
1397
|
+
tag system-cloudinit
|
1398
|
+
</source>
|
1399
|
+
|
1400
|
+
<filter system-cloudinit.**>
|
1401
|
+
@type kubernetes_sumologic
|
1402
|
+
source_category system
|
1403
|
+
source_name system-cloudinit
|
1404
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
1405
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
1406
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
1407
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
1408
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
1409
|
+
</filter>
|
1410
|
+
|
1411
|
+
<source>
|
1412
|
+
@type systemd
|
1413
|
+
path /mnt/log/journal
|
1414
|
+
filters [{"_SYSTEMD_UNIT": "update-ca-certificates.service"}]
|
1415
|
+
<storage>
|
1416
|
+
@type local
|
1417
|
+
persistent true
|
1418
|
+
path /mnt/pos/update-ca-certificates.log.pos
|
1419
|
+
</storage>
|
1420
|
+
tag update-ca-certificates
|
1421
|
+
</source>
|
1422
|
+
|
1423
|
+
<filter update-ca-certificates.**>
|
1424
|
+
@type kubernetes_sumologic
|
1425
|
+
source_category system
|
1426
|
+
source_name update-ca-certificates
|
1427
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
1428
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
1429
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
1430
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
1431
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
1432
|
+
</filter>
|
1433
|
+
|
1434
|
+
<source>
|
1435
|
+
@type systemd
|
1436
|
+
path /mnt/log/journal
|
1437
|
+
filters [{"_SYSTEMD_UNIT": "user-cloudinit.service"}]
|
1438
|
+
<storage>
|
1439
|
+
@type local
|
1440
|
+
persistent true
|
1441
|
+
path /mnt/pos/user-cloudinit.log.pos
|
1442
|
+
</storage>
|
1443
|
+
tag user-cloudinit
|
1444
|
+
</source>
|
1445
|
+
|
1446
|
+
<filter user-cloudinit.**>
|
1447
|
+
@type kubernetes_sumologic
|
1448
|
+
source_category system
|
1449
|
+
source_name user-cloudinit
|
1450
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
1451
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
1452
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
1453
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
1454
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
1455
|
+
</filter>
|
1456
|
+
|
1457
|
+
<source>
|
1458
|
+
@type systemd
|
1459
|
+
path /mnt/log/journal
|
1460
|
+
filters [{"_SYSTEMD_UNIT": "var-lib-etcd2.service"}]
|
1461
|
+
<storage>
|
1462
|
+
@type local
|
1463
|
+
persistent true
|
1464
|
+
path /mnt/pos/var-lib-etcd2.log.pos
|
1465
|
+
</storage>
|
1466
|
+
tag var-lib-etcd2
|
1467
|
+
</source>
|
1468
|
+
|
1469
|
+
<filter var-lib-etcd2.**>
|
1470
|
+
@type kubernetes_sumologic
|
1471
|
+
source_category system
|
1472
|
+
source_name var-lib-etcd2
|
1473
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
1474
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
1475
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
1476
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
1477
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
1478
|
+
</filter>
|
1479
|
+
|
1480
|
+
<source>
|
1481
|
+
@type systemd
|
1482
|
+
path /mnt/log/journal
|
1483
|
+
filters [{"_SYSTEMD_UNIT": "ntp.service"}]
|
1484
|
+
<storage>
|
1485
|
+
@type local
|
1486
|
+
persistent true
|
1487
|
+
path /mnt/pos/ntp.log.pos
|
1488
|
+
</storage>
|
1489
|
+
tag ntp
|
1490
|
+
</source>
|
1491
|
+
|
1492
|
+
<filter ntp.**>
|
1493
|
+
@type kubernetes_sumologic
|
1494
|
+
source_category system
|
1495
|
+
source_name ntp
|
1496
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
1497
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
1498
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
1499
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
1500
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
1501
|
+
</filter>
|
1502
|
+
|
1503
|
+
<source>
|
1504
|
+
@type systemd
|
1505
|
+
path /mnt/log/journal
|
1506
|
+
filters [{"_SYSTEMD_UNIT": "systemd-timesyncd.service"}]
|
1507
|
+
<storage>
|
1508
|
+
@type local
|
1509
|
+
persistent true
|
1510
|
+
path /mnt/pos/systemd-timesyncd.log.pos
|
1511
|
+
</storage>
|
1512
|
+
tag systemd-timesyncd
|
1513
|
+
</source>
|
1514
|
+
|
1515
|
+
<filter systemd-timesyncd.**>
|
1516
|
+
@type kubernetes_sumologic
|
1517
|
+
source_category system
|
1518
|
+
source_name systemd-timesyncd
|
1519
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
1520
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
1521
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
1522
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
1523
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
1524
|
+
</filter>
|