Getting Data In

Opentelemetry Splunk Hec Exporter x509: certificate is not valid for any names, but wanted to match <Splunk_Link>

ericaooi
Explorer

Hi,

I am trying to export data into Splunk using splunkhecexporter by Opentelemetry with TLS insecure_skip_verify=false. When I tried to send it into Splunk, it will shows an error message. After that, I tried to add in the TLS certificate inside the configuration, it still shows the same error message.

Following is the configuration I configured in Opentelemetry .yaml

exporters:
logging:
verbosity: detailed

splunk_hec:
token: "SPLUNK HEC TOKEN"
endpoint: "SPLUNK COLLECTOR URL"
tls:
ca_file: /etc/ssl/certs/cert.crt
cert_file: /etc/ssl/certs/<Splunk_cert>.crt
key_file: /etc/ssl/certs/<Splunk_Key>.key

Following is the error message prompted.

2023-07-26T06:12:01.308Z info exporterhelper/queued_retry.go:433 Exporting failed. Will retry the request after interval. {"kind": "exporter", "data_type": "metrics", "name": "splunk_hec", "error": "Post \"https://<SPLUNK_LINK>:<SPLUNK_PORT>/services/collector\": x509: certificate is not valid for any names, but wanted to match <SPLUNK DNS>", "interval": "7.402035261s"}

 

May I know what causes this to happen and how to solve this issue, please?

Thank you.

Labels (1)
Tags (2)
0 Karma

livehybrid
SplunkTrust
SplunkTrust

In /etc/ssl/certs/cert.crt do you have the corresponding CA that signed the certificate presented by the HEC endpoint that you are attempting to connect to?

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Monitoring AI Agents with Splunk Observability Cloud

Let’s say I’m running a travel planning AI app in production. A user asks for three concise hotel options in ...

[Puzzles] Solve, Learn, Repeat: Tiling

This puzzle (first published here) is based on finding groups of tessellated tiles (inspired by floor tiles I ...

SOK it to Me: Top 3 Benefits of Using Splunk Operator on Kubernetes that’ll Make ...

    Thursday, July 9, 2026  |  11:00AM–12:00PM PDT Duration: 1 hour (includes Q&A) Managing can feel like a ...