Skip to content

Commit

Permalink
ensure clusterReceiver hec exporter sends logs if enabled (#471)
Browse files Browse the repository at this point in the history
  • Loading branch information
rmfitzpatrick authored Jun 23, 2022
1 parent 92fae6c commit dbf0f56
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand Down

0 comments on commit dbf0f56

Please sign in to comment.