r/Splunk • u/Any-Promotion3744 • 3d ago
Splunk Enterprise Issues with Heavy Forwarders
We have 3 HFs receiving data from UFs and sending them to Splunk Cloud.
At this point, 1 of the HFs is working as intended but the other two aren't.
The first issue was that the splunk service needed to be restarted on both HFs so that it would start listening on ports 9997 and 8000.
I re-downloaded the UF cloud app and re-installed it on each HF. After that I did see some data from one of the HFs.
I checked again this morning and no data was coming from one of the HFs at all.
I decided to troubleshoot just one UF to see if I could find an issue. The UF had the spkunk service running. The network firewall showed traffic over 8089 to the deployment server and 9997 to the HF. I used tnc to try to connect to port 9997 on the HF but it failed. I checked the HF and it wasn't listening on port 9997. I checked the inputs.conf file and it had the reference to splunktcp:9997. I restarted the Splunk service again on the HF and it started listening on port 9997. I tried the tnc command again from the UF and it still failed. I checked the Windows firewall on the HF and it allowed port 9997. As a test, I disabled the windows firewall and later re-enabled it and allowed all traffic but tnc still failed over port 9997.
Yes...I know...I should look at log files at this point but any idea why the HF won't let me connect to port 9997?
4
u/i7xxxxx 3d ago
are queues full on either splunk cloud or hf side? sounds like something is getting blocked.
2
u/Any-Promotion3744 3d ago
note: running Splunk version 10.4.0 on HF
don't see any noteworthy errors so far in splunkd.log
2
u/RAJ_3340 3d ago
All HFs are in the same network?
10
u/KaleidoscopeFar4317 3d ago
Stop using windows as a HF. Its terrible (as you can tell). Did you run boot-start so it registers with services.msc? Did you verify that windows trusts the certificate? Have you verified via netstat that there is an attempt to output the logs? Did you check DNS?
There's a ton of basic troubleshooting you can do, vs just asking on reddit
2
u/wimcolgate2 REST for the wicked 3d ago
Doyou have any fire wall rules in place?
1
u/Accurate_Bag9012 3d ago
thomasthetanker's known issue fits, and here's why the port vanishes. When a forwarder's output stays blocked, splunkd closes its own splunktcp listeners on purpose so the UFs back off. That's why a restart brings 9997 back and then it disappears again. On the HF, check splunkd.log for "Stopping all listening ports" (and "Starting all listening ports" when it recovers). Then look at the queues, searching on the HF itself, since its _internal may not be reaching Cloud:
If the output side is blocked, fix that first (10.4.6 for SPL-308351, certs, connectivity to Cloud), and 9997 should stay open. Separately, does tnc to 9997 work from the HF itself against localhost?
1
u/taiglin 3d ago
I’m trying to remember what all is included in the cloud app/pack you download.
Are the HF configured to index locally. If so I’d turn that off. I’d also make sure maxKBps is set to 0. That might be set by the cloud app tho
Trying to think of all small things that might add up cumulatively
1
u/Vegetable_Dance2911 21h ago
Sounds like the output side, not the input side
1
u/Candid_Recover3783 19h ago
If it starts listening after a restart and then quietly drops 9997 again, I'd bet the output to Splunk Cloud is blocked
1
u/edo1982 14h ago
If the output is blocked the queue get full, consequently splunk close the tcp inputs because he cannot accept data anymore.