Skip to content

Commit 3848e04

Browse files
authored
Send k8s events additionally to Splunk HEC endpoint (#202)
We want k8s events to be available in Splunk Log Observer additionally to IMM
1 parent 9b55742 commit 3848e04

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
44

55
## Unreleased
66

7+
### Added
8+
9+
- Send k8s events additionally to Splunk HEC endpoint (#202)
10+
711
## [0.35.1] - 2021-09-23
812

913
### Added

helm-charts/splunk-otel-collector/templates/config/_otel-k8s-cluster-receiver-config.tpl

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,14 @@ exporters:
9292
access_token: ${SPLUNK_ACCESS_TOKEN}
9393
timeout: 10s
9494

95+
{{- if and .Values.logsEnabled .Values.otelK8sClusterReceiver.k8sEventsEnabled }}
96+
splunk_hec:
97+
endpoint: {{ include "splunk-otel-collector.ingestUrl" . }}/v1/log
98+
token: "${SPLUNK_ACCESS_TOKEN}"
99+
sourcetype: kube:events
100+
source: kubelet
101+
{{- end }}
102+
95103
service:
96104
extensions: [health_check]
97105
pipelines:
@@ -119,6 +127,10 @@ service:
119127
- memory_limiter
120128
- batch
121129
- resource
122-
exporters: [signalfx]
130+
exporters:
131+
- signalfx
132+
{{- if .Values.logsEnabled }}
133+
- splunk_hec
134+
{{- end }}
123135
{{- end }}
124136
{{- end }}

0 commit comments

Comments
 (0)