diff --git a/CHANGELOG.md b/CHANGELOG.md index 4719feb88c..f9e432bc09 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## Unreleased +### Fixed + +- Fix bug where clusterReceiver splunk_hec exporter is enabled but configured not to send o11y logs (#471) + ## [0.53.1] - 2022-06-22 ### Added diff --git a/helm-charts/splunk-otel-collector/templates/config/_otel-k8s-cluster-receiver-config.tpl b/helm-charts/splunk-otel-collector/templates/config/_otel-k8s-cluster-receiver-config.tpl index 662612f02f..bc3be61fb3 100644 --- a/helm-charts/splunk-otel-collector/templates/config/_otel-k8s-cluster-receiver-config.tpl +++ b/helm-charts/splunk-otel-collector/templates/config/_otel-k8s-cluster-receiver-config.tpl @@ -140,13 +140,13 @@ exporters: timeout: 10s {{- end }} - {{- if and (eq (include "splunk-otel-collector.logsEnabled" $) "true") $clusterReceiver.k8sEventsEnabled }} + {{- if and (eq (include "splunk-otel-collector.o11yLogsEnabled" .) "true") $clusterReceiver.k8sEventsEnabled }} splunk_hec/o11y: endpoint: {{ include "splunk-otel-collector.o11yIngestUrl" . }}/v1/log token: "${SPLUNK_OBSERVABILITY_ACCESS_TOKEN}" sourcetype: kube:events source: kubelet - log_data_enabled: {{ .Values.splunkObservability.logsEnabled }} + log_data_enabled: true profiling_data_enabled: false {{- end }}