Skip to content

Installed and Configured Splunk Enterprise on a Microsoft Azure Virtual Network.

Notifications You must be signed in to change notification settings

droliva10/Splunk_Enterprise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

Repository files navigation

Installed and Configured Splunk Enterprise.

Logo

The files in this repository were used to configure the network depicted in the diagram.

VM Specifications

  • Linux (ubuntu 20.04) Operating System
  • 20_04-lts-gen2
  • Standard B1ms
  • 1 vCPU
  • 2 GiB RAM

These downloads have been tested and used to generate a live Splunk Enterprise deployment on Microsoft Azure. They can be used to either recreate the deployment pictured above or variation.


Table of Contents

  1. Topology
  2. Access
  3. Splunk
  4. Azure
  5. Settings
  6. Forwarder
  7. Data
  8. Targets

Topology

The main purpose of this network is to have a secure environment and monitor a Ruby On Rails application.

  • Containerization was used to create a control node. This serves the purposed of security, elasticity, and scalability.

  • Load balancing ensures that the application will be highly redundant and available, in addition to restricting access to the network.

  • Load balancers protect the availability of the server. It reduce the attack vector on the back-end of the network.

  • Integrating a Splunk Enterprise instance allows users to easily monitor the VM's for changes to the configuration files, system logs, performance, and much more.

The configuration details of each machine may be found below.

Name Function IP Address Operating System
Kirk Jump-box 10.0.0.4 Linux
Spock Web Server 10.0.0.5 Linux
Scotty Splunk 10.1.0.4 Linux

Access

The machines on the internal network are not exposed to the public Internet. Only the Jump-box machine can accept connections from the internet. Access to this machine is only allowed from the following IP address.

  • Whitelisted (Personal IP address)

Machines within the network can only be accessed by the Jump-box through a control node SSH connection.

  • I have allowed Kirk (Jump-box) access to the Back-end Server Pool and Splunk Enterprise virtual machines.

A summary of the access policies in place can be found in the table below.

Name Publicly Accessible Allowed IP Addresses
Kirk Yes Personal IP
Spock No 10.0.0.0-254
Scotty No 10.1.0.0-254

Splunk

Splunk Enterprise Installation.

Note: Navigate to the /opt directory on the VM that Splunk Enterprise instance is to be installed.

Download

sudo wget -O splunk-8.2.3-cd0848707637-linux-2.6-amd64.deb 'https://download.splunk.com/products/splunk/releases/8.2.3/linux/splunk-8.2.3-cd0848707637-linux-2.6-amd64.deb'

Extract

sudo dpkg -i splunk-8.2.3-cd0848707637-linux-2.6-amd64.deb

Commands

sudo cd /opt/splunk/bin

sudo ./splunk start --accept-licences

File Configuration

Edit splunk-launch.conf file to bind IP Address.

sudo vi ../etc/splunk-launch.conf

  • Copy web.conf file.

sudo cp /opt/splunk/etc/system/default/web.conf /opt/splunk/etc/system/local

sudo vi /opt/splunk/etc/system/local/web.conf

  • Uncomment mgmtHostPort=121.0.0.1:8089

  • Edit IP address, it should be the same IP Address as in splunk-launch.conf file.

sudo ./splunk restart


Azure

Configure Microsoft Azure Network Security Group.

Add inbound security rules to Splunk Enterprise VM. Allow Port 8000 and 8089

Navigate to the Splunk Enterprise URL IP Address:8000 to check it is running and operational.


Settings

Configure settings in Splunk Enterprise.

click manage apps > Browse more apps

Click home > settings > Forwaard and receiving


Forwarder

Splunk Universal Forwarder Installation.

Note: Navigate to the /opt directory on the VM Splunk Universal Forwarder is to be installed.

Download

sudo wget -O splunkforwarder-8.2.3-cd0848707637-linux-2.6-amd64.deb 'https://download.splunk.com/products/universalforwarder/releases/8.2.3/linux/splunkforwarder-8.2.3-cd0848707637-linux-2.6-amd64.deb'

Extract

sudo dpkg -i splunkforwarder-8.2.3-cd0848707637-linux-2.6-amd64.deb

Commands

sudo cd /opt/splunkforwarder/bin

sudo ./splunk start --accept-licence

sudo ./splunk add forward-server IP Address:9997

sudo ./splunk set deploy-poll IP Address:8089

sudo .splunk add monitor /var/log/

sudo ./splunk restart


Data

Verify data is being sent to indexer.

Navigate to the Splunk Enterprise URL IP Address:8000 to check it is running, and monitoring the Virtual Network.

Click settings > Forwarder management.

Navigate back to Splunk Enterprise home.

Click Search & Reporting > Data Summary.

If you need to troubleshoot connection.

sudo ./splunk list forward-server

list forward-server

Lastly ensure Splunk Enterprise and the Universal Forwarder start on boot.

Commands

Splunk Enterprise

sudo ./splunk enable boot-start

Splunk Enable

Splunk Universal Forwarder

sudo ./splunk enable boot-start

Splunk Enable


Targets

The Splunk Universal Forwarder is installed and configured to monitor the following machines:

  • 10.0.0.4
  • 10.0.0.5

About

Installed and Configured Splunk Enterprise on a Microsoft Azure Virtual Network.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published