Splunk Cloud Platform

HTTP Event Collector Test Not Working

joydeepm
New Member

Hi,

 

I am new in Splunk. I have created a Cloud trial version and exploring the HTTP Event Collector , but unable to test using curl or postman after setting up the Event collector token

Request looks like following from windows command prompt:

curl -k http://prd-p-xwh8d.splunkcloud.com:8088/services/collector -H "Authorization:Splunk mytoken" -d "{\"sourcetype\": \"_json\",\"event\":\"hello world!\"}"

Response: curl: (56) Recv failure: Connection was reset

From Postman:

Request URI: http://prd-p-xwh8d.splunkcloud.com:8088/services/collector

HTTP Method: POST

Request payload: {"sourcetype": "_json","index":"main", "event":{"name":"hello world!"}}

Authorization:Splunk mytoken

Body: raw

Response: Could not get any response

I have no clue why it is failing. Any lead will be very helpful.

 

Thanks, Joydeep

 

 

Labels (1)
Tags (1)
0 Karma

Roy_9
Motivator

@joydeepm Try using the below url

 

https://http-inputs-prd-p-xwh8d.splunkcloud.com:8088/services/collector/event

You can also give it a shot using port 443

0 Karma

joydeepm
New Member

Just to add, I am not getting any Global Setting option to enable the token in Cloud version.

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...