From f47a7937f8bf16145c07631b7223c99ada366eb1 Mon Sep 17 00:00:00 2001 From: Jaganathan P <156800415+jagan2221@users.noreply.github.com> Date: Thu, 12 Sep 2024 11:34:44 +0530 Subject: [PATCH] Update config.yaml --- .../sumologic/conf/logs/collector/otelcol/config.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/deploy/helm/sumologic/conf/logs/collector/otelcol/config.yaml b/deploy/helm/sumologic/conf/logs/collector/otelcol/config.yaml index 372d3fa1e..0b8ef0b5b 100644 --- a/deploy/helm/sumologic/conf/logs/collector/otelcol/config.yaml +++ b/deploy/helm/sumologic/conf/logs/collector/otelcol/config.yaml @@ -26,7 +26,7 @@ processors: send_batch_size: 1000 timeout: 1s -{{- if .Values.sumologic.logs.systemd.enabled }} +{{- if or .Values.sumologic.logs.systemd.enabled .Values.sumologic.logs.kubelet.enabled }} ## copy _SYSTEMD_UNIT, SYSLOG_FACILITY, _HOSTNAME and PRIORITY from body to attributes ## so they can be used by metadata processors same way like for fluentd ## build fluent.tag attribute as `host.{_SYSTEMD_UNIT}` @@ -116,8 +116,10 @@ receivers: - user-cloudinit.service - var-lib-etcd2.service {{- end }} - - kubelet.service {{- end }} +{{- if .Values.sumologic.logs.kubelet.enabled }} + - kubelet.service +{{- end }} {{- end }} service: @@ -138,7 +140,7 @@ service: receivers: - filelog/containers {{- end }} -{{- if .Values.sumologic.logs.systemd.enabled }} +{{ if or .Values.sumologic.logs.systemd.enabled .Values.sumologic.logs.kubelet.enabled}} logs/systemd: exporters: - otlphttp