From 4357b92748a1e6e9d7a631d26dd1b74e46b84c9b Mon Sep 17 00:00:00 2001 From: Attila Szakacs Date: Mon, 11 Dec 2023 13:06:38 +0100 Subject: [PATCH 1/2] collector: add set rewrites configurability Signed-off-by: Attila Szakacs --- charts/axosyslog-collector/templates/config.yaml | 7 +++++++ charts/axosyslog-collector/values.yaml | 5 +++++ 2 files changed, 12 insertions(+) diff --git a/charts/axosyslog-collector/templates/config.yaml b/charts/axosyslog-collector/templates/config.yaml index 7f1c762b1c..70a7368083 100644 --- a/charts/axosyslog-collector/templates/config.yaml +++ b/charts/axosyslog-collector/templates/config.yaml @@ -43,6 +43,13 @@ data: opentelemetry(); }; {{- end }} +{{- with .Values.config.rewrites.set }} + rewrite { +{{- range $k, $v := . }} + set({{ $v | quote }} value({{ $k | quote }})); +{{- end }} + }; +{{- end }} {{- range .Values.config.destinations.file }} destination { file( diff --git a/charts/axosyslog-collector/values.yaml b/charts/axosyslog-collector/values.yaml index ebd2a378da..8d983b6e89 100644 --- a/charts/axosyslog-collector/values.yaml +++ b/charts/axosyslog-collector/values.yaml @@ -54,6 +54,11 @@ config: parsers: opentelemetry: enabled: false + rewrites: + set: {} +# E.g.: +# foo: "${foovalue}" +# bar: "${barvalue}" destinations: file: [] # E.g.: From a2e1b0f0cf7c6deb1b2619b8b9a7a3b7fd39eb1f Mon Sep 17 00:00:00 2001 From: Attila Szakacs Date: Mon, 11 Dec 2023 13:08:27 +0100 Subject: [PATCH 2/2] collector: bump to version 0.8.0 Signed-off-by: Attila Szakacs --- charts/axosyslog-collector/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/axosyslog-collector/Chart.yaml b/charts/axosyslog-collector/Chart.yaml index ea4f60e02d..9f5f1eef46 100644 --- a/charts/axosyslog-collector/Chart.yaml +++ b/charts/axosyslog-collector/Chart.yaml @@ -2,5 +2,5 @@ apiVersion: v2 name: axosyslog-collector description: AxoSyslog Kubernetes log collector type: application -version: 0.7.0 +version: 0.8.0 appVersion: "4.5.0"