Log inSign up

Collect security alerts from all your servers with Wazuh

Deploy a fresh Ubuntu 24.04 server with at least 4 vCPU and 8 GB of RAM, download the Wazuh installation assistant for the current 4.x release and run sudo bash wazuh-install.sh -a to set up the manager, indexer and dashboard together. Open the dashboard on port 443 only from your own IP, then install wazuh-agent on each server with WAZUH_MANAGER set to the central address. Alerts, file integrity events and vulnerability findings then arrive in one place.

Topic: Security · Tested on: Ubuntu 24.04 and 22.04, Debian 12 and 13, Rocky Linux 9, AlmaLinux 9 · Updated 2026-12-03

What does Wazuh do?

Wazuh is an open source security platform. Agents on your servers read logs, watch files, check configuration against benchmarks and list installed packages. The central manager analyses that data with rules and decoders, the indexer stores it, and the dashboard lets you search and visualise alerts. In practice you see failed SSH logins, new users, changed binaries, rootkit checks and known vulnerable packages across every machine from one screen.

For a single server, lighter tools may be enough: AIDE for file changes and fail2ban for login abuse. Wazuh starts paying off once you look after several servers.

How big does the Wazuh server need to be?

The all-in-one installation runs three heavy components, and the indexer alone wants several gigabytes of memory. The project recommends at least 4 vCPU, 8 GB of RAM and 50 GB of disk for up to about 25 agents, with more for larger fleets or longer retention. On a 1 or 2 GB plan the stack cannot run reliably, because the indexer runs out of memory.

A sensible starting point is A4-8 (4 vCPU, 8 GB RAM, 180 GB NVMe). If you plan to keep months of alerts or monitor dozens of servers, pick a larger plan such as S6-16 (6 vCPU, 16 GB RAM, 320 GB SSD) from the start, because our plans cannot be resized in place; growing later means deploying a bigger server and moving, as in move to a larger plan. Use a dedicated server for Wazuh rather than sharing it with your apps.

How do I run the all-in-one installer?

Start from a fresh Ubuntu 24.04 image, update it, then download the installation assistant for the current release. Check the Wazuh quickstart documentation for the newest 4.x number and use it in place of the example below:

sudo apt update && sudo apt upgrade -y
VER=4.14
curl -sO https://packages.wazuh.com/$VER/wazuh-install.sh
sudo bash ./wazuh-install.sh -a

The run takes ten to twenty minutes. At the end it prints the dashboard address and the password for the admin user. All generated passwords are kept in an archive next to the script; read them and then move the archive somewhere safe:

sudo tar -O -xvf wazuh-install-files.tar wazuh-install-files/wazuh-passwords.txt

Confirm the services are running:

systemctl status wazuh-manager wazuh-indexer wazuh-dashboard --no-pager

How do I secure the dashboard and ports?

Expose only what agents need and keep the web interface private. Agents connect to the manager on TCP 1514 (events) and 1515 (enrollment); the dashboard listens on 443; the indexer on 9200 and the API on 55000 should stay closed to the internet. With UFW on the Wazuh server:

sudo ufw allow OpenSSH
sudo ufw allow from 203.0.113.10 to any port 443 proto tcp
sudo ufw allow from 198.51.100.31 to any port 1514:1515 proto tcp
sudo ufw enable
sudo ufw status numbered

Here 203.0.113.10 stands for your own IP and 198.51.100.31 for one monitored server; add a rule per agent, or reach the dashboard through WireGuard instead of a public allow rule. The dashboard starts with a self-signed certificate. Replace it with your own or keep access private, and change the admin password with the password tool shipped in the installer files.

How do I add an agent on Ubuntu or Debian?

Add the Wazuh repository and install the agent with the manager address in an environment variable, which writes it into the agent config:

