Skip to content

Commit

Permalink
Merge pull request fluent#785 from verrazzano/karak/add_systemdUnit_f…
Browse files Browse the repository at this point in the history
…ilter_based_on_condition

Add options in FluentOperator helm chart to add more systemdFilter in Fluentbit Systemd Input and a condition on systemdFilter to enable/disable
  • Loading branch information
benjaminhuo authored and karan56625 committed Jun 9, 2023
1 parent 36d2425 commit 7d4212e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,15 @@ spec:
dbSync: Normal
stripUnderscores: {{ .Values.fluentbit.input.systemd.stripUnderscores | quote }}
systemdFilter:
{{- if .Values.fluentbit.input.systemd.systemdFilter.enable }}
- _SYSTEMD_UNIT={{ .Values.containerRuntime }}.service
{{- if .Values.fluentbit.input.systemd.includeKubelet }}
- _SYSTEMD_UNIT=kubelet.service
{{- end }}
{{- if .Values.fluentbit.input.systemd.systemdFilter.filters }}
{{- toYaml .Values.fluentbit.input.systemd.systemdFilter.filters | nindent 6 }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}
3 changes: 3 additions & 0 deletions charts/fluent-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ fluentbit:
readFromHead: false
systemd:
enable: true
systemdFilter:
enable: true
filters: []
path: "/var/log/journal"
includeKubelet: true
stripUnderscores: "off"
Expand Down

0 comments on commit 7d4212e

Please sign in to comment.