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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...