Skip to content

Splunk Plugin

Splunk SIEM client, implemented based on splunk-sdk, providing Splunk backend query capabilities for the SIEM plugin.

Configuration

  1. Rename PLUGINS/Splunk/CONFIG.example.py to CONFIG.py
  2. Fill in the configuration items:
Configuration ItemDescription
SPLUNK_HOSTSplunk server address
SPLUNK_PORTManagement port, default 8089
SPLUNK_USERLogin username
SPLUNK_PASSLogin password
SPLUNK_HEC_URLHTTP Event Collector address, only needed when Mock plugin generates test data
SPLUNK_TOKENHEC Token, only needed when Mock plugin generates test data

When not using the Mock Plugin to generate test data, SPLUNK_HEC_URL and SPLUNK_TOKEN can be left empty.

Sending Alerts to Redis Stream (webhook action)

  • Configure the Forwarder Plugin

  • Write SPL and save as an Alert; refer to the image below for specific configuration

img.png

The Cron Expression / Time Range section means executing every 5 minutes, searching the last 5 minutes of data (adjustable as needed)

Trigger selection For each result ensures each result independently sends one Webhook

Webhook address is http://192.168.163.128:7000/api/v1/webhook/splunk; replace the IP and port according to your actual environment

img_2.png

  • Redis Insight can display alert messages sent to the Stream

img_1.png