Getting Data In

curl: (6) Could not resolve host: http-inputs-<stack_url>.splunkcloud.com

NZenitram
Explorer

I cannot get auth to work for the HTTP Input in the Splunk trial.

curl -H "Authorization: Splunk <HEC_token>" -k https://http-inputs-<stack_url>.splunkcloud.com:8088/services/collector/event -d '{"sourcetype": "my_sample_data", "event": "http auth ftw!"}'

My Splunk URL in https://<stack_url>.splunkcloud.com

I've scoured the forums and web trying a number of combinations here. The HTTP Input is in the Enabled state on the Splunk console.

Any help is appreciated.

Thank you

 

 

Labels (1)
0 Karma
1 Solution

NZenitram
Explorer

I understand its not an auth issue. The error is very clear that it cannot resolve host. The question pertains to the host/dns entry.

Thank you

View solution in original post

0 Karma

NZenitram
Explorer

I think this endpoint just took some time to deploy. Its working as expected now.

0 Karma

PickleRick
SplunkTrust
SplunkTrust

This is _not_ a problem with authentication.

This means that the host you're trying to run your curl command on cannot resolve the name you've provided as the host for the HEC endpoint. Whether it's that you've provided a wrong name or is it because you have problems with your network setup - that we don't know.

BTW, trial Splunk Cloud instances don't use TLS on HEC inputs as far as I remember.

0 Karma

NZenitram
Explorer

I understand its not an auth issue. The error is very clear that it cannot resolve host. The question pertains to the host/dns entry.

Thank you

0 Karma
Get Updates on the Splunk Community!

Now Available: Cisco Talos Threat Intelligence Integrations for Splunk Security Cloud ...

At .conf24, we shared that we were in the process of integrating Cisco Talos threat intelligence into Splunk ...

Preparing your Splunk Environment for OpenSSL3

The Splunk platform will transition to OpenSSL version 3 in a future release. Actions are required to prepare ...

Easily Improve Agent Saturation with the Splunk Add-on for OpenTelemetry Collector

Agent Saturation What and Whys In application performance monitoring, saturation is defined as the total load ...