This repository has been archived by the owner on Feb 5, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 65
/
source.kubernetes.conf
172 lines (148 loc) · 5.21 KB
/
source.kubernetes.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
# Example:
# 2015-12-21 23:17:22,066 [salt.state ][INFO ] Completed state [net.ipv4.ip_forward] at time 23:17:22.066081
<source>
type tail
format /^(?<time>[^ ]* [^ ,]*)[^\[]*\[[^\]]*\]\[(?<severity>[^ \]]*) *\] (?<message>.*)$/
time_format %Y-%m-%d %H:%M:%S
path /mnt/log/salt/minion
pos_file /mnt/pos/ggcp-salt.pos
tag salt
</source>
<filter salt.**>
type kubernetes_sumologic
source_category salt
source_name k8s_salt
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
</filter>
# Example:
# Dec 21 23:17:22 gke-foo-1-1-4b5cbd14-node-4eoj startupscript: Finished running startup script /var/run/google.startup.script
<source>
type tail
format syslog
path /mnt/log/startupscript.log
pos_file /mnt/pos/ggcp-startupscript.log.pos
tag startupscript
</source>
<filter startupscript.**>
type kubernetes_sumologic
source_category startupscript
source_name k8s_startupscript
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
</filter>
# Multi-line parsing is required for all the kube logs because very large log
# statements, such as those that include entire object bodies, get split into
# multiple lines by glog.
# Example:
# 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]
<source>
type tail
format multiline
multiline_flush_interval 5s
format_firstline /^\w\d{4}/
format1 /^(?<severity>\w)(?<time>\d{4} [^\s]*)\s+(?<pid>\d+)\s+(?<source>[^ \]]+)\] (?<message>.*)/
time_format %m%d %H:%M:%S.%N
path /mnt/log/kubelet.log
pos_file /mnt/pos/ggcp-kubelet.log.pos
tag kubelet
</source>
<filter kubelet.**>
type kubernetes_sumologic
source_category kubelet
source_name k8s_kubelet
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
</filter>
# Example:
# I0204 07:00:19.604280 5 handlers.go:131] GET /api/v1/nodes: (1.624207ms) 200 [[kube-controller-manager/v1.1.3 (linux/amd64) kubernetes/6a81b50] 127.0.0.1:38266]
<source>
type tail
format multiline
multiline_flush_interval 5s
format_firstline /^\w\d{4}/
format1 /^(?<severity>\w)(?<time>\d{4} [^\s]*)\s+(?<pid>\d+)\s+(?<source>[^ \]]+)\] (?<message>.*)/
time_format %m%d %H:%M:%S.%N
path /mnt/log/kube-apiserver.log
pos_file /mnt/pos/ggcp-kube-apiserver.log.pos
tag kube-apiserver
</source>
<filter kube-apiserver.**>
type kubernetes_sumologic
source_category kube-apiserver
source_name k8s_kube-apiserver
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
</filter>
# Example:
# I0204 06:55:31.872680 5 servicecontroller.go:277] LB already exists and doesn't need update for service kube-system/kube-ui
<source>
type tail
format multiline
multiline_flush_interval 5s
format_firstline /^\w\d{4}/
format1 /^(?<severity>\w)(?<time>\d{4} [^\s]*)\s+(?<pid>\d+)\s+(?<source>[^ \]]+)\] (?<message>.*)/
time_format %m%d %H:%M:%S.%N
path /mnt/log/kube-controller-manager.log
pos_file /mnt/pos/ggcp-kube-controller-manager.log.pos
tag kube-controller-manager
</source>
<filter kube-controller-manager.**>
type kubernetes_sumologic
source_category kube-controller-manager
source_name k8s_kube-controller-manager
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
</filter>
# Example:
# W0204 06:49:18.239674 7 reflector.go:245] pkg/scheduler/factory/factory.go:193: watch of *api.Service ended with: 401: The event in requested index is outdated and cleared (the requested history has been cleared [2578313/2577886]) [2579312]
<source>
type tail
format multiline
multiline_flush_interval 5s
format_firstline /^\w\d{4}/
format1 /^(?<severity>\w)(?<time>\d{4} [^\s]*)\s+(?<pid>\d+)\s+(?<source>[^ \]]+)\] (?<message>.*)/
time_format %m%d %H:%M:%S.%N
path /mnt/log/kube-scheduler.log
pos_file /mnt/pos/ggcp-kube-scheduler.log.pos
tag kube-scheduler
</source>
<filter kube-scheduler.**>
type kubernetes_sumologic
source_category kube-scheduler
source_name k8s_kube-scheduler
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
</filter>
# Example:
# I0603 15:31:05.793605 6 cluster_manager.go:230] Reading config from path /etc/gce.conf
<source>
type tail
format multiline
multiline_flush_interval 5s
format_firstline /^\w\d{4}/
format1 /^(?<severity>\w)(?<time>\d{4} [^\s]*)\s+(?<pid>\d+)\s+(?<source>[^ \]]+)\] (?<message>.*)/
time_format %m%d %H:%M:%S.%N
path /mnt/log/glbc.log
pos_file /mnt/pos/ggcp-glbc.log.pos
tag glbc
</source>
<filter glbc.**>
type kubernetes_sumologic
source_category glbc
source_name k8s_glbc
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
</filter>
# Example:
# I0603 15:31:05.793605 6 cluster_manager.go:230] Reading config from path /etc/gce.conf
<source>
type tail
format multiline
multiline_flush_interval 5s
format_firstline /^\w\d{4}/
format1 /^(?<severity>\w)(?<time>\d{4} [^\s]*)\s+(?<pid>\d+)\s+(?<source>[^ \]]+)\] (?<message>.*)/
time_format %m%d %H:%M:%S.%N
path /mnt/log/cluster-autoscaler.log
pos_file /mnt/pos/ggcp-cluster-autoscaler.log.pos
tag cluster-autoscaler
</source>
<filter cluster-autoscaler.**>
type kubernetes_sumologic
source_category cluster-autoscaler
source_name k8s_cluster-autoscaler
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
</filter>