Skip to content

Commit

Permalink
Allow for Enable/Disable default input and filter options (#897)
Browse files Browse the repository at this point in the history
* allow to disable the default input and filter options so that user might supply their own.

* bump chart version.

---------

Co-authored-by: Dancy, Chris <[email protected]>
  • Loading branch information
cdancy and Dancy, Chris authored Feb 16, 2023
1 parent 647bec2 commit 513eb32
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions stable/aws-for-fluent-bit/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ data:
Parsers_File /fluent-bit/etc/parser_extra.conf
{{- end }}

{{- if .Values.input.enabled }}
[INPUT]
Name tail
Tag {{ .Values.input.tag }}
Expand All @@ -28,6 +29,7 @@ data:
Mem_Buf_Limit {{ .Values.input.memBufLimit }}
Skip_Long_Lines {{ .Values.input.skipLongLines }}
Refresh_Interval {{ .Values.input.refreshInterval }}
{{- end }}
{{- if .Values.input.extraInputs }}
{{ .Values.input.extraInputs | indent 8 }}
{{- end }}
Expand All @@ -36,6 +38,7 @@ data:
{{ .Values.additionalInputs | indent 4 }}
{{- end }}

{{- if .Values.filter.enabled }}
[FILTER]
Name kubernetes
Match {{ .Values.filter.match }}
Expand All @@ -48,6 +51,8 @@ data:
K8S-Logging.Parser {{ .Values.filter.k8sLoggingParser }}
K8S-Logging.Exclude {{ .Values.filter.k8sLoggingExclude }}
Buffer_Size {{ .Values.filter.bufferSize }}
{{- end }}

{{- if .Values.filter.extraFilters }}
{{ .Values.filter.extraFilters | indent 8 }}
{{- end }}
Expand Down
2 changes: 2 additions & 0 deletions stable/aws-for-fluent-bit/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ service:
# Format logfmt

input:
enabled: true
tag: "kube.*"
path: "/var/log/containers/*.log"
db: "/var/log/flb_kube.db"
Expand All @@ -49,6 +50,7 @@ input:
# DB winlog.sqlite

filter:
enabled: true
match: "kube.*"
kubeURL: "https://kubernetes.default.svc.cluster.local:443"
mergeLog: "On"
Expand Down

0 comments on commit 513eb32

Please sign in to comment.