Skip to content

Commit

Permalink
Update config.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
jagan2221 committed Sep 13, 2024
1 parent 02dcaa6 commit 961f23c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions deploy/helm/sumologic/conf/logs/otelcol/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ exporters:

{{- end }}

{{ if or .Values.sumologic.logs.systemd.enabled .Values.sumologic.logs.kubelet.enabled}}
{{ if or .Values.sumologic.logs.systemd.enabled .Values.sumologic.logs.kubelet.enabled }}
sumologic/systemd:
endpoint: ${SUMO_ENDPOINT_DEFAULT_LOGS_SOURCE}
log_format: json
Expand Down Expand Up @@ -108,7 +108,7 @@ extensions:
pprof: {}

processors:
{{ if or .Values.sumologic.logs.systemd.enabled .Values.sumologic.logs.kubelet.enabled}}
{{ if or .Values.sumologic.logs.systemd.enabled .Values.sumologic.logs.kubelet.enabled }}
attributes/extract_systemd_source_fields:
actions:
- action: extract
Expand Down Expand Up @@ -140,7 +140,7 @@ processors:
match_type: strict
record_attributes:
- key: _SYSTEMD_UNIT
value: kubelet.service
value: snap.microk8s.daemon-kubelite.service
{{ end }}

{{ if .Values.sumologic.logs.kubelet.enabled }}
Expand Down Expand Up @@ -233,7 +233,7 @@ processors:
value: .+
{{ end }}

{{ if or .Values.sumologic.logs.systemd.enabled .Values.sumologic.logs.kubelet.enabled}}
{{ if or .Values.sumologic.logs.systemd.enabled .Values.sumologic.logs.kubelet.enabled }}
filter/include_fluent_tag_host:
logs:
include:
Expand All @@ -250,7 +250,7 @@ processors:
match_type: strict
record_attributes:
- key: _SYSTEMD_UNIT
value: kubelet.service
value: snap.microk8s.daemon-kubelite.service
{{ end }}

{{ if .Values.sumologic.logs.systemd.enabled }}
Expand All @@ -273,7 +273,7 @@ processors:
- _collector
{{ end }}

{{ if or .Values.sumologic.logs.systemd.enabled .Values.sumologic.logs.kubelet.enabled}}
{{ if or .Values.sumologic.logs.systemd.enabled .Values.sumologic.logs.kubelet.enabled }}
groupbyattrs/systemd:
keys:
- _sourceName
Expand Down Expand Up @@ -509,7 +509,7 @@ receivers:
otlp:
protocols:
http:
endpoint: 0.0.0.0:4318
endpoint: ${env:MY_POD_IP}:4318
{{ end }}

service:
Expand Down

0 comments on commit 961f23c

Please sign in to comment.