Skip to content

Commit

Permalink
Send k8s events additionally to Splunk HEC endpoint
Browse files Browse the repository at this point in the history
We want k8s events to be available in Splunk Log Observer additionally to IMM
  • Loading branch information
dmitryax committed Sep 24, 2021
1 parent 86fde40 commit 049d6b7
Showing 1 changed file with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,14 @@ exporters:
access_token: ${SPLUNK_ACCESS_TOKEN}
timeout: 10s

{{- if and .Values.logsEnabled .Values.otelK8sClusterReceiver.k8sEventsEnabled }}
splunk_hec:
endpoint: {{ include "splunk-otel-collector.ingestUrl" . }}/v1/log
token: "${SPLUNK_ACCESS_TOKEN}"
sourcetype: kube:events
source: kubelet
{{- end }}

service:
extensions: [health_check]
pipelines:
Expand Down Expand Up @@ -119,6 +127,10 @@ service:
- batch
- resource
- resourcedetection
exporters: [signalfx]
exporters:
- signalfx
{{- if .Values.logsEnabled }}
- splunk_hec
{{- end }}
{{- end }}
{{- end }}

0 comments on commit 049d6b7

Please sign in to comment.