top of page

Installing Splunk

1 day ago
3 min read

November 2026 update: this tutorial was written for version 8.0.6, from 2020. For a new installation, download the current version from the Splunk website and check the release notes before following the steps.


In this post, we will go over the Splunk Enterprise installation procedure.

Essentially, there are two ways to run Splunk Enterprise: standalone or as a cluster. Both use the same installer, since Splunk bundles all of its roles in a single installer. To build a cluster, we enable or disable specific roles on each tier of the cluster. The same procedure applies to installing Splunk on each machine of a cluster.


At the time of writing, Splunk is available for Windows, Linux and Mac OS. It can be installed on a server or on a desktop, so even a Windows laptop lets you run most of the tests posted here. On Windows or Mac OS the installation is the same and very simple (next > next > finish), so here we will only cover the installation on Linux.


The first step is to download the application. You will find all the packages on Splunk's website, with three options: tgz, deb or rpm.


For the tgz package, just download it, extract it to the directory you want and continue from step 4 of this tutorial.


For the deb or rpm packages, follow all the steps below:


Step 1: Download the application (version 8.0.6 at the time of this post)


For .deb systems:

wget -O splunk-8.0.6-152fb4b2bb96-linux-2.6-amd64.deb 'https://www.splunk.com/bin/splunk/DownloadActivityServlet?architecture=x86_64&platform=linux&version=8.0.6&product=splunk&filename=splunk-8.0.6-152fb4b2bb96-linux-2.6-amd64.deb&wget=true'

or for .rpm systems:

wget -O splunk-8.0.6-152fb4b2bb96-linux-2.6-x86_64.rpm 'https://www.splunk.com/bin/splunk/DownloadActivityServlet?architecture=x86_64&platform=linux&version=8.0.6&product=splunk&filename=splunk-8.0.6-152fb4b2bb96-linux-2.6-x86_64.rpm&wget=true'

Note: the link in this tutorial points to the download of version 8.0.6 (available on 10/14/2020). If there is a newer version, or if you need to install an earlier one, just change the download link in this first step.


Step 2: Move to the directory that will hold the contents of the Splunk installer. Here we will use the /opt directory.


mv $pacote_splunk$ /opt

Step 3: Install Splunk


For .deb systems:

dpkg -i $pacote_splunk$

or for .rpm systems:

rpm -i $pacote_splunk$

Step 4: Start Splunk

To start Splunk, go to the directory where the application's binaries are. If you installed it in the opt folder as in this tutorial, go into the /opt/splunk/bin directory to run the binaries.

cd /opt/splunk/bin

./splunk start

When the startup process is complete, you can open the Splunk web interface at:

http://$endereco_do_servidor$:8000

Note: if you installed it on your Windows or Mac OS laptop, the address will be "http://localhost:8000".


Done! Splunk is ready to use!


Additional steps


Start with the operating system

To have Splunk start with the operating system, run the following command:

./splunk enable boot-start

Enable SSL

  1. In the web interface, go to Settings > System > Server settings > General Settings

  2. Find the Enable SSL (HTTPS) in Splunk Web option, in the Splunk Web section, and select Yes

  3. Restart Splunk "Settings > System > Server controls > Restart Splunk" or "./splunk restart"

From this step on, you must use “https” to open the Splunk web interface.


Changing the digital certificate for Splunk Web

With a certificate and private key in hand (self-signed or signed by a CA), note down where your certificates are stored. Edit the file $SPLUNK_HOME/etc/system/local/web.conf to point to these paths as shown below:

[settings]
enableSplunkWebSSL = true
privKeyPath = <caminho_para_SplunkWebPrivateKey.key> 

serverCert = <caminho_para_SplunkWebCertificate.pem > 

Note: use absolute paths if the certificates are not in the Splunk installation folder. If you don't use an absolute path, the path is taken as relative to the installation directory ($SPLUNK_HOME)


After saving the file above, restart Splunk

# $SPLUNK_HOME/bin/splunk restart splunkd


Want to practice? Try the free We Challenge sample, with Splunk questions and explanations.

To start from scratch, see the Introduction to Splunk course on Udemy (in Portuguese). For your team, see WeValuate's Splunk training.


Questions about the post? Content suggestions? Corrections? Criticism or praise?

Please contact us at wevaluatebr@gmail.com and we will reply as soon as possible.


If you liked it, share this post on your social networks and help us spread the word!


Comments


bottom of page