@@ -305,7 +305,9 @@ exporters:
305305 {{- include " splunk-otel-collector.splunkPlatformMetricsExporter" . | nindent 2 }}
306306 {{- end }}
307307
308- {{- if and (eq (include " splunk-otel-collector.platformLogsEnabled" . ) " true" ) (eq (include " splunk-otel-collector.objectsOrEventsEnabled" . ) " true" ) }}
308+ {{- if and (eq (include " splunk-otel-collector.platformLogsViaOtlpEnabled" . ) " true" ) (eq (include " splunk-otel-collector.objectsOrEventsEnabled" . ) " true" ) }}
309+ {{- include " splunk-otel-collector.otlpPlatformLogsExporter" . | nindent 2 }}
310+ {{- else if and (eq (include " splunk-otel-collector.platformLogsEnabled" . ) " true" ) (eq (include " splunk-otel-collector.objectsOrEventsEnabled" . ) " true" ) }}
309311 {{- include " splunk-otel-collector.splunkPlatformLogsExporter" . | nindent 2 }}
310312 {{- if .Values.clusterReceiver.eventsEnabled }}
311313 sourcetype: kube:events
@@ -439,7 +441,9 @@ service:
439441 {{- end }}
440442 - transform/k8sevents
441443 exporters:
442- {{- if (eq (include " splunk-otel-collector.platformLogsEnabled" . ) " true" ) }}
444+ {{- if (eq (include " splunk-otel-collector.platformLogsViaOtlpEnabled" . ) " true" ) }}
445+ - {{ if eq .Values.splunkPlatform.otlpIngest.protocol " http" }}otlp_http{{- else }}otlp{{- end }}/platform_logs
446+ {{- else if (eq (include " splunk-otel-collector.platformLogsEnabled" . ) " true" ) }}
443447 - splunk_hec/platform_logs
444448 {{- end }}
445449 {{- if eq (include " splunk-otel-collector.splunkO11yEventsEndpointEnabled" . ) " true" }}
@@ -464,7 +468,9 @@ service:
464468 - resource/add_environment
465469 {{- end }}
466470 exporters:
467- {{- if (eq (include " splunk-otel-collector.platformLogsEnabled" . ) " true" ) }}
471+ {{- if (eq (include " splunk-otel-collector.platformLogsViaOtlpEnabled" . ) " true" ) }}
472+ - {{ if eq .Values.splunkPlatform.otlpIngest.protocol " http" }}otlp_http{{- else }}otlp{{- end }}/platform_logs
473+ {{- else if (eq (include " splunk-otel-collector.platformLogsEnabled" . ) " true" ) }}
468474 - splunk_hec/platform_logs
469475 {{- end }}
470476 {{- if (eq (include " splunk-otel-collector.splunkO11yEventsEndpointEnabled" . ) " true" ) }}
0 commit comments