Build Your Own Open-Source SIEM: A Complete Wazuh Installation Walkthrough

Learn how to easily set up your own powerful, free security monitoring system to protect your servers and endpoints from cyber threats.

wazuh

Why Every Network Needs a SIEM

Linux

Understanding the Wazuh Security Platform

Wazuh is a free, open-source unified security platform that combines traditional Security Information and Event Management (SIEM) functions with Extended Detection and Response (XDR) capabilities. Originating as a fork of OSSEC, it has grown into one of the most widely used enterprise security tools in the world. It works by continuously collecting, indexing, and analyzing security logs and telemetry data from across your entire IT infrastructure in real time.

At its core, Wazuh acts as a 24/7 digital security guard for your network. It delivers essential threat detection capabilities such as file integrity monitoring, vulnerability detection, and automated active responses. When a system modification, malware infection, or suspicious login occurs, Wazuh uses over a thousand pre-built security rules mapped to the MITRE ATT&CK framework to correlate the events and immediately generate actionable alerts.

The platform relies on a highly modular, distributed architecture. The central "brain" consists of the Wazuh Indexer (for data storage and search), the Wazuh Manager (for data analysis and rule matching), and the Wazuh Dashboard (the graphical user interface). To monitor target devices like Linux servers, Windows desktops, or cloud containers lightweight Wazuh Agents are installed on those endpoints to securely forward local security logs back to the central server.

Prerequisites

  • Operating System: A dedicated central server running a supported Linux distribution, such as Ubuntu or Debian.
  • Hardware Requirements: A minimum of 4GB RAM, 2 CPU cores, and at least 50GB of storage for a basic single-node setup.
  • Permissions: Root or sudo administrator privileges on the server to install system packages and modify configurations.
  • Network Connectivity: A stable internet connection to download the official Wazuh installation packages, and a static IP address for the central server so agents can reliably connect.

Step-by-Step Installation

1

Prepare the Central Server

Before installing the SIEM components, ensure your system is updated and has the necessary basic dependencies. Run this on your central server:
BASH
# Update the system package index
sudo apt-get update && sudo apt-get upgrade -y

# Install essential dependencies
sudo apt-get install curl apt-transport-https unzip wget lsb-release gnupg2 -y
2

Install the Wazuh Central Components

The most reliable way to install the Wazuh Indexer, Manager, and Dashboard on a single machine is by using the official all-in-one installation script. Run this on your central server:
BASH
# Download the official Wazuh installation script
curl -sO https://packages.wazuh.com/4.14/wazuh-install.sh

# Execute the script with the '-a' flag to automate the all-in-one setup
sudo bash ./wazuh-install.sh -a
Note: This process will take several minutes. When it finishes, the terminal will print your Dashboard URL, Username (admin), and an auto-generated Password. Save these credentials immediately.
3

Verify the Server Installation

Check that the core services are running correctly before moving on to your endpoints.
Bash
# Verify the database (Indexer)
sudo systemctl status wazuh-indexer

# Verify the data processing engine (Manager)
sudo systemctl status wazuh-manager

# Verify the web interface (Dashboard)
sudo systemctl status wazuh-dashboard
You can now log into your SIEM by opening https://<YOUR_SERVER_IP> in a web browser.
4

Install the Wazuh Agent on a Target Linux Endpoint

To monitor other Linux machines, you must install the Wazuh Agent on them and point them to your central server. Run these commands on the target machine you wish to monitor:
Bash
# 1. Download and import the official Wazuh GPG key
curl -s https://packages.wazuh.com/key/GPG-KEY-WAZUH | sudo gpg --no-default-keyring --keyring gnupg-ring:/usr/share/keyrings/wazuh.gpg --import

# 2. Assign the correct permissions to the key
sudo chmod 644 /usr/share/keyrings/wazuh.gpg

# 3. Add the Wazuh official repository
echo "deb [signed-by=/usr/share/keyrings/wazuh.gpg] https://packages.wazuh.com/4.x/apt/ stable main" | sudo tee -a /etc/apt/sources.list.d/wazuh.list

# 4. Update the package information
sudo apt-get update

# 5. Install the Wazuh Agent and link it to your SIEM
# IMPORTANT: Replace "YOUR_WAZUH_SERVER_IP" with the actual IP of the central server you just built!
sudo WAZUH_MANAGER="YOUR_WAZUH_SERVER_IP" apt-get install wazuh-agent -y

# 6. Reload systemd to recognize the new agent
sudo systemctl daemon-reload

# 7. Enable the agent to start on boot
sudo systemctl enable wazuh-agent

# 8. Start the Wazuh agent
sudo systemctl start wazuh-agent
5

Confirm Agent Connectivity

To ensure your target endpoint is successfully communicating with your SIEM, run this command on your Central Wazuh Server:
Bash
sudo /var/ossec/bin/agent_control -l
You will see a list of connected agents, including the new endpoint you just configured. You can also view this visual data populating in your web Dashboard under the "Agents" tab.

Discover CTCservers Dedicated Server Locations

CTCservers servers are available around the world, providing diverse options for hosting websites. Each region offers unique advantages, making it easier to choose a location that best suits your specific hosting needs.