Skip to content

Commit

Permalink
changes after review - if statement to import k8sAttributesProcessor…
Browse files Browse the repository at this point in the history
… all logs pipelines
  • Loading branch information
pszkamruk-splunk committed Nov 25, 2024
1 parent 7345d03 commit 424d75a
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,11 @@ processors:
- set(resource.attributes["com.splunk.sourcetype"], Concat(["kube:object:", attributes["k8s.resource.name"]], ""))
{{- end }}

{{- if and $clusterReceiver.eventsEnabled (eq (include "splunk-otel-collector.logsEnabled" .) "true") }}
{{- if or
(and $clusterReceiver.eventsEnabled (eq (include "splunk-otel-collector.logsEnabled" .) "true"))
(and (eq (include "splunk-otel-collector.objectsEnabled" .) "true") (eq (include "splunk-otel-collector.logsEnabled" .) "true"))
(eq (include "splunk-otel-collector.o11yInfraMonEventsEnabled" .) "true")
}}
{{- include "splunk-otel-collector.k8sClusterReceiverAttributesProcessor" . | nindent 2 }}
{{- end }}

Expand Down

0 comments on commit 424d75a

Please sign in to comment.