Installation

Change Splunk address in Linux (Rocky 9)

limonkay
New Member

Splunk version: splunk-9.2.0.1
Host: Linux (Rocky 9)

Hello,

I am a new user testing Splunk. I installed the instance on Linux (Rocky 9). From reading various Q&A and docs, I see the location to change the instance address/IP and port is in a file within the installation directory called splunk-launch.conf, though it doesn't look like this file exists anymore.

Please guide me through changing these settings in the latest version of Splunk (9.2.0.1) in Unix CLI. My goal is to change the web interface address from http://alpha:8000 to http://beta:8000.

Thank you.

Labels (2)
0 Karma

kiran_panchavat
Contributor

@limonkay You can see the splunk-launch.conf in the /opt/splunk/etc 

[root@splunk-hf-level-4 etc]# cat splunk-launch.conf
# Version 9.2.0.1

# Modify the following line to suit the location of your Splunk install.
# If unset, Splunk will use the parent of the directory containing the splunk
# CLI executable.
#
# SPLUNK_HOME=/home/build/build-home

# By default, Splunk stores its indexes under SPLUNK_HOME in the
# var/lib/splunk subdirectory. This can be overridden
# here:
#
# SPLUNK_DB=/home/build/build-home/var/lib/splunk
# Splunkd daemon name
SPLUNK_SERVER_NAME=Splunkd

# If SPLUNK_OS_USER is set, then Splunk service will only start
# if the 'splunk [re]start [splunkd]' command is invoked by a user who
# is, or can effectively become via setuid(2), $SPLUNK_OS_USER.
# (This setting can be specified as username or as UID.)
#
# SPLUNK_OS_USER
PYTHONHTTPSVERIFY=0
PYTHONUTF8=1
ENABLE_CPUSHARES=true[root@splunk-hf-level-4 etc]# pwd
/opt/splunk/etc
[root@splunk-hf-level-4 etc]# /opt/splunk/bin/splunk --version
Splunk 9.2.0.1 (build d8ae995bf219)
[root@splunk-hf-level-4 etc]#
0 Karma

kiran_panchavat
Contributor
0 Karma

isoutamo
SplunkTrust
SplunkTrust

Are you adding additional ip / name to your host or just switch ip-name mapping? 

0 Karma
Get Updates on the Splunk Community!

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...