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 e795244
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
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

### Added

- Send k8s events additionally to Splunk HEC endpoint (#202)

## [0.35.1] - 2021-09-23

### Added
Expand Down
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 e795244

Please sign in to comment.