Back to TILs

splunk

Date: 2023-02-08Last modified: 2023-03-07

Table of contents

Introduction

Manual security incident Management

SIEM — Security Information and Event Management

SIEM Capabilities

SIEM: Detect Malicious Activity

SOAR — Security Orchestration, Automation, and Response

SOAR Capabilities

SOAR: Stop Malicious Activity

Automate Detection and Containment

Playbook workflow

Playbook workflow.
Fig. 1Playbook workflow.

Splunk Use Cases

Splunk Licenses

Splunk Enterprise

Splunk Cloud Platform

Splunk Components

Splunk Forwarders

Search head

Splunk search head
Fig. 2Splunk search head

Splunk Enterprise Installation

Download

wget -O splunk-9.0.3-dd0128b1f8cd-linux-2.6-amd64.deb \
"https://download.splunk.com/products/splunk/releases/9.0.3/linux/splunk-9.0.3-dd0128b1f8cd-linux-2.6-amd64.deb"

Install

dpkg -i splunk-9.0.3-dd0128b1f8cd-linux-2.6-amd64.deb
dpkg --status splunk

Start

/opt/splunk/bin/splunk start --accept-license

Accept the EULA, and Configure Splunk to start at boot time

/opt/splunk/bin/splunk enable boot-start  
Init script installed at /etc/init.d/splunk.  
Init script is configured to run at boot.

Splunk Forwarders Installation

Download

wget -O splunkforwarder-9.0.3-dd0128b1f8cd-linux-2.6-amd64.deb \
"https://download.splunk.com/products/universalforwarder/releases/9.0.3/linux/splunkforwarder-9.0.3-dd0128b1f8cd-linux-2.6-amd64.deb"

Install

dpkg -i splunkforwarder-9.0.3-dd0128b1f8cd-linux-2.6-amd64.deb

Start

/opt/splunkforwarder/bin/splunk start --accept-license

Add

/opt/splunkforwarder/bin/splunk add forward-server 134.209.212.195:9997
/opt/splunkforwarder/bin/splunk add monitor /var/log/

Configure

vi /opt/splunkforwarder/etc/apps/search/local/inputs.conf

[monitor:///var/log]
disabled = false
index = linux_universal_forwarder
host = linux_golf

Restart

/opt/splunkforwarder/bin/splunk restart

Splunk Data Sources

Forwarders and Indexing

Splunk Enterprise vs. Splunk Cloud

Enterprise

Cloud

SSL

Edit /opt/splunk/etc/system/local/web.conf and add the following lines:

[settings]
enableSplunkWebSSL = 1
privKeyPath=/etc/letsencrypt/live/your-domain/privkey.pem
serverCert=/etc/letsencrypt/live/your-domain/fullchain.pem

References