Wazuh → Splunk Integration


SIEM Splunk Status

Wazuh alerts in Splunk

What this project is

This project connected Wazuh and Splunk together.

Simple explanation:

Wazuh finds alerts. Splunk helps me search the alerts.

This is a basic SOC workflow. A SOC analyst needs to collect security data, search it, and understand what happened.

Tools used

How it works

Ubuntu Server
   ↓
Wazuh detects activity
   ↓
Wazuh writes alerts to alerts.json
   ↓
Splunk Universal Forwarder sends the alerts
   ↓
Splunk receives the alerts
   ↓
I search the alerts in Splunk

What I did

  1. Confirmed the Wazuh Manager was running on Ubuntu.
  2. Installed the Wazuh Agent on the Ubuntu server.
  3. Confirmed the Wazuh Agent was active.
  4. Installed the Splunk Universal Forwarder on Ubuntu.
  5. Created a Splunk receiving port on 9997.
  6. Created a Splunk index named wazuh.
  7. Forwarded this Wazuh alert file into Splunk:
/var/ossec/logs/alerts/alerts.json
  1. Created safe test activity so Wazuh would generate alerts.
  2. Searched Splunk to confirm the alerts arrived.

How I created test alerts

At first, there were not many alerts because my Ubuntu server was quiet.

That helped me understand something important:

No activity means no alerts.

To test the setup safely, I created simple activity on Ubuntu, like failed sudo attempts. This caused Wazuh to generate alerts.

Then I checked the Wazuh alert file:

sudo tail -n 20 /var/ossec/logs/alerts/alerts.json

After that, I searched for the alerts in Splunk.

Wazuh alerts in Splunk

Splunk searches I used

Show Wazuh events:

index=wazuh | head 20

Count alerts by rule description:

index=wazuh | stats count by rule.description | sort -count

Count alerts by severity level:

index=wazuh | stats count by rule.level | sort -rule.level

Proof it worked

1. Wazuh Manager was running

Wazuh manager running

2. Wazuh alerts arrived in Splunk

Wazuh alerts in Splunk

3. The Wazuh alert file existed on Ubuntu

Wazuh alerts.json file

4. Alerts counted by severity level — levels 3 (144), 4 (1), 5 (1), and 7 (109).

Wazuh alerts by severity

5. Common alert types — PAM logins, successful sudo to root, and CIS Ubuntu benchmark findings

Top Wazuh rule descriptions

What I learned


Project A of a 4-part security home-lab portfolio.