Deployment Architecture

Running splunk web on two ports simultaneously

anoopambli
Communicator

Is there anyway we can run splunk web on two different ports on a server? as an example we have splunk running on a server at 8000 port and web is accessible at http://:8000. One of my customer says the splunk page was also accessible in 3000 port earlier.

How do we do that? what is the configuration for it?

0 Karma

bmacias84
Champion

Ok, Splunk doesn't let you bind multiple port for the webserver (Not that I know of). You have a few options, use some solution proxy, Load Balancer, or iptables to forward the request. While there are probably more options I go with iptables. Here is a example using iptables.


#Linux
iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 3000 -j REDIRECT --to-port 8000

Additional Reading:

Hope this help or gets you started. Dont forget to vote up and accept answers that help.

Cheers,

0 Karma

anoopambli
Communicator

nix installation.

0 Karma

bmacias84
Champion

Yes, it is possible. Are you running nix or win installation?

0 Karma
Get Updates on the Splunk Community!

Fueling your curiosity with new Splunk ILT and eLearning courses

At Splunk Education, we’re driven by curiosity—both ours and yours! That’s why we’re committed to delivering ...

Splunk AI Assistant for SPL 1.1.0 | Now Personalized to Your Environment for Greater ...

Splunk AI Assistant for SPL has transformed how users interact with Splunk, making it easier than ever to ...

Unleash Unified Security and Observability with Splunk Cloud Platform

     Now Available on Microsoft AzureOn Demand Now Step boldly into the AI revolution with enhanced security ...