Deployment Architecture

disableDefaultPort = true not working.

jevenson
Path Finder

On one of my universal forwarders I've got an issue where it seems to be ignoring the disabledefaultport setting. I have the following in my server.conf config file:

[httpServer]
disableDefaultPort = true

Despite that setting disabling the port, it is still listening on port 8089. I need to disable this due to vulnerability scans, but for whatever reason it just isn't working.

0 Karma
1 Solution

kpdonahoe31768
Explorer

To be more specific, create /opt/splunkforwarder/etc/system/local/web.conf and add:
[settings]
mgmtHostPort = 127.0.0.1:6060

Then, in /opt/splunkforwarder/etc/system/local/server.conf add:
[httpServer]
disableDefaultPort = true

Then restart the forwarder and it should not be listening on any port.

View solution in original post

kpdonahoe31768
Explorer

To be more specific, create /opt/splunkforwarder/etc/system/local/web.conf and add:
[settings]
mgmtHostPort = 127.0.0.1:6060

Then, in /opt/splunkforwarder/etc/system/local/server.conf add:
[httpServer]
disableDefaultPort = true

Then restart the forwarder and it should not be listening on any port.

MuS
SplunkTrust
SplunkTrust

workes only if you set the mgmtHostPort to any other then default one, thanks for the hint!

0 Karma

TobiasBoone
Communicator

Can someone at splunk actually confirm this works and if so update the actual documentation for server.conf? Which is it? Web.conf or Server.conf? Is this additional mgmtHostPort necessary or no? Splunk documentation is very frustrating because when these answers are posted rarely does the actual documentation article get updated.

0 Karma

Lucas_K
Motivator

its in server.conf but under the httpServer stanza

http://docs.splunk.com/Documentation/Splunk/latest/Admin/Serverconf

sever.conf
[httpServer]
disableDefaultPort = true

Confirm with a netstat that your splunkd port is no longer listening ie. netstat -an | grep tcp | grep LISTEN

I ran into this during vulnerability scans also.

0 Karma

jevenson
Path Finder

This worked on one server, but not the other. I ended up just re-installing the forwarder and now it's working as expected.

0 Karma

kpdonahoe31768
Explorer

We've found that if you add a web.conf with an alternate listening port along with the disableDefaultPort directive, it starts up without listening on any port.

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Index This | What travels the world but is also stuck in place?

April 2026 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Discover New Use Cases: Unlock Greater Value from Your Existing Splunk Data

Realizing the full potential of your Splunk investment requires more than just understanding current usage; it ...

Continue Your Journey: Join Session 2 of the Data Management and Federation Bootcamp ...

As data volumes continue to grow and environments become more distributed, managing and optimizing data ...