diff --git a/stable/fluent-bit/Chart.yaml b/stable/fluent-bit/Chart.yaml index d6e560b11e1f..b6764b2e0224 100755 --- a/stable/fluent-bit/Chart.yaml +++ b/stable/fluent-bit/Chart.yaml @@ -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: diff --git a/stable/fluent-bit/README.md b/stable/fluent-bit/README.md index 732207e2671e..7bd9f0ae442b 100644 --- a/stable/fluent-bit/README.md +++ b/stable/fluent-bit/README.md @@ -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` | diff --git a/stable/fluent-bit/templates/config.yaml b/stable/fluent-bit/templates/config.yaml index b4e86a108399..518fd46d079b 100644 --- a/stable/fluent-bit/templates/config.yaml +++ b/stable/fluent-bit/templates/config.yaml @@ -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 -}} diff --git a/stable/fluent-bit/values.yaml b/stable/fluent-bit/values.yaml index 59ad9f47ca2a..2a742116c32a 100644 --- a/stable/fluent-bit/values.yaml +++ b/stable/fluent-bit/values.yaml @@ -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: