Filter out log lines not matching list

Signed-off-by: Michel Hollands <michel.hollands@gmail.com>
This commit is contained in:
Michel Hollands
2024-03-26 17:18:00 +00:00
parent a89ba944a3
commit 19763f7310
3 changed files with 24 additions and 6 deletions

View File

@@ -18,10 +18,10 @@
{{- end }}
{{- define "agent.loki_process_targets" -}}
{{- if empty .Values.logs.piiRegexes }}
{{- if and (empty .Values.logs.piiRegexes) (empty .Values.logs.retain) }}
{{- include "agent.loki_write_targets" . }}
{{- else }}
{{- printf "loki.process.PII.receiver" }}
{{- printf "loki.process.filter.receiver" }}
{{- end }}
{{- end }}