How to Install Splunk Log Analyzer on Ubuntu Linux

Splunk software is a popular log analyzer that you can deploy in your environment to gain insights and help you simplify logs data from servers, networking devices, and others so you can make sense of them.

It helps you, monitor, search and analyze the vast amount of data, (especially in larger environments) into a simple format that you can easily read and digest.

Splunk supports the majority of the operating systems in use today. from Windows to Linux and Mac OS. including the vast majority of the networking devices deployed.

For more about Splunk, please check its homepage.

When you’re ready to install Splunk, follow the steps below:

Download Splunk Installer

On Ubuntu systems, you’ll want to download the DEB installer. the commands below can be used to do that

cd /tmp && wget https://download.splunk.com/products/splunk/releases/7.1.1/linux/splunk-7.1.1-8f0ead9ec3db-linux-2.6-amd64.deb

The commands above will download the current version 7.1.1 and save it into the /temp directory. All you need to do now is run dpkg command and install it.

Install Splunk

Now that the Splunk installer is downloaded, run the commands below to install it.

sudo dpkg -i splunk-7.1.1-8f0ead9ec3db-linux-2.6-amd64.deb

The commands above initiate the installation. want for a few minutes for the installation to complete. when done, you should see the completion messages as shown below.

Selecting previously unselected package splunk.
(Reading database . 165107 files and directories currently installed.)
Preparing to unpack splunk-7.1.1-8f0ead9ec3db-linux-2.6-amd64.deb .
Unpacking splunk (7.1.1) .
Setting up splunk (7.1.1) .
complete

Finally, run the commands below to enable Splunk to always start up when the server starts. the next command starts the service immediately.

sudo /opt/splunk/bin/splunk enable boot-start
sudo service splunk start

When you run the commands above, you’ll have to accept the licensing agreement. use the spacebar on your keyboard to scroll down the pages. in the end, type y to agree to the terms.

Splunk Software License Agreement 04.24.2018

Do you agree with this license? [y/n]: y

You’ll then be prompted to create and confirm the admin password. use this password to access the web portal.

This appears to be your first time running this version of Splunk.

An Admin password must be set before installation proceeds.
Password must contain at least:
   * 8 total printable ASCII character(s).
Please enter a new password: 
Please confirm new password: 
Copying '/opt/splunk/etc/openldap/ldap.conf.default' to '/opt/splunk/etc/openldap/ldap.conf'.

Moving '/opt/splunk/share/splunk/search_mrsparkle/modules.new' to '/opt/splunk/share/splunk/search_mrsparkle/modules'.
Init script installed at /etc/init.d/splunk.
Init script is configured to run at boot.

Start Splunk.

sudo service splunk start

After that, open your browser and browse to the server hostname or IP address followed by port # 8000

http://localhost:8000

You should see the Splunk web portal for you to access. use the credentials you created above to access the backend.

Splunk ubuntu install

Enjoy~!

Splunk ubuntu setup

You may also like the post below: