Splunk Dev

Why am I getting "connection reset by peer" from HEC in Splunk Cloud?

armensuri
New Member

I'm running the curl command

curl -k https://prd-p-aaaaa.splunkcloud.com:8088/services/collector -H "Authorization: Splunk <HECTOKEN>" -d '{"event": Test Message}' -vvv

I get this error

* Trying <IP>:8088...
* Connected to prd-p-aaaaa.splunkcloud.com (<IP>) port 8088 (#0)
* ALPN: offers h2
* ALPN: offers http/1.1
* [CONN-0-0][CF-SSL] (304) (OUT), TLS handshake, Client hello (1):
* Recv failure: Connection reset by peer
* LibreSSL/3.3.6: error:02FFF036:system library:func(4095):Connection reset by peer
* Closing connection 0
curl: (35) Recv failure: Connection reset by peer

 

I tried with

http-<splunkstack>.splunkcloud.com:8088

http-inputs-<splunkstack>.splunkcloud.com:8088

for the above I get
* Could not resolve host: http-prd-p-aaaaa.splunkcloud.com

* Could not resolve host: http-inputs-prd-p-aaaaa.splunkcloud.com

I'm using the trial version of splunk cloud.

 

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 ...

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Wondering How to Build Resiliency in the Cloud?

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