Skip to content

Commit

Permalink
[stable/fluent-bit] tail input docker mode (helm#22146)
Browse files Browse the repository at this point in the history
Signed-off-by: Or Sela <[email protected]>
  • Loading branch information
osela authored May 31, 2020
1 parent 0764a2b commit 54d4a6d
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 11 deletions.
2 changes: 1 addition & 1 deletion stable/fluent-bit/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: fluent-bit
version: 2.8.15
version: 2.8.16
appVersion: 1.3.7
description: Fast and Lightweight Log/Data Forwarder for Linux, BSD and OSX
keywords:
Expand Down
2 changes: 2 additions & 0 deletions stable/fluent-bit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ The following table lists the configurable parameters of the Fluent-Bit chart an
| `input.tail.parser` | Specify Parser in tail input. | `docker` |
| `input.tail.path` | Specify log file(s) through the use of common wildcards. | `/var/log/containers/*.log` |
| `input.tail.ignore_older` | Ignores files that have been last modified before this time in seconds. Supports m,h,d (minutes, hours,days) syntax. | `` |
| `input.tail.dockerMode` | Recombine split Docker log lines before passing them to the parser. | `false` |
| `input.tail.dockerModeFlush` | Wait period time in seconds to flush queued unfinished split lines in docker mode. | `4` |
| `input.systemd.enabled` | [Enable systemd input](https://docs.fluentbit.io/manual/input/systemd) | `false` |
| `input.systemd.filters.systemdUnit` | Please see https://docs.fluentbit.io/manual/input/systemd | `[docker.service, kubelet.service`, `node-problem-detector.service]` |
| `input.systemd.maxEntries` | Please see https://docs.fluentbit.io/manual/input/systemd | `1000` |
Expand Down
24 changes: 14 additions & 10 deletions stable/fluent-bit/templates/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,23 @@ data:

fluent-bit-input.conf: |
[INPUT]
Name tail
Path {{ .Values.input.tail.path }}
Parser {{ .Values.input.tail.parser }}
Tag {{ .Values.filter.kubeTag }}.*
Refresh_Interval 5
Mem_Buf_Limit {{ .Values.input.tail.memBufLimit }}
Skip_Long_Lines On
Name tail
Path {{ .Values.input.tail.path }}
Parser {{ .Values.input.tail.parser }}
Tag {{ .Values.filter.kubeTag }}.*
Refresh_Interval 5
Mem_Buf_Limit {{ .Values.input.tail.memBufLimit }}
Skip_Long_Lines On
{{- if .Values.input.tail.ignore_older }}
Ignore_Older {{ .Values.input.tail.ignore_older }}
Ignore_Older {{ .Values.input.tail.ignore_older }}
{{- end }}
{{- if .Values.trackOffsets }}
DB /tail-db/tail-containers-state.db
DB.Sync Normal
DB /tail-db/tail-containers-state.db
DB.Sync Normal
{{- end }}
{{- if .Values.input.tail.dockerMode }}
Docker_Mode On
Docker_Mode_Flush {{ .Values.input.tail.dockerModeFlush }}
{{- end }}
{{- if .Values.input.systemd.enabled }}
[INPUT]
Expand Down
2 changes: 2 additions & 0 deletions stable/fluent-bit/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,8 @@ input:
parser: docker
path: /var/log/containers/*.log
ignore_older: ""
dockerMode: false
dockerModeFlush: 4
systemd:
enabled: false
filters:
Expand Down

0 comments on commit 54d4a6d

Please sign in to comment.