Splunk Enterprise

HEC failed to connect to port 8088

jip31
Motivator

hi

My Splunk server is reachable from :

http://127.0.0.1:8000/fr-FR/app/launcher/home

I try to send data in my splunk server with the curl command below

curl -H "Authorization: Splunk 1f5de11f-ee8e-48df-b4f1-eb1bbb6f3db0" https://localhost:8088/services/collector/event -d '{"event":"hello world"}'

 But I have the message : curl: (7) Failed to connect to localhost port 8088 after 2629 ms: Couldn't connect to server 

Could you help please?

Labels (1)
Tags (1)
0 Karma

PickleRick
SplunkTrust
SplunkTrust

Ahhh... so it's windows.

Ok, firstly check if your port is open. You can do that with netstat command from cmd or powershell. I don't remember the right switches to list listening ports for windows version though.

Anyway, if the port was closed, you should get a connection rejected error, not a timeout.

0 Karma

jip31
Motivator

It's strange because i have opened the port 8088 correctly in Windows Defender but when i am running the netstat command i can see it opened....

0 Karma

PickleRick
SplunkTrust
SplunkTrust

The message says it all - your curl sent SYN packets but never got any reply.

Which means that even if your port is open, it's probably filtered by your local firewall (since you're connecting to loopback device it can't be anything on external network). Check your iptables/firewalld config and open that port so that you can connect.

Whether the port is open by Splunk is another question and you'll see as soon as you "poke a hole" in your firewall.

0 Karma

jip31
Motivator

I have opened the port 8088 in Windows Defender but the result is the same 

Is anybody have an idea?

0 Karma
Get Updates on the Splunk Community!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...