Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

Commit

Permalink
[stable/fluent-bit] Add logfmt support (helm#14174)
Browse files Browse the repository at this point in the history
* [stable/fluent-bit] update README.md

Signed-off-by: Agustin Houlgrave <[email protected]>

* [stable/fluent-bit] update config.yaml

Signed-off-by: Agustin Houlgrave <[email protected]>

* [stable/fluent-bit] update values.yaml

Signed-off-by: Agustin Houlgrave <[email protected]>

* [stable/fluent-bit] bump chart version

Signed-off-by: Agustin Houlgrave <[email protected]>
Signed-off-by: Andrii Nasinnyk <[email protected]>
  • Loading branch information
ahoulgrave authored and anasinnyk committed Jun 29, 2019
1 parent 1794c23 commit e589f45
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 2 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.1.0
version: 2.1.1
appVersion: 1.2.0
description: Fast and Lightweight Log/Data Forwarder for Linux, BSD and OSX
keywords:
Expand Down
1 change: 1 addition & 0 deletions stable/fluent-bit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ The following table lists the configurable parameters of the Fluent-Bit chart an
| `parsers.enabled` | Enable custom parsers | `false` |
| `parsers.regex` | List of regex parsers | `NULL` |
| `parsers.json` | List of json parsers | `NULL` |
| `parsers.logfmt` | List of logfmt parsers | `NULL` |
| **General** |
| `annotations` | Optional deamonset set annotations | `NULL` |
| `podAnnotations` | Optional pod annotations | `NULL` |
Expand Down
16 changes: 16 additions & 0 deletions stable/fluent-bit/templates/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -195,5 +195,21 @@ data:
{{- end }}
{{ end }}
{{- end }}
{{- if .Values.parsers.logfmt }}
{{- range .Values.parsers.logfmt }}
[PARSER]
Name {{ .name }}
Format logfmt
{{- if .timeKey }}
Time_Key {{ .timeKey }}
{{- end }}
{{- if .timeFormat }}
Time_Format {{ .timeFormat }}
{{- end }}
{{- if .extraEntries }}
{{ .extraEntries | indent 8 }}
{{- end }}
{{ end }}
{{- end }}

{{- end -}}
3 changes: 2 additions & 1 deletion stable/fluent-bit/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,10 @@ backend:
parsers:
enabled: false
## List the respective parsers in key: value format per entry
## Regex required fields are name and regex. JSON required field
## Regex required fields are name and regex. JSON and Logfmt required field
## is name.
regex: []
logfmt: []
## json parser config can be defined by providing an extraEntries field.
## The following entry:
## json:
Expand Down

0 comments on commit e589f45

Please sign in to comment.