curl -s https://packages.wazuh.com/key/GPG-KEY-WAZUH | sudo gpg --no-default-keyring --keyring gnupg-ring:/usr/share/keyrings/wazuh.gpg --import
sudo chmod 644 /usr/share/keyrings/wazuh.gpg
echo "deb [signed-by=/usr/share/keyrings/wazuh.gpg] https://packages.wazuh.com/4.x/apt/ stable main" | sudo tee /etc/apt/sources.list.d/wazuh.list
sudo apt update
sudo WAZUH_MANAGER="198.51.100.24" apt install wazuh-agent
sudo systemctl daemon-reload
sudo systemctl enable --now wazuh-agent

The agent version must not be newer than the manager. To avoid surprise upgrades, hold the package with sudo apt-mark hold wazuh-agent and upgrade on purpose after the manager.

How do I add an agent on Rocky Linux or AlmaLinux?

Import the signing key, create a repository file and install:

sudo rpm --import https://packages.wazuh.com/key/GPG-KEY-WAZUH
sudo tee /etc/yum.repos.d/wazuh.repo > /dev/null <<EOF
[wazuh]
name=Wazuh repository
baseurl=https://packages.wazuh.com/4.x/yum/
gpgcheck=1
gpgkey=https://packages.wazuh.com/key/GPG-KEY-WAZUH
enabled=1
EOF
sudo WAZUH_MANAGER="198.51.100.24" dnf install wazuh-agent
sudo systemctl daemon-reload
sudo systemctl enable --now wazuh-agent

To pin the version, add exclude=wazuh-agent to the repo file after install and remove it when you upgrade deliberately.

How do I confirm agents are reporting?

On the Wazuh server, list connected agents with the manager tool:

sudo /var/ossec/bin/agent_control -l

Each agent should show as Active. On an agent, the log explains connection problems:

sudo tail -n 50 /var/ossec/logs/ossec.log

Generate a test event by failing an SSH login a few times against a monitored server, then search the dashboard for that source IP. If an agent stays disconnected, check the firewall rules for 1514 and 1515 on the manager and that the address in /var/ossec/etc/ossec.conf on the agent is correct.

How do I maintain the Wazuh server?

Plan upgrades: upgrade the central components first, following the release notes for your version, then the agents. Watch disk usage, because the indexer grows every day; df -h and the index management page show where the space goes. Set index retention policies so old alerts are deleted automatically, and back up the configuration in /var/ossec/etc along with the installer archive. The optional daily backup add-on or your own restic backups both work. Keep an eye on memory and CPU with the usage graphs after adding agents.

Plans that fit this guide

Base city prices. Every plan includes a dedicated IPv4 address, IPv6, full root and all 18 images.

All prices
PlanFits becauseSizeMonthlyOrder from
A4-8minimum for the all-in-one stack with a few agents4 vCPU, 8 GB RAM, 180 GB NVMe$28.80/mo$86.40 for 3 months
S6-16more agents or longer alert retention6 vCPU, 16 GB RAM, 320 GB SSD$48.00/mo$48.00 for 1 month
A8-16larger fleets and heavy searches8 vCPU, 16 GB RAM, 350 GB NVMe$57.60/mo$57.60 for 1 month

Questions about Wazuh security monitoring

Can I run Wazuh on a 2 GB server?

Not the all-in-one stack. The indexer needs several gigabytes by itself. Start at 8 GB of RAM, or install only agents on small servers and send data to a larger central one.

Does the agent slow down my servers?

The agent is light and mostly idle. Scans for file integrity and vulnerabilities cause short bursts of disk and CPU activity, which you can schedule at quiet hours.

Is Wazuh free?

Yes, it is open source. You pay only for the servers it runs on.

Can Wazuh run on Debian or Rocky Linux as the central server?

The installation assistant supports several distributions; check the current compatibility list in the Wazuh documentation. This guide uses Ubuntu 24.04 for the central server because it is a common, well tested choice.

Can Wazuh send alerts by email?

Yes, but outgoing port 25 is not guaranteed on a VPS. Ask support by ticket before planning direct delivery, or use an authenticated relay on port 587.