반응형
Fluent Bit by default assumes that logs are formatted by the Docker interface standard.
However, when using CRI you can run into issues with malformed JSON if you do not modify the parser used.
Fluent Bit includes a CRI log parser that can be used instead.
An example of the parser is seen below:
# CRI Parser [PARSER] # http://rubular.com/r/tjUt3Awgg4 Name cri Format regex Regex ^(?<time>[^ ]+) (?<stream>stdout|stderr) (?<logtag>[^ ]*) (?<message>.*)$ Time_Key time Time_Format %Y-%m-%dT%H:%M:%S.%L%z |
To use this parser change the Input section for your configuration from docker to cri
[INPUT] Name tail Path /var/log/containers/*.log Parser cri Tag kube.* Mem_Buf_Limit 5MB Skip_Long_Lines On |
반응형
'IT Knowledge > 모니터링' 카테고리의 다른 글
install Fluent Bit on Kubernetes (0) | 2023.09.06 |
---|---|
Fluent Bit 이란(with fluentd) (3) | 2023.09.04 |
Prometheus on Kubernetes Cluster 설치 (0) | 2023.09.04 |
CPU Core별 사용량 (4) | 2023.08.17 |
제니퍼(Jennifer) 에이전트 설치 - Resin(3) (0) | 2021.01.20 |
댓글