Monitoring Splunk

Splunk "receiver" listening on 9997, but only on localhost?

mikeforbes
Explorer

I've enabled the receiver option on my splunk (free) install - and running a splunk universal forwarder on another host..

But it seems the splunk install only listens on localhost?

tcp 0 0 127.0.0.1:9997 0.0.0.0:* LISTEN

Any idea where I can change this, or what might be wrong?

Thanks!

Tags (3)
1 Solution

mikeforbes
Explorer

Yeah, think I figured this out myself.

if

SPLUNK_BINDIP=127.0.0.1

is set in /opt/splunk/etc/splunk-launch.conf (linux example)

Then it seems all the other listen functions are set to the same localhost.

I've undone this feature and started to firewall off the management port etc.

Happy days.

View solution in original post

mikeforbes
Explorer

Yeah, think I figured this out myself.

if

SPLUNK_BINDIP=127.0.0.1

is set in /opt/splunk/etc/splunk-launch.conf (linux example)

Then it seems all the other listen functions are set to the same localhost.

I've undone this feature and started to firewall off the management port etc.

Happy days.

mikeforbes
Explorer

Yep, as you can see from the paste, (straight from netstat on the machine) - It's not even trying to listen on all interfaces, just 127.0.0.1

0 Karma

sideview
SplunkTrust
SplunkTrust

Are you sure there isn't a firewall in this picture somewhere? You've probably eliminated this long ago but this question and solution does crop up a fair bit so I thought I'd ask.

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!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...