Getting Data In

Telegraf - How to solve this HEC SSL Issue?

pmnathan75
New Member

Hi, I am trying to use Telegraf to send data to Splunk HEC. However not sure how to get past the certificate issue.

The error is

 

 

 

Error writing to outputs.http: Post "https://prd-p-9prd1.splunkcloud.com:8088/services/collector": x509: certificate is not valid for any names, but wanted to match prd-p-9prd1.splunkcloud.com

 

 

 

 

Telegraf Configuration:

 

 

 

[global_tags]
  index="vault_telemetry"
  datacenter = "us-east-1"
  role       = "vault-server"
  cluster    = "vault"
[agent]
  interval = "60s"
  round_interval = true
  metric_batch_size = 1000
  metric_buffer_limit = 10000
  collection_jitter = "0s"
  flush_interval = "10s"
  flush_jitter = "0s"
  precision = ""
  hostname = ""
  omit_hostname = false
[[inputs.statsd]]
  protocol = "udp"
  service_address = ":8125"
  metric_separator = "."
  datadog_extensions = true
[[outputs.http]]
  url = "https://prd-p-9prd1.splunkcloud.com:8088/services/collector"
  data_format = "splunkmetric"
  splunkmetric_hec_routing = true
  [outputs.http.headers]
    Content-Type = "application/json"
    Authorization = "Splunk f76599e2-77a5-xxxx-xxxx-b5af6d97xxxx"
    X-Splunk-Request-Channel = "f76599e2-77a5-xxxx-xxxx-b5af6d97xxxx"

 

 

 

 

Thank you

 

Labels (2)
0 Karma

dev0Guy
New Member

Have you figure out a solution?

0 Karma
Get Updates on the Splunk Community!

Database Performance Sidebar Panel Now on APM Database Query Performance & Service ...

We’ve streamlined the troubleshooting experience for database-related service issues by adding a database ...

IM Landing Page Filter - Now Available

We’ve added the capability for you to filter across the summary details on the main Infrastructure Monitoring ...

Dynamic Links from Alerts to IM Navigators - New in Observability Cloud

Splunk continues to improve the troubleshooting experience in Observability Cloud with this latest enhancement ...