PL EN
WB-7B8CD181TLP:CLEARWazuh 5

Wazuh 5 installation: requirements, installer and first agent

Installing Wazuh 5.0 RC: hardware requirements, ports, the all-in-one installer, Docker, agent enrollment with a token, and the rules for migrating from 4.x.

Wazuh 5.0 is not a stable release yet. At the time of writing, 12 November 2026, the newest 5.x tag on the project’s releases page is v5.0.0-rc2, and the “Latest” label still sits on 4.14.10. I describe installing the Wazuh 5 RC based on the documentation of the upcoming release, and at the end I add a few observations from my lab. An overview of what 5.0 changes compared to 4.x beyond installation is in Wazuh 5 as a next-gen SIEM.

Release status and where to find the documentation

The Wazuh 5 documentation is published under a separate path, 5.0-rc. Every page has a banner saying it describes an upcoming release that is still under development. Pages under the current address describe the 4.x line, so commands from there do not fit Wazuh 5. While checking, the 5.0 address without the -rc suffix returned 404.

Packages and installation scripts come from a pre-release repository, and the commands in the documentation refer to version 5.0.0-rc2 and to the host packages-staging.xdrsiem.wazuh.info. The installation script carries the version number in its name, and the -d pre-release option tells it to download release candidate packages. After the stable release, the documentation says to remove this option. Before installing, check that the version number in the commands still matches the current candidate.

Wazuh 5 requirements

The documentation gives requirements for an all-in-one deployment, meaning all components on one host. It usually suffices for up to 100 endpoints and 90 days of indexed data.

Number of agentsCPURAMDisk (90 days)
1-254 vCPU8 GB50 GB
26-508 vCPU16 GB100 GB
51-1008 vCPU16 GB200 GB

Larger environments should use a distributed deployment. The quickstart lists the supported systems for the central components: Amazon Linux 2023, Ubuntu 24.04 and 26.04, and RHEL 9 and 10, on 64-bit Intel, AMD or ARM.

Agents have a wider list. The enrollment requirements page lists, among others, Ubuntu 20.04 to 26.04, Debian 10 to 13, RHEL 7 to 10, Windows 10 and 11, Windows Server from 2012 R2 to 2025, and macOS 15, 26 and 27. The documentation also notes that older systems may install but are not tested.

Ports

Wazuh 5 changes how agents connect. Ports according to the architecture page:

PortComponentPurpose
1517/TCPmanagerenrollment and connection of 5.x agents (HTTPS)
1514manager4.x agents (legacy mode)
1515/TCPmanager4.x agent enrollment
1516/TCPmanagermanager cluster communication
55000/TCPmanagerREST API, master node only
9200/TCPindexerindexer REST API
9300-9400/TCPindexerindexer cluster node communication
443/TCPdashboardweb interface

5.x agents use port 1517 only. Ports 1514 and 1515 are needed only if 4.x agents are going to connect to a 5.x manager. The documentation also says the manager forwards data to the indexer through the indexer connector, which replaces Filebeat. So when installing Wazuh 5, do not look for a Filebeat package or configuration.

Wazuh 5 all-in-one installation

The shortest path is the installation assistant. The documentation tells you to download the script and run it with root privileges:

wget https://packages-staging.xdrsiem.wazuh.info/pre-release/5.x/installation-assistant/wazuh-install-5.0.0-rc2.sh
sudo bash ./wazuh-install-5.0.0-rc2.sh -a -id -d pre-release

What the options do, according to the documentation:

OptionEffect
-ainstalls all central components on this host
-idinstalls missing system dependencies without asking
-d pre-releasedownloads release candidate packages
-as <ADRES>adds to the certificate the address under which agents see the manager (can be repeated)
-ap <ADRES_API>adds the manager API address and makes the API listen on all interfaces (can be repeated)

If agents will connect through NAT, a public address or a load balancer, and the address does not make it into the certificate, token creation fails with ERROR 9025: Enrollment token refused: address not in certificate SAN. For example, if the manager is reachable for agents at 203.0.113.10, you add -as 203.0.113.10 already during installation.

Passwords and dashboard access

