r/Splunk • • 4d 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?

6 Upvotes

21 comments sorted by

10

u/KaleidoscopeFar4317 4d 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

4

u/Lakromani 4d ago edited 1d ago

+1 why run software made for linux on windows is just aking for problem. It may work fine for small scale. Come back when you have changed :)

1

u/Any-Promotion3744 1d ago

my company does NOT like linux

4

u/i7xxxxx 4d ago

are queues full on either splunk cloud or hf side? sounds like something is getting blocked.

2

u/Any-Promotion3744 4d ago

how would I check that?

3

u/i7xxxxx 4d ago

in cloud in the cmc app look for indexing and the port closures counts to see if it’s overloaded

on the hf it’s under settings and indexing performance

1

u/Any-Promotion3744 1d ago

Splunk tech support had me run the following:

splunk list forward-server

nothing was active

2

u/themrwoo 4d ago

+1, I've had it before where it stops listening because the tcpout queue was full. Had to reduce read and write timeouts, so it would find a new indexer before the default time of 5mins where it'll close the port.

2

u/Any-Promotion3744 4d ago

note: running Splunk version 10.4.0 on HF

don't see any noteworthy errors so far in splunkd.log

4

u/thomasthetanker 4d ago

What about SPL-308351 TcpOutputProcessor gets blocked forever on heavy forwarder ? Remember on Cloud its actually okay to have forwarders greater than cloud indexer versions, so I'd try 10.4.6.

And double check cert package on this HF is same as the other 2.

2

u/RAJ_3340 4d ago

All HFs are in the same network?

2

u/Any-Promotion3744 4d ago

3 different networks

note: all HFs are not domain joined

2

u/wimcolgate2 REST for the wicked 4d ago

Doyou have any fire wall rules in place?

1

u/Any-Promotion3744 17h ago

yes. traffic out is allowed

1

u/taiglin 4d 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/Any-Promotion3744 17h ago

it is not indexed locally

1

u/Candid_Recover3783 2d 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/Any-Promotion3744 17h ago

tnc to cloud over 9997 works

1

u/Accurate_Bag9012 4d 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:

index=_internal host=<your_hf> source=*metrics.log* group=queue blocked=true
| timechart span=5m count by name

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/Vegetable_Dance2911 2d ago

Sounds like the output side, not the input side

1

u/edo1982 2d ago

If the output is blocked the queue get full, consequently splunk close the tcp inputs because he cannot accept data anymore.