Building for the Splunk Platform

$SPLUNK_HOME not set

nawazns5038
Builder

I observed is that $SPLUNK_HOME is not set on the splunk-launch.conf file on the search heads . Is that a problem ??

0 Karma

ddrillic
Ultra Champion

Looking at a production search head of ours at /opt/splunk/etc/splunk-launch.conf and it starts with -

#   Version 6.2.2

# Modify the following line to suit the location of your Splunk install.
# If unset, Splunk will use the parent of the directory this configuration
# file was found in
#
# SPLUNK_HOME=/home/build/build-home/6.2.2

Which means that $SPLUNK_HOME would be set by the software to /opt/splunk. So, apparently we don't need to do a thing ; -)

It's interesting that when running $ set at the command line, no SPLUNK variables show up.

nawazns5038
Builder

Yes, I can't see the output of echo $SPLUNK_HOME as well.

0 Karma

ddrillic
Ultra Champion

As @MuS said at Where is splunk installed on Linux?

/opt/splunk/bin/splunk envvars

Shows it. I see -

... SPLUNK_HOME=/opt/splunk ; export SPLUNK_HOME  ...
0 Karma

nawazns5038
Builder

Ya, can be seen in through the command

/opt/splunk/bin/splunk envvars

richgalloway
SplunkTrust
SplunkTrust

If $SPLUNK_HOME is not set, the default value will be used. Are you experiencing a problem?

---
If this reply helps you, Karma would be appreciated.
0 Karma

nawazns5038
Builder

no errors for now. Just curious as I don't see the output of echo $SPLUNK_HOME as well.

0 Karma

richgalloway
SplunkTrust
SplunkTrust

You don't see it because it's not set in your environment. It's in Splunk's environment, however.

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

The Splunk Success Framework: Your Guide to Successful Splunk Implementations

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

Splunk Training for All: Meet Aspiring Cybersecurity Analyst, Marc Alicea

Splunk Education believes in the value of training and certification in today’s rapidly-changing data-driven ...

Investigate Security and Threat Detection with VirusTotal and Splunk Integration

As security threats and their complexities surge, security analysts deal with increased challenges and ...