The admin user logs in to the dashboard and is also the indexer administrator. The installer shows its password only in an interactive terminal and does not write it to /var/log/wazuh-install.log. Later you read the password from a file readable only by root:

sudo grep '^WAZUH_INDEXER_ADMIN_PASSWORD=' /etc/wazuh-indexer/export/credentials.env | cut -d= -f2-

The dashboard runs at https://<ADRES_DASHBOARDU> on port 443. The browser warns about the certificate because Wazuh uses its own CA. You can import /etc/wazuh-dashboard/export/ca.pem or configure a trusted certificate. The passwords of the other users are in /etc/wazuh-indexer/export/credentials.env and /etc/wazuh-manager/export/credentials.env.

The documentation reminds you to back up the directories /etc/wazuh-indexer/ca, /etc/wazuh-manager/ca and /etc/wazuh-dashboard/ca. Without them you cannot renew certificates. If firewalld or UFW is active, the installer warns and prints the ports to open, and rules in cloud security groups must be added separately.

Distributed installation step by step

With separate hosts you use the same script, but the order is fixed: indexer, manager, dashboard. The documentation recommends one method for all three components.

On the first indexer node you download the script and the config.yml template:

curl -sO https://packages-staging.xdrsiem.wazuh.info/pre-release/5.x/installation-assistant/wazuh-install-5.0.0-rc2.sh
curl -o config.yml https://packages-staging.xdrsiem.wazuh.info/pre-release/5.x/installation-assistant/config-5.0.0-rc2.yml

The config.yml file has a nodes key with three sections: indexer, manager and dashboard. Each entry has a name and an ip, and the ip and dns fields accept lists. For a manager cluster, one node gets node_type: master and the others worker. An example with documentation addresses:

nodes:
  indexer:
    - name: indexer
      ip: 192.0.2.11
  manager:
    - name: manager
      ip: 192.0.2.12
  dashboard:
    - name: dashboard
      ip: 192.0.2.13

Next you generate certificates, keys and passwords:

bash wazuh-install-5.0.0-rc2.sh --generate-config-files -id

The result goes to the wazuh-install-files.tar archive, which you copy together with the script to every node. The root CA private key stays in the wazuh-ca directory and does not go into the archive. The documentation tells you to keep it safe, because it is needed to add nodes and renew certificates.

The next commands, each on the right host. The node name must match config.yml:

# indexer, on every indexer node
bash wazuh-install-5.0.0-rc2.sh --wazuh-indexer indexer -id -d pre-release

# cluster initialization, once, on any indexer node
bash wazuh-install-5.0.0-rc2.sh --start-cluster -id

# manager, master node first
bash wazuh-install-5.0.0-rc2.sh --wazuh-manager manager -id -d pre-release

# dashboard
bash wazuh-install-5.0.0-rc2.sh --wazuh-dashboard dashboard -id -d pre-release

You check that the indexer works with the query curl --cacert /etc/wazuh-indexer/export/ca.pem -u admin https://<ADRES_INDEXERA>:9200, and the cluster members with the list at /_cat/nodes?v on the same address. On the manager, the documentation suggests listing the nodes with /var/wazuh-manager/bin/cluster_control -l. The master log shows a warning about a missing dashboard client certificate pair. The documentation describes it as expected and requiring no action.

The installer sets the indexer heap to half of the RAM. If a manager or dashboard also runs on the same host, it uses one quarter. Take this into account when planning memory.

In the dashboard you check the connection state to the manager under Dashboard management > Server API. The Online status confirms that the dashboard sees the API on port 55000. When it is offline, the documentation tells you to check the wazuh-manager service, the availability of port 55000, the addresses in the /etc/wazuh-manager/certs/apid.pem certificate, and the /etc/wazuh-dashboard/certs/manager-ca.pem file.

Wazuh 5 in Docker

For a lab, a container stack is often more convenient. Multi-node, certificates, passwords, backup and upgrade are covered in a separate post, Wazuh 5 in Docker. Requirements from the documentation: Docker Engine 20.10.0 or newer, the Compose plugin with the docker compose command, and git. A single-node stack needs 4 cores, 8 GB RAM and 50 GB of disk, and a multi-node stack 4 cores, 16 GB and 100 GB. On a Linux host, the vm.max_map_count parameter must be at least 262144:

