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!

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...

Updated Data Management and AWS GDI Inventory in Splunk Observability

We’re making some changes to Data Management and Infrastructure Inventory for AWS. The Data Management page, ...

Introducing the Splunk Community Dashboard Challenge!

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