Skip to content
This repository was archived by the owner on Apr 24, 2023. It is now read-only.

Commit cde4e5e

Browse files
egernstEric Ernst
and
Eric Ernst
authored
Add note to s/docker/cri if CRI is used (#76)
If containerd or CRIO is used, the cri parser should be utilized. Add the parser, and give a hint to users in the README. Parser is from: https://github.com/fluent/fluent-bit/blob/30b7a030544f56ccabae7a4d698b01c7d0f0b250/conf/parsers.conf#L106-L112 Signed-off-by: Eric Ernst <[email protected]> Co-authored-by: Eric Ernst <[email protected]>
1 parent 88259fe commit cde4e5e

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ The next step is to create a ConfigMap that will be used by our Fluent Bit Daemo
3535
$ kubectl create -f https://raw.githubusercontent.com/fluent/fluent-bit-kubernetes-logging/master/output/elasticsearch/fluent-bit-configmap.yaml
3636
```
3737

38+
If the cluster uses a CRI runtime, like containerd or CRI-O, change the `Parser` described in `input-kubernetes.conf` from docker to cri.
39+
3840
Fluent Bit DaemonSet ready to be used with Elasticsearch on a normal Kubernetes Cluster:
3941

4042
```

output/elasticsearch/fluent-bit-configmap.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,14 @@ data:
9696
Time_Format %Y-%m-%dT%H:%M:%S.%L
9797
Time_Keep On
9898
99+
[PARSER]
100+
# http://rubular.com/r/tjUt3Awgg4
101+
Name cri
102+
Format regex
103+
Regex ^(?<time>[^ ]+) (?<stream>stdout|stderr) (?<logtag>[^ ]*) (?<message>.*)$
104+
Time_Key time
105+
Time_Format %Y-%m-%dT%H:%M:%S.%L%z
106+
99107
[PARSER]
100108
Name syslog
101109
Format regex

0 commit comments

Comments
 (0)