-
Notifications
You must be signed in to change notification settings - Fork 2
/
fluent-bit.conf
106 lines (91 loc) · 2.33 KB
/
fluent-bit.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
[SERVICE]
Parsers_File /var/vc/parsers.conf
Flush 20
Log_Level info
Daemon off
HTTP_Server On
HTTP_Listen 0.0.0.0
HTTP_Port 2020
#[INPUT]
# Name dummy
# Tag dummy.data
# Dummy {"key1": 12345, "key2": "abc", "time": "28/Jul/2006:10:22:04 -0300"}
[INPUT]
Name tail
#Tag kube.*
Tag kube.*
Path /var/vc/logs/*
Parser docker
DB /var/log/flb_kube.db
Skip_Long_Lines Off
Docker_Mode On
Rotate_Wait 10
Refresh_Interval 10
Chunk_Size 32k
Mem_Buf_Limit 1M
#Mem_Buf_Limit 10M
#Ignore_Older 24h
# log lines bigger than 256k will cause monitored file to be removed from the monitored file list
Buffer_Max_Size 256k
#[FILTER]
# Name throttle
# Match *
# Rate 3000
# Window 300
# Interval 1s
# ZAP formated logs
#[FILTER]
# Name parser
# Match kube.test_zap.*
# Key_Name log
# Parser uberzap
# logfmt formated logs
#[FILTER]
# Name parser
# Match kube.test_logfmt.*
# Key_Name log
# Parser logfmt
## enrich with expected content (As it would be processed by kubernetes filter)
#[FILTER]
# Name record_modifier
# Name modify
# Match *
# Record cluster_name re01-int-ves-io
# #Record kubernetes.labels.app obelix
[FILTER]
Name modify
Match *
Add cluster_name Test1ClusterName
[FILTER]
Name parser
Match dummy.*
Key_Name data
Parser dummy_test
[FILTER]
Dummy_Meta On
Name kubernetes
Match kube.*
#Kube_URL https://kubernetes.default.svc.cluster.local:443
#Kube_CA_File /var/vc/ca.crt
#Kube_Token_File /var/vc/some.token
# process log key as json
Merge_Log On
# Merge_Parsers serviceframework-json
Merge_Log_Trim On
# allowed annotations
K8S-Logging.Parser On
K8S-Logging.Exclude Off
#tls.verify Off
#[OUTPUT]
# Name forward
# Match *
# Host docker.for.mac.localhost
# Port 24224
# Time_as_Integer On
[OUTPUT]
Name stdout
Match *
[OUTPUT]
Name file
Match *
Path /output/output.file