-
Notifications
You must be signed in to change notification settings - Fork 148
/
config.go
58 lines (52 loc) · 1.03 KB
/
config.go
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
package config
const (
FluentdBaselineConf = `
<system>
log_level debug
</system>
<source>
@type tail
@id container-input
path /var/log/pods/**/*
exclude_path ["/var/log/pods/**/*/*.gz","/var/log/pods/**/*/*.tmp"]
pos_file "/var/lib/fluentd/pos/containers-app"
refresh_interval 5
rotate_wait 5
tag kubernetes.*
read_from_head "true"
<parse>
@type regexp
expression /^(?<@timestamp>[^\s]+) (?<stream>stdout|stderr) (?<logtag>[F|P]) (?<message>.*)$/
time_format '%Y-%m-%dT%H:%M:%S.%N%:z'
keep_time_key true
</parse>
</source>
<filter kubernetes.**>
@type concat
key message
partial_key logtag
partial_value P
separator ''
</filter>
<match **>
@type forward
heartbeat_type none
keepalive true
<buffer>
flush_mode interval
flush_interval 5s
flush_at_shutdown true
flush_thread_count 2
retry_type exponential_backoff
retry_wait 1s
retry_max_interval 60s
retry_forever true
overflow_action block
</buffer>
<server>
host 0.0.0.0
port 24224
</server>
</match>
`
)