sysctl -w vm.max_map_count=262144
echo "vm.max_map_count=262144" > /etc/sysctl.d/99-wazuh-max-map-count.conf
sysctl --system

The script that downloads the certificate tool is too long in the documentation to repeat here, so copy it from the section on preparing certificates:

git clone https://github.com/wazuh/wazuh-docker.git -b v5.0.0-rc2
cd wazuh-docker/single-node/
# certificate tool download and config.yml preparation: as in the documentation
bash ../tools/utils/deployment/certificates-conf.sh --cert --copy --priv --agent-san 192.0.2.20
bash ../tools/utils/deployment/credentials-conf.sh
docker compose up -d
docker compose ps

The --agent-san parameter adds the address under which agents connect to the Docker host to the listener certificate. The credentials-conf.sh script writes random passwords to the files indexer.env, manager.env and dashboard.env in config/credentials. The images have no default passwords, the stack will not start without these files, and later editing the files does not change the passwords. Treat them as the only record. The single-node stack is three containers: wazuh.indexer, wazuh.manager and wazuh.dashboard. The published ports are 1517, 1514, 1515, 55000 and 443, and the indexer API on 9200 is not exposed outside. Single-node and multi-node stacks are not run at the same time on one host, because they share ports.

First agent: a token instead of a password

5.x agents enroll with a token issued by the manager. You create the token on the master node, and the address in the --address option must be in the SAN of the listener certificate:

wazuh-manager-authd --create-enrollment-token --address 203.0.113.10 --description "agent-01"

The default token lifetime is 30 days (--ttl), and the default number of uses is unlimited (--max-uses). --list-enrollment-tokens lists tokens, --revoke-enrollment-token <id> revokes one, and --purge-enrollment-tokens removes expired and used ones. This makes the token a credential: treat it like a password and set a shorter --ttl if you do not need a month.

On a Debian or Ubuntu host you add the pre-release repository and install the agent, passing the token in an environment variable:

apt-get update && apt-get install -y gnupg apt-transport-https curl
curl -s https://packages-staging.xdrsiem.wazuh.info/key/GPG-KEY-WAZUH | gpg --no-default-keyring --keyring gnupg-ring:/usr/share/keyrings/wazuh.gpg --import && chmod 644 /usr/share/keyrings/wazuh.gpg
echo "deb [signed-by=/usr/share/keyrings/wazuh.gpg] https://packages-staging.xdrsiem.wazuh.info/pre-release/5.x/apt/ unstable main" | tee /etc/apt/sources.list.d/wazuh.list
apt-get update
WAZUH_ENROLLMENT_TOKEN='<TOKEN>' WAZUH_AGENT_NAME='agent-01' apt-get install -y wazuh-agent
systemctl daemon-reload
systemctl enable wazuh-agent
systemctl start wazuh-agent

The agent installation page documents only two variables: WAZUH_ENROLLMENT_TOKEN and WAZUH_AGENT_NAME. The WAZUH_MANAGER variable from older instructions is not there. Without a name, the agent registers under the host name, and the manager rejects names that are already taken. The manager version must be equal to or higher than the agent version.

You check success with two commands from the documentation:

grep ^status /var/ossec/var/run/wazuh-agentd.state
grep 'Token bootstrap: enrollment succeeded' /var/ossec/logs/ossec.log

When an agent already has a key and must be enrolled again, use wazuh-agent-auth. It reads the token from a file or from standard input, never from the command line, and refuses to work while the agent is running:

systemctl stop wazuh-agent
/var/ossec/bin/wazuh-agent-auth --token-file /root/token
systemctl start wazuh-agent

The --force-enroll option enrolls the agent anew under a new identifier, but by default only when the old entry has been disconnected and registered for more than an hour. Otherwise the tool exits with code 4. The --certs-only option refreshes the trusted CA certificate after its rotation, without changing the agent identifier. The package page also suggests disabling the repository or pinning the package version, so the pre-release does not update itself.

