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 12, 2024
1 parent e233e15 commit f47a793
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions deploy/helm/sumologic/conf/logs/collector/otelcol/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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}`
Expand Down Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit f47a793

Please sign in to comment.