fluent-plugin-kubernetes_sumologic 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +22 -0
- data/.travis.yml +13 -0
- data/CHANGELOG.md +101 -0
- data/Dockerfile +70 -0
- data/Gemfile +9 -0
- data/LICENSE +201 -0
- data/README.md +545 -0
- data/Rakefile +11 -0
- data/ci/build.sh +39 -0
- data/conf.d/file/source.containers.conf +64 -0
- data/conf.d/file/source.docker.conf +20 -0
- data/conf.d/file/source.kubernetes.conf +158 -0
- data/conf.d/out.sumo.conf +13 -0
- data/conf.d/systemd/source.containers.conf +47 -0
- data/conf.d/systemd/source.systemd.conf +1088 -0
- data/daemonset/nonrbac/fluentd.yaml +51 -0
- data/daemonset/rbac/fluentd.yaml +90 -0
- data/entrypoint.sh +16 -0
- data/etc/fluent.file.conf +13 -0
- data/etc/fluent.systemd.conf +13 -0
- data/fluent-plugin-kubernetes_sumologic.gemspec +29 -0
- data/lib/fluent/plugin/filter_kubernetes_sumologic.rb +201 -0
- data/screenshots/container.png +0 -0
- data/screenshots/docker.png +0 -0
- data/screenshots/kubelet.png +0 -0
- data/screenshots/kubernetes.png +0 -0
- data/test/helper.rb +16 -0
- data/test/plugin/test_filter_kubernetes_sumologic.rb +1473 -0
- metadata +161 -0
data/Rakefile
ADDED
data/ci/build.sh
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
|
3
|
+
echo "Starting build process in: `pwd`"
|
4
|
+
set -e
|
5
|
+
|
6
|
+
VERSION="${TRAVIS_TAG:-0.0.0}"
|
7
|
+
: "${DOCKER_TAG:=sumologic/fluentd-kubernetes-sumologic}"
|
8
|
+
: "${DOCKER_USERNAME:=sumodocker}"
|
9
|
+
PLUGIN_NAME="fluent-plugin-kubernetes_sumologic"
|
10
|
+
|
11
|
+
echo "Building for tag $VERSION, modify .gemspec file..."
|
12
|
+
sed -i.bak "s/0.0.0/$VERSION/g" ./$PLUGIN_NAME.gemspec
|
13
|
+
rm -f ./$PLUGIN_NAME.gemspec.bak
|
14
|
+
|
15
|
+
echo "Install bundler..."
|
16
|
+
bundle install
|
17
|
+
|
18
|
+
echo "Run unit tests..."
|
19
|
+
bundle exec rake
|
20
|
+
|
21
|
+
echo "Build gem $PLUGIN_NAME $VERSION..."
|
22
|
+
gem build $PLUGIN_NAME
|
23
|
+
|
24
|
+
echo "Building docker image with $DOCKER_TAG:$VERSION and $DOCKER_TAG:latest in `pwd`..."
|
25
|
+
docker build . -f ./Dockerfile -t $DOCKER_TAG:$VERSION --no-cache
|
26
|
+
docker build . -f ./Dockerfile -t $DOCKER_TAG:latest
|
27
|
+
|
28
|
+
if [[ -z "${DOCKER_PASSWORD}" ]] || [[ -z "${TRAVIS_TAG}" ]]; then
|
29
|
+
echo "Skip Docker pushing"
|
30
|
+
else
|
31
|
+
echo "Pushing docker image with $DOCKER_TAG:$VERSION and $DOCKER_TAG:latest..."
|
32
|
+
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
|
33
|
+
docker push $DOCKER_TAG:$VERSION
|
34
|
+
docker push $DOCKER_TAG:latest
|
35
|
+
fi
|
36
|
+
|
37
|
+
rm -f ./*.gem
|
38
|
+
|
39
|
+
echo "DONE"
|
@@ -0,0 +1,64 @@
|
|
1
|
+
<source>
|
2
|
+
@type tail
|
3
|
+
format json
|
4
|
+
time_key "#{ENV['TIME_KEY']}"
|
5
|
+
path "#{ENV['CONTAINER_LOGS_PATH']}"
|
6
|
+
exclude_path "#{ENV['EXCLUDE_PATH']}"
|
7
|
+
pos_file /mnt/pos/ggcp-containers.log.pos
|
8
|
+
time_format %Y-%m-%dT%H:%M:%S.%NZ
|
9
|
+
tag containers.*
|
10
|
+
read_from_head "#{ENV['READ_FROM_HEAD']}"
|
11
|
+
enable_stat_watcher "#{ENV['ENABLE_STAT_WATCHER']}"
|
12
|
+
</source>
|
13
|
+
|
14
|
+
<filter containers.**>
|
15
|
+
@type concat
|
16
|
+
key log
|
17
|
+
multiline_start_regexp "#{ENV['MULTILINE_START_REGEXP']}"
|
18
|
+
separator "#{ENV['CONCAT_SEPARATOR']}"
|
19
|
+
timeout_label @NORMAL
|
20
|
+
</filter>
|
21
|
+
|
22
|
+
<match containers.**>
|
23
|
+
@type relabel
|
24
|
+
@label @NORMAL
|
25
|
+
</match>
|
26
|
+
|
27
|
+
<label @NORMAL>
|
28
|
+
<filter containers.**>
|
29
|
+
@type kubernetes_metadata
|
30
|
+
@log_level warn
|
31
|
+
annotation_match ["sumologic\.com.*"]
|
32
|
+
de_dot false
|
33
|
+
watch "#{ENV['K8S_METADATA_FILTER_WATCH']}"
|
34
|
+
ca_file "#{ENV['K8S_METADATA_FILTER_CA_FILE']}"
|
35
|
+
verify_ssl "#{ENV['K8S_METADATA_FILTER_VERIFY_SSL']}"
|
36
|
+
client_cert "#{ENV['K8S_METADATA_FILTER_CLIENT_CERT']}"
|
37
|
+
client_key "#{ENV['K8S_METADATA_FILTER_CLIENT_KEY']}"
|
38
|
+
bearer_token_file "#{ENV['K8S_METADATA_FILTER_BEARER_TOKEN_FILE']}"
|
39
|
+
cache_size "#{ENV['K8S_METADATA_FILTER_BEARER_CACHE_SIZE']}"
|
40
|
+
cache_ttl "#{ENV['K8S_METADATA_FILTER_BEARER_CACHE_TTL']}"
|
41
|
+
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$'
|
42
|
+
merge_json_log false
|
43
|
+
</filter>
|
44
|
+
|
45
|
+
<filter containers.**>
|
46
|
+
@type kubernetes_sumologic
|
47
|
+
source_name "#{ENV['SOURCE_NAME']}"
|
48
|
+
source_host "#{ENV['SOURCE_HOST']}"
|
49
|
+
log_format "#{ENV['LOG_FORMAT']}"
|
50
|
+
kubernetes_meta "#{ENV['KUBERNETES_META']}"
|
51
|
+
kubernetes_meta_reduce "#{ENV['KUBERNETES_META_REDUCE']}"
|
52
|
+
add_stream "#{ENV['ADD_STREAM']}"
|
53
|
+
add_time "#{ENV['ADD_TIME']}"
|
54
|
+
source_category "#{ENV['SOURCE_CATEGORY']}"
|
55
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
56
|
+
source_category_replace_dash "#{ENV['SOURCE_CATEGORY_REPLACE_DASH']}"
|
57
|
+
exclude_namespace_regex "#{ENV['EXCLUDE_NAMESPACE_REGEX']}"
|
58
|
+
exclude_pod_regex "#{ENV['EXCLUDE_POD_REGEX']}"
|
59
|
+
exclude_container_regex "#{ENV['EXCLUDE_CONTAINER_REGEX']}"
|
60
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
61
|
+
</filter>
|
62
|
+
|
63
|
+
@include /fluentd/conf.d/out.sumo.conf
|
64
|
+
</label>
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# Examples:
|
2
|
+
# time="2016-02-04T06:51:03.053580605Z" level=info msg="GET /containers/json"
|
3
|
+
# time="2016-02-04T07:53:57.505612354Z" level=error msg="HTTP Error" err="No such image: -f" statusCode=404
|
4
|
+
<source>
|
5
|
+
@type tail
|
6
|
+
format /^time="(?<time>[^)]*)" level=(?<severity>[^ ]*) msg="(?<message>[^"]*)"( err="(?<error>[^"]*)")?( statusCode=($<status_code>\d+))?/
|
7
|
+
time_format %Y-%m-%dT%H:%M:%S.%NZ
|
8
|
+
path /var/lib/docker.log
|
9
|
+
exclude_path "#{ENV['EXCLUDE_PATH']}"
|
10
|
+
pos_file /mnt/pos/ggcp-docker.log.pos
|
11
|
+
tag docker
|
12
|
+
enable_stat_watcher "#{ENV['ENABLE_STAT_WATCHER']}"
|
13
|
+
</source>
|
14
|
+
|
15
|
+
<filter docker.**>
|
16
|
+
@type kubernetes_sumologic
|
17
|
+
source_category docker
|
18
|
+
source_name k8s_docker
|
19
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
20
|
+
</filter>
|
@@ -0,0 +1,158 @@
|
|
1
|
+
# Example:
|
2
|
+
# 2015-12-21 23:17:22,066 [salt.state ][INFO ] Completed state [net.ipv4.ip_forward] at time 23:17:22.066081
|
3
|
+
<source>
|
4
|
+
@type tail
|
5
|
+
format /^(?<time>[^ ]* [^ ,]*)[^\[]*\[[^\]]*\]\[(?<severity>[^ \]]*) *\] (?<message>.*)$/
|
6
|
+
time_format %Y-%m-%d %H:%M:%S
|
7
|
+
path /mnt/log/salt/minion
|
8
|
+
exclude_path "#{ENV['EXCLUDE_PATH']}"
|
9
|
+
pos_file /mnt/pos/ggcp-salt.pos
|
10
|
+
tag salt
|
11
|
+
enable_stat_watcher "#{ENV['ENABLE_STAT_WATCHER']}"
|
12
|
+
</source>
|
13
|
+
|
14
|
+
<filter salt.**>
|
15
|
+
@type kubernetes_sumologic
|
16
|
+
source_category salt
|
17
|
+
source_name k8s_salt
|
18
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
19
|
+
add_stream "#{ENV['ADD_STREAM']}"
|
20
|
+
add_time "#{ENV['ADD_TIME']}"
|
21
|
+
exclude_namespace_regex "#{ENV['EXCLUDE_NAMESPACE_REGEX']}"
|
22
|
+
</filter>
|
23
|
+
|
24
|
+
|
25
|
+
# Example:
|
26
|
+
# Dec 21 23:17:22 gke-foo-1-1-4b5cbd14-node-4eoj startupscript: Finished running startup script /var/run/google.startup.script
|
27
|
+
<source>
|
28
|
+
@type tail
|
29
|
+
format syslog
|
30
|
+
path /mnt/log/startupscript.log
|
31
|
+
exclude_path "#{ENV['EXCLUDE_PATH']}"
|
32
|
+
pos_file /mnt/pos/ggcp-startupscript.log.pos
|
33
|
+
tag startupscript
|
34
|
+
enable_stat_watcher "#{ENV['ENABLE_STAT_WATCHER']}"
|
35
|
+
</source>
|
36
|
+
|
37
|
+
<filter startupscript.**>
|
38
|
+
@type kubernetes_sumologic
|
39
|
+
source_category startupscript
|
40
|
+
source_name k8s_startupscript
|
41
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
42
|
+
add_stream "#{ENV['ADD_STREAM']}"
|
43
|
+
add_time "#{ENV['ADD_TIME']}"
|
44
|
+
exclude_namespace_regex "#{ENV['EXCLUDE_NAMESPACE_REGEX']}"
|
45
|
+
</filter>
|
46
|
+
|
47
|
+
|
48
|
+
# Multi-line parsing is required for all the kube logs because very large log
|
49
|
+
# statements, such as those that include entire object bodies, get split into
|
50
|
+
# multiple lines by glog.
|
51
|
+
|
52
|
+
|
53
|
+
# Example:
|
54
|
+
# 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]
|
55
|
+
<source>
|
56
|
+
@type tail
|
57
|
+
format multiline
|
58
|
+
multiline_flush_interval 5s
|
59
|
+
format_firstline /^\w\d{4}/
|
60
|
+
format1 /^(?<severity>\w)(?<time>\d{4} [^\s]*)\s+(?<pid>\d+)\s+(?<source>[^ \]]+)\] (?<message>.*)/
|
61
|
+
time_format %m%d %H:%M:%S.%N
|
62
|
+
path /mnt/log/kubelet.log
|
63
|
+
exclude_path "#{ENV['EXCLUDE_PATH']}"
|
64
|
+
pos_file /mnt/pos/ggcp-kubelet.log.pos
|
65
|
+
tag kubelet
|
66
|
+
enable_stat_watcher "#{ENV['ENABLE_STAT_WATCHER']}"
|
67
|
+
</source>
|
68
|
+
|
69
|
+
<filter kubelet.**>
|
70
|
+
@type kubernetes_sumologic
|
71
|
+
source_category kubelet
|
72
|
+
source_name k8s_kubelet
|
73
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
74
|
+
add_stream "#{ENV['ADD_STREAM']}"
|
75
|
+
add_time "#{ENV['ADD_TIME']}"
|
76
|
+
exclude_namespace_regex "#{ENV['EXCLUDE_NAMESPACE_REGEX']}"
|
77
|
+
</filter>
|
78
|
+
|
79
|
+
|
80
|
+
# Example
|
81
|
+
# 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"
|
82
|
+
# 2017-02-09T00:15:57.993528822Z AUDIT: id="6a8sdffd918-0b6a-4aee-a3a1-f1sdf61596" response="200"
|
83
|
+
<source>
|
84
|
+
@type tail
|
85
|
+
format json
|
86
|
+
time_key timestamp
|
87
|
+
time_format %Y-%m-%dT%H:%M:%SZ
|
88
|
+
path "#{ENV['AUDIT_LOG_PATH']}"
|
89
|
+
exclude_path "#{ENV['EXCLUDE_PATH']}"
|
90
|
+
pos_file /mnt/pos/ggcp-kube-audit.log.pos
|
91
|
+
tag kube-audit
|
92
|
+
read_from_head "#{ENV['READ_FROM_HEAD']}"
|
93
|
+
enable_stat_watcher "#{ENV['ENABLE_STAT_WATCHER']}"
|
94
|
+
</source>
|
95
|
+
|
96
|
+
<filter kube-audit.**>
|
97
|
+
@type kubernetes_sumologic
|
98
|
+
source_category kube-audit
|
99
|
+
source_name k8s_kube-audit
|
100
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
101
|
+
add_stream "#{ENV['ADD_STREAM']}"
|
102
|
+
add_time "#{ENV['ADD_TIME']}"
|
103
|
+
exclude_namespace_regex "#{ENV['EXCLUDE_NAMESPACE_REGEX']}"
|
104
|
+
</filter>
|
105
|
+
|
106
|
+
|
107
|
+
# Example:
|
108
|
+
# I0603 15:31:05.793605 6 cluster_manager.go:230] Reading config from path /etc/gce.conf
|
109
|
+
<source>
|
110
|
+
@type tail
|
111
|
+
format multiline
|
112
|
+
multiline_flush_interval 5s
|
113
|
+
format_firstline /^\w\d{4}/
|
114
|
+
format1 /^(?<severity>\w)(?<time>\d{4} [^\s]*)\s+(?<pid>\d+)\s+(?<source>[^ \]]+)\] (?<message>.*)/
|
115
|
+
time_format %m%d %H:%M:%S.%N
|
116
|
+
path /mnt/log/glbc.log
|
117
|
+
exclude_path "#{ENV['EXCLUDE_PATH']}"
|
118
|
+
pos_file /mnt/pos/ggcp-glbc.log.pos
|
119
|
+
tag glbc
|
120
|
+
enable_stat_watcher "#{ENV['ENABLE_STAT_WATCHER']}"
|
121
|
+
</source>
|
122
|
+
|
123
|
+
<filter glbc.**>
|
124
|
+
@type kubernetes_sumologic
|
125
|
+
source_category glbc
|
126
|
+
source_name k8s_glbc
|
127
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
128
|
+
add_stream "#{ENV['ADD_STREAM']}"
|
129
|
+
add_time "#{ENV['ADD_TIME']}"
|
130
|
+
exclude_namespace_regex "#{ENV['EXCLUDE_NAMESPACE_REGEX']}"
|
131
|
+
</filter>
|
132
|
+
|
133
|
+
|
134
|
+
# Example:
|
135
|
+
# I0603 15:31:05.793605 6 cluster_manager.go:230] Reading config from path /etc/gce.conf
|
136
|
+
<source>
|
137
|
+
@type tail
|
138
|
+
format multiline
|
139
|
+
multiline_flush_interval 5s
|
140
|
+
format_firstline /^\w\d{4}/
|
141
|
+
format1 /^(?<severity>\w)(?<time>\d{4} [^\s]*)\s+(?<pid>\d+)\s+(?<source>[^ \]]+)\] (?<message>.*)/
|
142
|
+
time_format %m%d %H:%M:%S.%N
|
143
|
+
path /mnt/log/cluster-autoscaler.log
|
144
|
+
exclude_path "#{ENV['EXCLUDE_PATH']}"
|
145
|
+
pos_file /mnt/pos/ggcp-cluster-autoscaler.log.pos
|
146
|
+
tag cluster-autoscaler
|
147
|
+
enable_stat_watcher "#{ENV['ENABLE_STAT_WATCHER']}"
|
148
|
+
</source>
|
149
|
+
|
150
|
+
<filter cluster-autoscaler.**>
|
151
|
+
@type kubernetes_sumologic
|
152
|
+
source_category cluster-autoscaler
|
153
|
+
source_name k8s_cluster-autoscaler
|
154
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
155
|
+
add_stream "#{ENV['ADD_STREAM']}"
|
156
|
+
add_time "#{ENV['ADD_TIME']}"
|
157
|
+
exclude_namespace_regex "#{ENV['EXCLUDE_NAMESPACE_REGEX']}"
|
158
|
+
</filter>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<match **>
|
2
|
+
@type sumologic
|
3
|
+
log_key log
|
4
|
+
endpoint "#{ENV['COLLECTOR_URL']}"
|
5
|
+
verify_ssl "#{ENV['VERIFY_SSL']}"
|
6
|
+
log_format "#{ENV['LOG_FORMAT']}"
|
7
|
+
flush_interval "#{ENV['FLUSH_INTERVAL']}"
|
8
|
+
num_threads "#{ENV['NUM_THREADS']}"
|
9
|
+
open_timeout 60
|
10
|
+
add_timestamp "#{ENV['ADD_TIMESTAMP']}"
|
11
|
+
timestamp_key "#{ENV['TIMESTAMP_KEY']}"
|
12
|
+
proxy_uri "#{ENV['PROXY_URI']}"
|
13
|
+
</match>
|
@@ -0,0 +1,47 @@
|
|
1
|
+
<source>
|
2
|
+
@type tail
|
3
|
+
format json
|
4
|
+
time_key "#{ENV['TIME_KEY']}"
|
5
|
+
path "#{ENV['CONTAINER_LOGS_PATH']}"
|
6
|
+
exclude_path "#{ENV['EXCLUDE_PATH']}"
|
7
|
+
pos_file /mnt/pos/ggcp-containers.log.pos
|
8
|
+
time_format %Y-%m-%dT%H:%M:%S.%NZ
|
9
|
+
tag containers.*
|
10
|
+
read_from_head "#{ENV['READ_FROM_HEAD']}"
|
11
|
+
enable_stat_watcher "#{ENV['ENABLE_STAT_WATCHER']}"
|
12
|
+
</source>
|
13
|
+
|
14
|
+
<filter containers.**>
|
15
|
+
@type kubernetes_metadata
|
16
|
+
@log_level warn
|
17
|
+
annotation_match ["sumologic\.com.*"]
|
18
|
+
de_dot false
|
19
|
+
watch "#{ENV['K8S_METADATA_FILTER_WATCH']}"
|
20
|
+
ca_file "#{ENV['K8S_METADATA_FILTER_CA_FILE']}"
|
21
|
+
verify_ssl "#{ENV['K8S_METADATA_FILTER_VERIFY_SSL']}"
|
22
|
+
client_cert "#{ENV['K8S_METADATA_FILTER_CLIENT_CERT']}"
|
23
|
+
client_key "#{ENV['K8S_METADATA_FILTER_CLIENT_KEY']}"
|
24
|
+
bearer_token_file "#{ENV['K8S_METADATA_FILTER_BEARER_TOKEN_FILE']}"
|
25
|
+
cache_size "#{ENV['K8S_METADATA_FILTER_BEARER_CACHE_SIZE']}"
|
26
|
+
cache_ttl "#{ENV['K8S_METADATA_FILTER_BEARER_CACHE_TTL']}"
|
27
|
+
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$'
|
28
|
+
merge_json_log false
|
29
|
+
</filter>
|
30
|
+
|
31
|
+
<filter containers.**>
|
32
|
+
@type kubernetes_sumologic
|
33
|
+
source_name "#{ENV['SOURCE_NAME']}"
|
34
|
+
source_host "#{ENV['SOURCE_HOST']}"
|
35
|
+
log_format "#{ENV['LOG_FORMAT']}"
|
36
|
+
kubernetes_meta "#{ENV['KUBERNETES_META']}"
|
37
|
+
kubernetes_meta_reduce "#{ENV['KUBERNETES_META_REDUCE']}"
|
38
|
+
add_stream "#{ENV['ADD_STREAM']}"
|
39
|
+
add_time "#{ENV['ADD_TIME']}"
|
40
|
+
source_category "#{ENV['SOURCE_CATEGORY']}"
|
41
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
42
|
+
source_category_replace_dash "#{ENV['SOURCE_CATEGORY_REPLACE_DASH']}"
|
43
|
+
exclude_namespace_regex "#{ENV['EXCLUDE_NAMESPACE_REGEX']}"
|
44
|
+
exclude_pod_regex "#{ENV['EXCLUDE_POD_REGEX']}"
|
45
|
+
exclude_container_regex "#{ENV['EXCLUDE_CONTAINER_REGEX']}"
|
46
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
47
|
+
</filter>
|
@@ -0,0 +1,1088 @@
|
|
1
|
+
|
2
|
+
<source>
|
3
|
+
@type systemd
|
4
|
+
path /mnt/log/journal
|
5
|
+
filters [{"_SYSTEMD_UNIT": "addon-config.service"}]
|
6
|
+
<storage>
|
7
|
+
@type local
|
8
|
+
persistent true
|
9
|
+
path /mnt/pos/addon-config.log.pos
|
10
|
+
</storage>
|
11
|
+
tag addon-config
|
12
|
+
</source>
|
13
|
+
|
14
|
+
<filter addon-config.**>
|
15
|
+
@type kubernetes_sumologic
|
16
|
+
source_category system
|
17
|
+
source_name addon-config
|
18
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
19
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
20
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
21
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
22
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
23
|
+
</filter>
|
24
|
+
|
25
|
+
<source>
|
26
|
+
@type systemd
|
27
|
+
path /mnt/log/journal
|
28
|
+
filters [{"_SYSTEMD_UNIT": "addon-run.service"}]
|
29
|
+
<storage>
|
30
|
+
@type local
|
31
|
+
persistent true
|
32
|
+
path /mnt/pos/addon-run.log.pos
|
33
|
+
</storage>
|
34
|
+
tag addon-run
|
35
|
+
</source>
|
36
|
+
|
37
|
+
<filter addon-run.**>
|
38
|
+
@type kubernetes_sumologic
|
39
|
+
source_category system
|
40
|
+
source_name addon-run
|
41
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
42
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
43
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
44
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
45
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
46
|
+
</filter>
|
47
|
+
|
48
|
+
<source>
|
49
|
+
@type systemd
|
50
|
+
path /mnt/log/journal
|
51
|
+
filters [{"_SYSTEMD_UNIT": "cfn-etcd-environment.service"}]
|
52
|
+
<storage>
|
53
|
+
@type local
|
54
|
+
persistent true
|
55
|
+
path /mnt/pos/cfn-etcd-environment.log.pos
|
56
|
+
</storage>
|
57
|
+
tag cfn-etcd-environment
|
58
|
+
</source>
|
59
|
+
|
60
|
+
<filter cfn-etcd-environment.**>
|
61
|
+
@type kubernetes_sumologic
|
62
|
+
source_category system
|
63
|
+
source_name cfn-etcd-environment
|
64
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
65
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
66
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
67
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
68
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
69
|
+
</filter>
|
70
|
+
|
71
|
+
<source>
|
72
|
+
@type systemd
|
73
|
+
path /mnt/log/journal
|
74
|
+
filters [{"_SYSTEMD_UNIT": "cfn-signal.service"}]
|
75
|
+
<storage>
|
76
|
+
@type local
|
77
|
+
persistent true
|
78
|
+
path /mnt/pos/cfn-signal.log.pos
|
79
|
+
</storage>
|
80
|
+
tag cfn-signal
|
81
|
+
</source>
|
82
|
+
|
83
|
+
<filter cfn-signal.**>
|
84
|
+
@type kubernetes_sumologic
|
85
|
+
source_category system
|
86
|
+
source_name cfn-signal
|
87
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
88
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
89
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
90
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
91
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
92
|
+
</filter>
|
93
|
+
|
94
|
+
<source>
|
95
|
+
@type systemd
|
96
|
+
path /mnt/log/journal
|
97
|
+
filters [{"_SYSTEMD_UNIT": "clean-ca-certificates.service"}]
|
98
|
+
<storage>
|
99
|
+
@type local
|
100
|
+
persistent true
|
101
|
+
path /mnt/pos/clean-ca-certificates.log.pos
|
102
|
+
</storage>
|
103
|
+
tag clean-ca-certificates
|
104
|
+
</source>
|
105
|
+
|
106
|
+
<filter clean-ca-certificates.**>
|
107
|
+
@type kubernetes_sumologic
|
108
|
+
source_category system
|
109
|
+
source_name clean-ca-certificates
|
110
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
111
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
112
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
113
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
114
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
115
|
+
</filter>
|
116
|
+
|
117
|
+
<source>
|
118
|
+
@type systemd
|
119
|
+
path /mnt/log/journal
|
120
|
+
filters [{"_SYSTEMD_UNIT": "containerd.service"}]
|
121
|
+
<storage>
|
122
|
+
@type local
|
123
|
+
persistent true
|
124
|
+
path /mnt/pos/containerd.log.pos
|
125
|
+
</storage>
|
126
|
+
tag containerd
|
127
|
+
</source>
|
128
|
+
|
129
|
+
<filter containerd.**>
|
130
|
+
@type kubernetes_sumologic
|
131
|
+
source_category system
|
132
|
+
source_name containerd
|
133
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
134
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
135
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
136
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
137
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
138
|
+
</filter>
|
139
|
+
|
140
|
+
<source>
|
141
|
+
@type systemd
|
142
|
+
path /mnt/log/journal
|
143
|
+
filters [{"_SYSTEMD_UNIT": "coreos-metadata.service"}]
|
144
|
+
<storage>
|
145
|
+
@type local
|
146
|
+
persistent true
|
147
|
+
path /mnt/pos/coreos-metadata.log.pos
|
148
|
+
</storage>
|
149
|
+
tag coreos-metadata
|
150
|
+
</source>
|
151
|
+
|
152
|
+
<filter coreos-metadata.**>
|
153
|
+
@type kubernetes_sumologic
|
154
|
+
source_category system
|
155
|
+
source_name coreos-metadata
|
156
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
157
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
158
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
159
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
160
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
161
|
+
</filter>
|
162
|
+
|
163
|
+
<source>
|
164
|
+
@type systemd
|
165
|
+
path /mnt/log/journal
|
166
|
+
filters [{"_SYSTEMD_UNIT": "coreos-setup-environment.service"}]
|
167
|
+
<storage>
|
168
|
+
@type local
|
169
|
+
persistent true
|
170
|
+
path /mnt/pos/coreos-setup-environment.log.pos
|
171
|
+
</storage>
|
172
|
+
tag coreos-setup-environment
|
173
|
+
</source>
|
174
|
+
|
175
|
+
<filter coreos-setup-environment.**>
|
176
|
+
@type kubernetes_sumologic
|
177
|
+
source_category system
|
178
|
+
source_name coreos-setup-environment
|
179
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
180
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
181
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
182
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
183
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
184
|
+
</filter>
|
185
|
+
|
186
|
+
<source>
|
187
|
+
@type systemd
|
188
|
+
path /mnt/log/journal
|
189
|
+
filters [{"_SYSTEMD_UNIT": "coreos-tmpfiles.service"}]
|
190
|
+
<storage>
|
191
|
+
@type local
|
192
|
+
persistent true
|
193
|
+
path /mnt/pos/coreos-tmpfiles.log.pos
|
194
|
+
</storage>
|
195
|
+
tag coreos-tmpfiles
|
196
|
+
</source>
|
197
|
+
|
198
|
+
<filter coreos-tmpfiles.**>
|
199
|
+
@type kubernetes_sumologic
|
200
|
+
source_category system
|
201
|
+
source_name coreos-tmpfiles
|
202
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
203
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
204
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
205
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
206
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
207
|
+
</filter>
|
208
|
+
|
209
|
+
<source>
|
210
|
+
@type systemd
|
211
|
+
path /mnt/log/journal
|
212
|
+
filters [{"_SYSTEMD_UNIT": "dbus.service"}]
|
213
|
+
<storage>
|
214
|
+
@type local
|
215
|
+
persistent true
|
216
|
+
path /mnt/pos/dbus.log.pos
|
217
|
+
</storage>
|
218
|
+
tag dbus
|
219
|
+
</source>
|
220
|
+
|
221
|
+
<filter dbus.**>
|
222
|
+
@type kubernetes_sumologic
|
223
|
+
source_category system
|
224
|
+
source_name dbus
|
225
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
226
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
227
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
228
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
229
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
230
|
+
</filter>
|
231
|
+
|
232
|
+
<source>
|
233
|
+
@type systemd
|
234
|
+
path /mnt/log/journal
|
235
|
+
filters [{"_SYSTEMD_UNIT": "docker.service"}]
|
236
|
+
<storage>
|
237
|
+
@type local
|
238
|
+
persistent true
|
239
|
+
path /mnt/pos/docker.log.pos
|
240
|
+
</storage>
|
241
|
+
tag docker
|
242
|
+
</source>
|
243
|
+
|
244
|
+
<filter docker.**>
|
245
|
+
@type kubernetes_sumologic
|
246
|
+
source_category system
|
247
|
+
source_name docker
|
248
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
249
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
250
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
251
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
252
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
253
|
+
</filter>
|
254
|
+
|
255
|
+
<source>
|
256
|
+
@type systemd
|
257
|
+
path /mnt/log/journal
|
258
|
+
filters [{"_SYSTEMD_UNIT": "efs.service"}]
|
259
|
+
<storage>
|
260
|
+
@type local
|
261
|
+
persistent true
|
262
|
+
path /mnt/pos/efs.log.pos
|
263
|
+
</storage>
|
264
|
+
tag efs
|
265
|
+
</source>
|
266
|
+
|
267
|
+
<filter efs.**>
|
268
|
+
@type kubernetes_sumologic
|
269
|
+
source_category system
|
270
|
+
source_name efs
|
271
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
272
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
273
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
274
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
275
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
276
|
+
</filter>
|
277
|
+
|
278
|
+
<source>
|
279
|
+
@type systemd
|
280
|
+
path /mnt/log/journal
|
281
|
+
filters [{"_SYSTEMD_UNIT": "etcd-member.service"}]
|
282
|
+
<storage>
|
283
|
+
@type local
|
284
|
+
persistent true
|
285
|
+
path /mnt/pos/etcd-member.log.pos
|
286
|
+
</storage>
|
287
|
+
tag etcd-member
|
288
|
+
</source>
|
289
|
+
|
290
|
+
<filter etcd-member.**>
|
291
|
+
@type kubernetes_sumologic
|
292
|
+
source_category system
|
293
|
+
source_name etcd-member
|
294
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
295
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
296
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
297
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
298
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
299
|
+
</filter>
|
300
|
+
|
301
|
+
<source>
|
302
|
+
@type systemd
|
303
|
+
path /mnt/log/journal
|
304
|
+
filters [{"_SYSTEMD_UNIT": "etcd.service"}]
|
305
|
+
<storage>
|
306
|
+
@type local
|
307
|
+
persistent true
|
308
|
+
path /mnt/pos/etcd.log.pos
|
309
|
+
</storage>
|
310
|
+
tag etcd
|
311
|
+
</source>
|
312
|
+
|
313
|
+
<filter etcd.**>
|
314
|
+
@type kubernetes_sumologic
|
315
|
+
source_category system
|
316
|
+
source_name etcd
|
317
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
318
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
319
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
320
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
321
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
322
|
+
</filter>
|
323
|
+
|
324
|
+
<source>
|
325
|
+
@type systemd
|
326
|
+
path /mnt/log/journal
|
327
|
+
filters [{"_SYSTEMD_UNIT": "etcd2.service"}]
|
328
|
+
<storage>
|
329
|
+
@type local
|
330
|
+
persistent true
|
331
|
+
path /mnt/pos/etcd2.log.pos
|
332
|
+
</storage>
|
333
|
+
tag etcd2
|
334
|
+
</source>
|
335
|
+
|
336
|
+
<filter etcd2.**>
|
337
|
+
@type kubernetes_sumologic
|
338
|
+
source_category system
|
339
|
+
source_name etcd2
|
340
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
341
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
342
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
343
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
344
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
345
|
+
</filter>
|
346
|
+
|
347
|
+
<source>
|
348
|
+
@type systemd
|
349
|
+
path /mnt/log/journal
|
350
|
+
filters [{"_SYSTEMD_UNIT": "etcd3.service"}]
|
351
|
+
<storage>
|
352
|
+
@type local
|
353
|
+
persistent true
|
354
|
+
path /mnt/pos/etcd3.log.pos
|
355
|
+
</storage>
|
356
|
+
tag etcd3
|
357
|
+
</source>
|
358
|
+
|
359
|
+
<filter etcd3.**>
|
360
|
+
@type kubernetes_sumologic
|
361
|
+
source_category system
|
362
|
+
source_name etcd3
|
363
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
364
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
365
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
366
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
367
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
368
|
+
</filter>
|
369
|
+
|
370
|
+
<source>
|
371
|
+
@type systemd
|
372
|
+
path /mnt/log/journal
|
373
|
+
filters [{"_SYSTEMD_UNIT": "etcdadm-check.service"}]
|
374
|
+
<storage>
|
375
|
+
@type local
|
376
|
+
persistent true
|
377
|
+
path /mnt/pos/etcdadm-check.log.pos
|
378
|
+
</storage>
|
379
|
+
tag etcdadm-check
|
380
|
+
</source>
|
381
|
+
|
382
|
+
<filter etcdadm-check.**>
|
383
|
+
@type kubernetes_sumologic
|
384
|
+
source_category system
|
385
|
+
source_name etcdadm-check
|
386
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
387
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
388
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
389
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
390
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
391
|
+
</filter>
|
392
|
+
|
393
|
+
<source>
|
394
|
+
@type systemd
|
395
|
+
path /mnt/log/journal
|
396
|
+
filters [{"_SYSTEMD_UNIT": "etcdadm-reconfigure.service"}]
|
397
|
+
<storage>
|
398
|
+
@type local
|
399
|
+
persistent true
|
400
|
+
path /mnt/pos/etcdadm-reconfigure.log.pos
|
401
|
+
</storage>
|
402
|
+
tag etcdadm-reconfigure
|
403
|
+
</source>
|
404
|
+
|
405
|
+
<filter etcdadm-reconfigure.**>
|
406
|
+
@type kubernetes_sumologic
|
407
|
+
source_category system
|
408
|
+
source_name etcdadm-reconfigure
|
409
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
410
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
411
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
412
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
413
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
414
|
+
</filter>
|
415
|
+
|
416
|
+
<source>
|
417
|
+
@type systemd
|
418
|
+
path /mnt/log/journal
|
419
|
+
filters [{"_SYSTEMD_UNIT": "etcdadm-save.service"}]
|
420
|
+
<storage>
|
421
|
+
@type local
|
422
|
+
persistent true
|
423
|
+
path /mnt/pos/etcdadm-save.log.pos
|
424
|
+
</storage>
|
425
|
+
tag etcdadm-save
|
426
|
+
</source>
|
427
|
+
|
428
|
+
<filter etcdadm-save.**>
|
429
|
+
@type kubernetes_sumologic
|
430
|
+
source_category system
|
431
|
+
source_name etcdadm-save
|
432
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
433
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
434
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
435
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
436
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
437
|
+
</filter>
|
438
|
+
|
439
|
+
<source>
|
440
|
+
@type systemd
|
441
|
+
path /mnt/log/journal
|
442
|
+
filters [{"_SYSTEMD_UNIT": "etcdadm-update-status.service"}]
|
443
|
+
<storage>
|
444
|
+
@type local
|
445
|
+
persistent true
|
446
|
+
path /mnt/pos/etcdadm-update-status.log.pos
|
447
|
+
</storage>
|
448
|
+
tag etcdadm-update-status
|
449
|
+
</source>
|
450
|
+
|
451
|
+
<filter etcdadm-update-status.**>
|
452
|
+
@type kubernetes_sumologic
|
453
|
+
source_category system
|
454
|
+
source_name etcdadm-update-status
|
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": "flanneld.service"}]
|
466
|
+
<storage>
|
467
|
+
@type local
|
468
|
+
persistent true
|
469
|
+
path /mnt/pos/flanneld.log.pos
|
470
|
+
</storage>
|
471
|
+
tag flanneld
|
472
|
+
</source>
|
473
|
+
|
474
|
+
<filter flanneld.**>
|
475
|
+
@type kubernetes_sumologic
|
476
|
+
source_category system
|
477
|
+
source_name flanneld
|
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": "format-etcd2-volume.service"}]
|
489
|
+
<storage>
|
490
|
+
@type local
|
491
|
+
persistent true
|
492
|
+
path /mnt/pos/format-etcd2-volume.log.pos
|
493
|
+
</storage>
|
494
|
+
tag format-etcd2-volume
|
495
|
+
</source>
|
496
|
+
|
497
|
+
<filter format-etcd2-volume.**>
|
498
|
+
@type kubernetes_sumologic
|
499
|
+
source_category system
|
500
|
+
source_name format-etcd2-volume
|
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": "kube-node-taint-and-uncordon.service"}]
|
512
|
+
<storage>
|
513
|
+
@type local
|
514
|
+
persistent true
|
515
|
+
path /mnt/pos/kube-node-taint-and-uncordon.log.pos
|
516
|
+
</storage>
|
517
|
+
tag kube-node-taint-and-uncordon
|
518
|
+
</source>
|
519
|
+
|
520
|
+
<filter kube-node-taint-and-uncordon.**>
|
521
|
+
@type kubernetes_sumologic
|
522
|
+
source_category system
|
523
|
+
source_name kube-node-taint-and-uncordon
|
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
|
+
# Multi-line parsing is required for all the kube logs because very large log
|
532
|
+
# statements, such as those that include entire object bodies, get split into
|
533
|
+
# multiple lines by glog.
|
534
|
+
|
535
|
+
# Example:
|
536
|
+
# 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]
|
537
|
+
<source>
|
538
|
+
@type systemd
|
539
|
+
path /mnt/log/journal
|
540
|
+
filters [{"_SYSTEMD_UNIT": "kubelet.service"}]
|
541
|
+
<storage>
|
542
|
+
@type local
|
543
|
+
persistent true
|
544
|
+
path /mnt/pos/kubelet.log.pos
|
545
|
+
</storage>
|
546
|
+
tag kubelet
|
547
|
+
</source>
|
548
|
+
|
549
|
+
<filter kubelet.**>
|
550
|
+
@type kubernetes_sumologic
|
551
|
+
source_category kubelet
|
552
|
+
source_name k8s_kubelet
|
553
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
554
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
555
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
556
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
557
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
558
|
+
</filter>
|
559
|
+
|
560
|
+
<source>
|
561
|
+
@type systemd
|
562
|
+
path /mnt/log/journal
|
563
|
+
filters [{"_SYSTEMD_UNIT": "ldconfig.service"}]
|
564
|
+
<storage>
|
565
|
+
@type local
|
566
|
+
persistent true
|
567
|
+
path /mnt/pos/ldconfig.log.pos
|
568
|
+
</storage>
|
569
|
+
tag ldconfig
|
570
|
+
</source>
|
571
|
+
|
572
|
+
<filter ldconfig.**>
|
573
|
+
@type kubernetes_sumologic
|
574
|
+
source_category system
|
575
|
+
source_name ldconfig
|
576
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
577
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
578
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
579
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
580
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
581
|
+
</filter>
|
582
|
+
|
583
|
+
<source>
|
584
|
+
@type systemd
|
585
|
+
path /mnt/log/journal
|
586
|
+
filters [{"_SYSTEMD_UNIT": "locksmithd.service"}]
|
587
|
+
<storage>
|
588
|
+
@type local
|
589
|
+
persistent true
|
590
|
+
path /mnt/pos/locksmithd.log.pos
|
591
|
+
</storage>
|
592
|
+
tag locksmithd
|
593
|
+
</source>
|
594
|
+
|
595
|
+
<filter locksmithd.**>
|
596
|
+
@type kubernetes_sumologic
|
597
|
+
source_category system
|
598
|
+
source_name locksmithd
|
599
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
600
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
601
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
602
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
603
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
604
|
+
</filter>
|
605
|
+
|
606
|
+
<source>
|
607
|
+
@type systemd
|
608
|
+
path /mnt/log/journal
|
609
|
+
filters [{"_SYSTEMD_UNIT": "logrotate.service"}]
|
610
|
+
<storage>
|
611
|
+
@type local
|
612
|
+
persistent true
|
613
|
+
path /mnt/pos/logrotate.log.pos
|
614
|
+
</storage>
|
615
|
+
tag logrotate
|
616
|
+
</source>
|
617
|
+
|
618
|
+
<filter logrotate.**>
|
619
|
+
@type kubernetes_sumologic
|
620
|
+
source_category system
|
621
|
+
source_name logrotate
|
622
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
623
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
624
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
625
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
626
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
627
|
+
</filter>
|
628
|
+
|
629
|
+
<source>
|
630
|
+
@type systemd
|
631
|
+
path /mnt/log/journal
|
632
|
+
filters [{"_SYSTEMD_UNIT": "lvm2-monitor.service"}]
|
633
|
+
<storage>
|
634
|
+
@type local
|
635
|
+
persistent true
|
636
|
+
path /mnt/pos/lvm2-monitor.log.pos
|
637
|
+
</storage>
|
638
|
+
tag lvm2-monitor
|
639
|
+
</source>
|
640
|
+
|
641
|
+
<filter lvm2-monitor.**>
|
642
|
+
@type kubernetes_sumologic
|
643
|
+
source_category system
|
644
|
+
source_name lvm2-monitor
|
645
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
646
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
647
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
648
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
649
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
650
|
+
</filter>
|
651
|
+
|
652
|
+
<source>
|
653
|
+
@type systemd
|
654
|
+
path /mnt/log/journal
|
655
|
+
filters [{"_SYSTEMD_UNIT": "mdmon.service"}]
|
656
|
+
<storage>
|
657
|
+
@type local
|
658
|
+
persistent true
|
659
|
+
path /mnt/pos/mdmon.log.pos
|
660
|
+
</storage>
|
661
|
+
tag mdmon
|
662
|
+
</source>
|
663
|
+
|
664
|
+
<filter mdmon.**>
|
665
|
+
@type kubernetes_sumologic
|
666
|
+
source_category system
|
667
|
+
source_name mdmon
|
668
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
669
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
670
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
671
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
672
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
673
|
+
</filter>
|
674
|
+
|
675
|
+
<source>
|
676
|
+
@type systemd
|
677
|
+
path /mnt/log/journal
|
678
|
+
filters [{"_SYSTEMD_UNIT": "nfs-idmapd.service"}]
|
679
|
+
<storage>
|
680
|
+
@type local
|
681
|
+
persistent true
|
682
|
+
path /mnt/pos/nfs-idmapd.log.pos
|
683
|
+
</storage>
|
684
|
+
tag nfs-idmapd
|
685
|
+
</source>
|
686
|
+
|
687
|
+
<filter nfs-idmapd.**>
|
688
|
+
@type kubernetes_sumologic
|
689
|
+
source_category system
|
690
|
+
source_name nfs-idmapd
|
691
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
692
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
693
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
694
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
695
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
696
|
+
</filter>
|
697
|
+
|
698
|
+
<source>
|
699
|
+
@type systemd
|
700
|
+
path /mnt/log/journal
|
701
|
+
filters [{"_SYSTEMD_UNIT": "nfs-mountd.service"}]
|
702
|
+
<storage>
|
703
|
+
@type local
|
704
|
+
persistent true
|
705
|
+
path /mnt/pos/nfs-mountd.log.pos
|
706
|
+
</storage>
|
707
|
+
tag nfs-mountd
|
708
|
+
</source>
|
709
|
+
|
710
|
+
<filter nfs-mountd.**>
|
711
|
+
@type kubernetes_sumologic
|
712
|
+
source_category system
|
713
|
+
source_name nfs-mountd
|
714
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
715
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
716
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
717
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
718
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
719
|
+
</filter>
|
720
|
+
|
721
|
+
<source>
|
722
|
+
@type systemd
|
723
|
+
path /mnt/log/journal
|
724
|
+
filters [{"_SYSTEMD_UNIT": "nfs-server.service"}]
|
725
|
+
<storage>
|
726
|
+
@type local
|
727
|
+
persistent true
|
728
|
+
path /mnt/pos/nfs-server.log.pos
|
729
|
+
</storage>
|
730
|
+
tag nfs-server
|
731
|
+
</source>
|
732
|
+
|
733
|
+
<filter nfs-server.**>
|
734
|
+
@type kubernetes_sumologic
|
735
|
+
source_category system
|
736
|
+
source_name nfs-server
|
737
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
738
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
739
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
740
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
741
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
742
|
+
</filter>
|
743
|
+
|
744
|
+
<source>
|
745
|
+
@type systemd
|
746
|
+
path /mnt/log/journal
|
747
|
+
filters [{"_SYSTEMD_UNIT": "nfs-utils.service"}]
|
748
|
+
<storage>
|
749
|
+
@type local
|
750
|
+
persistent true
|
751
|
+
path /mnt/pos/nfs-utils.log.pos
|
752
|
+
</storage>
|
753
|
+
tag nfs-utils
|
754
|
+
</source>
|
755
|
+
|
756
|
+
<filter nfs-utils.**>
|
757
|
+
@type kubernetes_sumologic
|
758
|
+
source_category system
|
759
|
+
source_name nfs-utils
|
760
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
761
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
762
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
763
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
764
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
765
|
+
</filter>
|
766
|
+
|
767
|
+
<source>
|
768
|
+
@type systemd
|
769
|
+
path /mnt/log/journal
|
770
|
+
filters [{"_SYSTEMD_UNIT": "oem-cloudinit.service"}]
|
771
|
+
<storage>
|
772
|
+
@type local
|
773
|
+
persistent true
|
774
|
+
path /mnt/pos/oem-cloudinit.log.pos
|
775
|
+
</storage>
|
776
|
+
tag oem-cloudinit
|
777
|
+
</source>
|
778
|
+
|
779
|
+
<filter oem-cloudinit.**>
|
780
|
+
@type kubernetes_sumologic
|
781
|
+
source_category system
|
782
|
+
source_name oem-cloudinit
|
783
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
784
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
785
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
786
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
787
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
788
|
+
</filter>
|
789
|
+
|
790
|
+
<source>
|
791
|
+
@type systemd
|
792
|
+
path /mnt/log/journal
|
793
|
+
filters [{"_SYSTEMD_UNIT": "rkt-gc.service"}]
|
794
|
+
<storage>
|
795
|
+
@type local
|
796
|
+
persistent true
|
797
|
+
path /mnt/pos/rkt-gc.log.pos
|
798
|
+
</storage>
|
799
|
+
tag rkt-gc
|
800
|
+
</source>
|
801
|
+
|
802
|
+
<filter rkt-gc.**>
|
803
|
+
@type kubernetes_sumologic
|
804
|
+
source_category system
|
805
|
+
source_name rkt-gc
|
806
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
807
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
808
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
809
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
810
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
811
|
+
</filter>
|
812
|
+
|
813
|
+
<source>
|
814
|
+
@type systemd
|
815
|
+
path /mnt/log/journal
|
816
|
+
filters [{"_SYSTEMD_UNIT": "rkt-metadata.service"}]
|
817
|
+
<storage>
|
818
|
+
@type local
|
819
|
+
persistent true
|
820
|
+
path /mnt/pos/rkt-metadata.log.pos
|
821
|
+
</storage>
|
822
|
+
tag rkt-metadata
|
823
|
+
</source>
|
824
|
+
|
825
|
+
<filter rkt-metadata.**>
|
826
|
+
@type kubernetes_sumologic
|
827
|
+
source_category system
|
828
|
+
source_name rkt-metadata
|
829
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
830
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
831
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
832
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
833
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
834
|
+
</filter>
|
835
|
+
|
836
|
+
<source>
|
837
|
+
@type systemd
|
838
|
+
path /mnt/log/journal
|
839
|
+
filters [{"_SYSTEMD_UNIT": "rpc-idmapd.service"}]
|
840
|
+
<storage>
|
841
|
+
@type local
|
842
|
+
persistent true
|
843
|
+
path /mnt/pos/rpc-idmapd.log.pos
|
844
|
+
</storage>
|
845
|
+
tag rpc-idmapd
|
846
|
+
</source>
|
847
|
+
|
848
|
+
<filter rpc-idmapd.**>
|
849
|
+
@type kubernetes_sumologic
|
850
|
+
source_category system
|
851
|
+
source_name rpc-idmapd
|
852
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
853
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
854
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
855
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
856
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
857
|
+
</filter>
|
858
|
+
|
859
|
+
<source>
|
860
|
+
@type systemd
|
861
|
+
path /mnt/log/journal
|
862
|
+
filters [{"_SYSTEMD_UNIT": "rpc-mountd.service"}]
|
863
|
+
<storage>
|
864
|
+
@type local
|
865
|
+
persistent true
|
866
|
+
path /mnt/pos/rpc-mountd.log.pos
|
867
|
+
</storage>
|
868
|
+
tag rpc-mountd
|
869
|
+
</source>
|
870
|
+
|
871
|
+
<filter rpc-mountd.**>
|
872
|
+
@type kubernetes_sumologic
|
873
|
+
source_category system
|
874
|
+
source_name rpc-mountd
|
875
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
876
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
877
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
878
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
879
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
880
|
+
</filter>
|
881
|
+
|
882
|
+
<source>
|
883
|
+
@type systemd
|
884
|
+
path /mnt/log/journal
|
885
|
+
filters [{"_SYSTEMD_UNIT": "rpc-statd.service"}]
|
886
|
+
<storage>
|
887
|
+
@type local
|
888
|
+
persistent true
|
889
|
+
path /mnt/pos/rpc-statd.log.pos
|
890
|
+
</storage>
|
891
|
+
tag rpc-statd
|
892
|
+
</source>
|
893
|
+
|
894
|
+
<filter rpc-statd.**>
|
895
|
+
@type kubernetes_sumologic
|
896
|
+
source_category system
|
897
|
+
source_name rpc-statd
|
898
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
899
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
900
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
901
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
902
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
903
|
+
</filter>
|
904
|
+
|
905
|
+
<source>
|
906
|
+
@type systemd
|
907
|
+
path /mnt/log/journal
|
908
|
+
filters [{"_SYSTEMD_UNIT": "rpcbind.service"}]
|
909
|
+
<storage>
|
910
|
+
@type local
|
911
|
+
persistent true
|
912
|
+
path /mnt/pos/rpcbind.log.pos
|
913
|
+
</storage>
|
914
|
+
tag rpcbind
|
915
|
+
</source>
|
916
|
+
|
917
|
+
<filter rpcbind.**>
|
918
|
+
@type kubernetes_sumologic
|
919
|
+
source_category system
|
920
|
+
source_name rpcbind
|
921
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
922
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
923
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
924
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
925
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
926
|
+
</filter>
|
927
|
+
|
928
|
+
<source>
|
929
|
+
@type systemd
|
930
|
+
path /mnt/log/journal
|
931
|
+
filters [{"_SYSTEMD_UNIT": "set-aws-environment.service"}]
|
932
|
+
<storage>
|
933
|
+
@type local
|
934
|
+
persistent true
|
935
|
+
path /mnt/pos/set-aws-environment.log.pos
|
936
|
+
</storage>
|
937
|
+
tag set-aws-environment
|
938
|
+
</source>
|
939
|
+
|
940
|
+
<filter set-aws-environment.**>
|
941
|
+
@type kubernetes_sumologic
|
942
|
+
source_category system
|
943
|
+
source_name set-aws-environment
|
944
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
945
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
946
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
947
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
948
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
949
|
+
</filter>
|
950
|
+
|
951
|
+
<source>
|
952
|
+
@type systemd
|
953
|
+
path /mnt/log/journal
|
954
|
+
filters [{"_SYSTEMD_UNIT": "system-cloudinit.service"}]
|
955
|
+
<storage>
|
956
|
+
@type local
|
957
|
+
persistent true
|
958
|
+
path /mnt/pos/system-cloudinit.log.pos
|
959
|
+
</storage>
|
960
|
+
tag system-cloudinit
|
961
|
+
</source>
|
962
|
+
|
963
|
+
<filter system-cloudinit.**>
|
964
|
+
@type kubernetes_sumologic
|
965
|
+
source_category system
|
966
|
+
source_name system-cloudinit
|
967
|
+
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
|
968
|
+
exclude_facility_regex "#{ENV['EXCLUDE_FACILITY_REGEX']}"
|
969
|
+
exclude_host_regex "#{ENV['EXCLUDE_HOST_REGEX']}"
|
970
|
+
exclude_priority_regex "#{ENV['EXCLUDE_PRIORITY_REGEX']}"
|
971
|
+
exclude_unit_regex "#{ENV['EXCLUDE_UNIT_REGEX']}"
|
972
|
+
</filter>
|
973
|
+
|
974
|
+
<source>
|
975
|
+
@type systemd
|
976
|
+
path /mnt/log/journal
|
977
|
+
filters [{"_SYSTEMD_UNIT": "update-ca-certificates.service"}]
|
978
|
+
<storage>
|
979
|
+
@type local
|
980
|
+
persistent true
|
981
|
+
path /mnt/pos/update-ca-certificates.log.pos
|
982
|
+
</storage>
|
983
|
+
tag update-ca-certificates
|
984
|
+
</source>
|
985
|
+
|
986
|
+
<filter update-ca-certificates.**>
|
987
|
+
@type kubernetes_sumologic
|
988
|
+
source_category system
|
989
|
+
source_name update-ca-certificates
|
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": "user-cloudinit.service"}]
|
1001
|
+
<storage>
|
1002
|
+
@type local
|
1003
|
+
persistent true
|
1004
|
+
path /mnt/pos/user-cloudinit.log.pos
|
1005
|
+
</storage>
|
1006
|
+
tag user-cloudinit
|
1007
|
+
</source>
|
1008
|
+
|
1009
|
+
<filter user-cloudinit.**>
|
1010
|
+
@type kubernetes_sumologic
|
1011
|
+
source_category system
|
1012
|
+
source_name user-cloudinit
|
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": "var-lib-etcd2.service"}]
|
1024
|
+
<storage>
|
1025
|
+
@type local
|
1026
|
+
persistent true
|
1027
|
+
path /mnt/pos/var-lib-etcd2.log.pos
|
1028
|
+
</storage>
|
1029
|
+
tag var-lib-etcd2
|
1030
|
+
</source>
|
1031
|
+
|
1032
|
+
<filter var-lib-etcd2.**>
|
1033
|
+
@type kubernetes_sumologic
|
1034
|
+
source_category system
|
1035
|
+
source_name var-lib-etcd2
|
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": "ntp.service"}]
|
1047
|
+
<storage>
|
1048
|
+
@type local
|
1049
|
+
persistent true
|
1050
|
+
path /mnt/pos/ntp.log.pos
|
1051
|
+
</storage>
|
1052
|
+
tag ntp
|
1053
|
+
</source>
|
1054
|
+
|
1055
|
+
<filter ntp.**>
|
1056
|
+
@type kubernetes_sumologic
|
1057
|
+
source_category system
|
1058
|
+
source_name ntp
|
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": "systemd-timesyncd.service"}]
|
1070
|
+
<storage>
|
1071
|
+
@type local
|
1072
|
+
persistent true
|
1073
|
+
path /mnt/pos/systemd-timesyncd.log.pos
|
1074
|
+
</storage>
|
1075
|
+
tag systemd-timesyncd
|
1076
|
+
</source>
|
1077
|
+
|
1078
|
+
<filter systemd-timesyncd.**>
|
1079
|
+
@type kubernetes_sumologic
|
1080
|
+
source_category system
|
1081
|
+
source_name systemd-timesyncd
|
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
|
+
|