Upgrade to Wazuh 5 and migration from 4.x

Upgrade to Wazuh 5: a 4.x environment cannot be upgraded in place. The transition requires migrating or recreating data, configuration, certificates and security settings. The migration guide covers package, all-in-one and distributed deployments, but not Docker or Kubernetes. The next steps for the indexer, manager, agents and dashboard are described in migration from Wazuh 4.x to Wazuh 5.

The flow recommended in the migration plan:

  1. Build a new 5.x environment next to the old one and leave 4.x untouched until validation.
  2. Move the indexed data through snapshots in a shared repository. The documentation supports this from Wazuh 4.4.0, and older indices will not be restored, even if the deployment was upgraded later.
  3. Move agent registrations with the 4.x manager stopped. Until the import, do not register any agent in the new manager, because it will collide with a migrated identifier.
  4. Upgrade the agents to 5.x.

What changes, according to the same guide: 4.x configuration files are not carried over to 5.x, XML rules and decoders do not migrate and must be recreated in content management, and frequency and threshold rules are not supported. The 5.x manager does not monitor its own host as agent 000, so install an agent on it. Restored 4.x indices keep their old mappings and serve historical search. The main configuration file is now /etc/wazuh-manager/wazuh-manager.conf with the root <wazuh_config>, and you validate it with /var/wazuh-manager/bin/wazuh-manager-conf -f /etc/wazuh-manager/wazuh-manager.conf validate. The rootcheck, FIM, SCA, syscollector and log collection modules were moved to the agent side, and the Active Response configuration to the dashboard. What detection looks like in 5.x is described in Wazuh 5: Sigma rules, detectors and findings.

4.x agents can connect to a 5.x manager, but FIM, SCA, inventory, Active Response and vulnerability detection are not fully supported until the agent is upgraded to 5.x. Before upgrading the agent package, you must place the manager root CA certificate in /var/ossec/etc/certs/root-ca.pem, because the package upgrade does not install it. After the upgrade, check in /var/ossec/logs/ossec.log whether the log mentions disabled TLS verification. A 5.x agent connects to a single manager address, so before the upgrade leave one <server> entry in the configuration.

In my lab

These are observations from one small environment, not requirements from the documentation.

I ran the Docker stack in an unprivileged LXC container. Two runc errors about resource limits stopped the startup: the container could not raise the locked memory limit, so bootstrap.memory_lock had to be disabled in the indexer, and the open files limit in the manager container had to go below the hard LXC limit. I put the fixes in a separate docker-compose.override.yml file, so as not to touch the files from the Wazuh repository. This part applies only to LXC and will not appear in a regular virtual machine.

The default indexer heap of 1 GB was too small for dashboard queries: the circuit breaker rejected requests. Raising it to 2 GB was enough to start, and after moving to a larger host I gave the indexer even more.

I upgraded the 4.14 agents to package 5.0.0-1 from the pre-release repository, pinned the package with apt-mark hold wazuh-agent, made a copy of the agent etc directory before the change, and cleaned the old client.keys, because the key was issued by the old manager. I enrolled with a token through wazuh-agent-auth --token-file, and deleted the token file right after use. On a fresh installation an agent without a key does not start, so the restart had to wait until after enrollment. Once an agent hung after a restart because an orphaned wazuh-execd process was left behind: stopping the agent, killing the process and enrolling again helped.

After moving the container to another host, the indexer turned red because of a corrupted shard in one of the system indices. I did not establish the cause. To fix it I deleted that index, and the plugin recreated it on its own. Before moving a host with an indexer, make a backup and save the settings of the system indices.

What the documentation does not specify

The Wazuh 5 documentation is still being written and some questions remain unanswered. The indexer installation page does not give minimum hardware requirements for a distributed deployment, only for all-in-one and Docker. The migration guide does not name the supported 4.x versions for migrating agent registrations, it only mentions index versions from 4.4.0. I did not find a release notes section in it, or a date for the stable release. The script names and the Docker tag have rc2 in the name and will change in the next candidate.

Sources

↑↓ select Enter open Esc close