Skip to main content
intermediate Free with email

Wazuh Agent Installation: Windows and Ubuntu Step-by-Step (Free PDF)

Reviewed 2026-10-15

Direct answer
To install a Wazuh agent, run the package on the endpoint with WAZUH_MANAGER set to your Wazuh server address, then start the agent service. This free 3-page PDF installs the Wazuh server on Ubuntu 24.04 and connects a Windows 11 agent. This page adds the Ubuntu agent steps, the ports and a checklist.

To install a Wazuh agent, run the package on the endpoint with WAZUH_MANAGER set to your Wazuh server’s IP address or hostname, then start the agent service. On Windows that’s msiexec.exe /i wazuh-agent-<version>.msi /q WAZUH_MANAGER="<MANAGER_IP>" followed by NET START WazuhSvc. On Ubuntu it’s apt-get install wazuh-agent with the same variable, then systemctl start wazuh-agent. This free 3-page PDF walks one Ubuntu 24.04 server from a clean install to a working Wazuh stack, then connects a Windows 11 agent.

Paper-craft Wazuh server tagged MANAGER with INDEXER and DASHBOARD boxes and two laptops tagged WINDOWS and UBUNTU connected to it
One Wazuh server, many agents: Windows and Ubuntu endpoints connect to the manager.

How to install Wazuh agent: the three steps that apply on every OS

Every Wazuh agent installation follows the same three steps, whatever the operating system.

  1. Get the server ready. The Wazuh server must be running, and the endpoint must reach it on TCP 1514 (agent events) and TCP 1515 (agent registration).
  2. Install the agent package with WAZUH_MANAGER set. According to Wazuh’s Linux agent guide, leaving the deployment variables out installs the agent without registering it.
  3. Start the service and check it. The agent shows as active in the Wazuh dashboard once it’s connected.

One rule saves hours later. Wazuh’s docs say the manager’s version must be the same as or newer than the agent’s, so don’t install a newer agent than your server.

 Paper-craft stairway with steps tagged SERVER, AGENT and ACTIVE
Server first, then the agent, then an active status in the dashboard.

How to install Wazuh agent on Windows

On Windows, download the MSI, run it from an administrator PowerShell with WAZUH_MANAGER set, then start the WazuhSvc service. The PDF uses this exact route on a Windows 11 endpoint.

msiexec.exe /i wazuh-agent-<version>.msi /q WAZUH_MANAGER="<MANAGER_IP>" WAZUH_AGENT_GROUP="default" WAZUH_AGENT_NAME="windows_agent"
NET START WazuhSvc

The PDF saves the MSI to the temp folder as wazuh-agent.msi, so adjust the path to wherever yours lives. Replace <version> with the current agent version. Wazuh’s Windows agent guide showed 4.14.9-1 when this page was written (2026-10-15).

VariableWhat it does
WAZUH_MANAGERServer IP address or hostname the agent connects to
WAZUH_AGENT_NAMEName shown in the dashboard. Defaults to the computer name
WAZUH_AGENT_GROUPAn existing agent group to join, for example default
/qRuns the installer silently with no wizard

Wazuh’s deployment variables page lists the rest, including WAZUH_PROTOCOL (TCP by default) and WAZUH_REGISTRATION_PASSWORD for servers that require one.

Two details are worth knowing. You need administrator rights, and the agent installs to C:\Program Files (x86)\ossec-agent. The PDF starts the service with NET START Wazuh, while Wazuh’s current docs use the service name, NET START WazuhSvc. Use the docs form. In PowerShell, Start-Service wazuhsvc does the same job.

Install Wazuh agent on Windows with the installer wizard

If you’d rather click than type, run the MSI without /q and accept the defaults. After the install, open the agent’s configuration window and enter the manager’s IP address, then start the service from the same window.

Wazuh agent download for Windows

Download the MSI from Wazuh’s package server: https://packages.wazuh.com/4.x/windows/wazuh-agent-<version>.msi. Use the exact file name from Wazuh’s docs, and download only from packages.wazuh.com or the Wazuh dashboard’s deployment screen. This free guide is the companion PDF, not the installer.

Paper-craft Windows PC with an MSI package box sliding toward it on a ribbon
The Wazuh agent installs on Windows from one MSI package.

How to install Wazuh agent on Ubuntu

On Ubuntu, add Wazuh’s APT repository, install wazuh-agent with WAZUH_MANAGER set, then enable and start the service. The PDF installs the Wazuh server on Ubuntu rather than the agent, so this section follows Wazuh’s Linux agent guide instead. Run these as root (sudo -i), the way the docs do:

apt-get install gnupg apt-transport-https curl
curl -s https://packages.wazuh.com/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.wazuh.com/4.x/apt/ stable main" | tee -a /etc/apt/sources.list.d/wazuh.list
apt-get update
WAZUH_MANAGER="<MANAGER_IP>" apt-get install wazuh-agent
systemctl daemon-reload
systemctl enable wazuh-agent
systemctl start wazuh-agent

The same steps work on Debian and, with the matching package manager commands from the docs, on other Linux distributions. Check the result with systemctl status wazuh-agent. If the service won’t start on your system, Wazuh’s docs say you may need /var/ossec/bin/wazuh-control start.

Before you leave, stop accidental upgrades. Wazuh recommends disabling the repository after the install, because an agent that updates past its manager breaks the version rule above:

sed -i "s/^deb /#deb/" /etc/apt/sources.list.d/wazuh.list
apt-get update

For Ubuntu command basics, keep our Linux Commands Cheat Sheet open.

Paper-craft Ubuntu laptop with an APT package box joined by an arrow
On Ubuntu, the Wazuh agent comes from the APT repository.

Install the Wazuh server first: all-in-one on Ubuntu

To install the Wazuh server, update Ubuntu, install curl, then run Wazuh’s installation assistant. The PDF’s first three steps do exactly that on Ubuntu 24.04 (the guide’s server is a VMware virtual machine):

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

The assistant installs the Wazuh server, indexer and dashboard on one machine. Here’s what each flag does, checked against the installer’s own help text (4.14):

FlagWhat it doesUse it when
-aAll-in-one: installs the server, indexer and dashboardAlways, for a single-machine install
-iIgnores the minimum hardware check (4 GB RAM, 2 CPU cores)Only in a small lab that falls short
-oOverwrites earlier components and erases existing configuration and dataOnly on a machine you’re happy to wipe

The PDF describes -i as an install option, but the installer’s help says it skips the hardware check. On a fresh machine that meets Wazuh’s recommended hardware (4 vCPU and 8 GiB of RAM for up to 25 agents), Wazuh’s quickstart uses plain -a. Don’t add -o unless you mean to start over.

When it finishes, the assistant prints the dashboard address, the admin username and a generated password. Browse to https://<SERVER_IP>. Your browser will warn about the certificate. Wazuh says that’s expected, because the default certificate isn’t issued by a trusted authority. Store the password in a password manager and never paste it into a document. To print it again later, run sudo tar -O -xvf wazuh-install-files.tar wazuh-install-files/wazuh-passwords.txt in the folder where you ran the installer.

For the full options, see Wazuh’s installation assistant guide.

Want to repeat this install until it’s routine? The workbook’s Wazuh installation practice labs cover single-node installs, multi-node clusters and troubleshooting installs, so you can break and rebuild a server safely.

Which ports does Wazuh use?

Wazuh agents talk to the server on TCP 1514 for events and TCP 1515 for registration. The dashboard uses 443, the indexer API uses 9200 and the server API uses 55000. According to Wazuh’s architecture documentation, these are the defaults:

ComponentPortProtocolPurpose
Wazuh server1514TCPAgent connection (events)
Wazuh server1515TCPAgent registration
Wazuh server1516TCPCluster daemon
Wazuh server55000TCPServer API
Wazuh indexer9200TCPIndexer API
Wazuh dashboard443TCPWeb interface

Wazuh also lists optional syslog ports and indexer cluster ports. Open 1514 and 1515 from every agent to the server first. If the agent installs but never connects, a blocked port is a common cause. Our Common Ports Cheat Sheet covers the other ports you’ll meet on the same network.

How to check that the Wazuh agent is connected

A connected agent shows as active in the Wazuh dashboard, and its service reports as running on the endpoint. The PDF checks the server and the agent in four short steps.

On the server, confirm the three services are running:

sudo systemctl status wazuh-manager wazuh-indexer wazuh-dashboard
curl -u admin:<password> -k https://localhost:9200

The second command asks the indexer for its status. A healthy answer is a short JSON block with the node name, the cluster name and a version number. The PDF’s output shows wazuh-indexer, wazuh-cluster and version 7.10.2, so expect a similar shape, not that exact number.

On the endpoint, confirm the agent service:

Get-Service wazuhsvc

On Ubuntu, systemctl status wazuh-agent does the same job.

In the dashboard, open Agents management, then Summary, and look for your agent with an active status. Menu names move between releases, so check yours.

Common Wazuh agent installation problems

Most failed installs come down to four things, and each one has a quick check.

  • The agent installed but isn’t registered. You left out WAZUH_MANAGER. Reinstall with the variable set.
  • Port 1514 or 1515 is blocked. Test from the endpoint to the server and open the port on the server’s firewall.
  • The agent is newer than the manager. Wazuh’s docs require the manager to be the same version or newer. Upgrade the server first.
  • The service won’t start. On Ubuntu, try /var/ossec/bin/wazuh-control start. On Windows, run the installer and the service commands as an administrator.

If a step fails and you want to read the details, add /l*v installer.log to the msiexec command on Windows. Wazuh’s deployment variables page lists it as the verbose install log option.

The Wazuh agent deployment chapter of the workbook walks through deploying agents on Linux, Windows and macOS, which is the fastest way to meet these failures in a safe lab first.

Go deeper

Getting one agent to show Active is step one. Catching an attack with it is the job.

The Wazuh SIEM Workbook: deploy agents, write your own detection rules and run real attack scenarios, with EVE-NG lab files included.

Get the Wazuh SIEM Workbook →

Where does this free Wazuh PDF stop?

This PDF shows one server and one Windows agent on a lab network. It doesn’t cover multi-node clusters, agent groups at scale, custom rules or what to do when the alerts start. The Wazuh SIEM Workbook picks up from there. Its chapters cover Wazuh installation and deployment (single-node install, step-by-step component installation, multi-node clusters, Docker and troubleshooting installs) and agent management, including deploying agents on Linux, Windows and macOS. Later chapters move on to decoders, rules, file integrity monitoring, active response and cloud monitoring. There’s a free 25-page sample before you decide.

Prefer containers to virtual machines? Our guide to a Wazuh SIEM home lab with Docker runs the same stack that way.

Once your lab runs, the Network Troubleshooting Commands PDF helps when an agent can’t reach the server.

 Paper-craft laptop tagged PDF with an arrow to a thick book tagged WORKBOOK
Read the install steps in the free PDF, then practise them in the workbook.

Frequently asked questions

How do I install the Wazuh agent on Windows?
To install the Wazuh agent on Windows, download the MSI from packages.wazuh.com, then run msiexec.exe /i wazuh-agent-.msi /q WAZUH_MANAGER="" from an administrator PowerShell. Start the service with NET START WazuhSvc. According to Wazuh's documentation, you need administrator rights, and the agent runs on Windows from XP up to Windows 11 and Windows Server 2022.
How do I install the Wazuh agent on Ubuntu/Linux?
To install the Wazuh agent on Ubuntu, import Wazuh's GPG key, add the APT repository at packages.wazuh.com/4.x/apt, then run WAZUH_MANAGER="" apt-get install wazuh-agent as root. Finish with systemctl daemon-reload, enable and start for wazuh-agent. According to Wazuh's Linux guide, leaving out the manager variable installs the agent without registering it.
How do I download the Wazuh agent for Windows?
Download the Wazuh agent for Windows from Wazuh's package server at packages.wazuh.com/4.x/windows, using the file wazuh-agent-.msi. Wazuh's Windows guide showed version 4.14.9-1 on 2026-10-15. The Wazuh dashboard's agent deployment screen can also build the install command for you. Download only from official Wazuh addresses, never from re-hosted copies.
How do I install the Wazuh server?
To install the Wazuh server on one machine, run Wazuh's installation assistant: curl -sO https://packages.wazuh.com/4.14/wazuh-install.sh && sudo bash ./wazuh-install.sh -a. The -a flag installs the server, indexer and dashboard together. Wazuh recommends 4 vCPU and 8 GiB of RAM for up to 25 agents. The assistant prints the dashboard address and admin password at the end.
Which port does Wazuh use?
Wazuh uses TCP 1514 for agent events and TCP 1515 for agent registration. According to Wazuh's architecture documentation, the server API uses TCP 55000, the indexer API uses TCP 9200 and the dashboard uses TCP 443. The server also uses TCP 1516 for its cluster daemon. These are defaults and can be changed.
How do I check that a Wazuh agent is connected?
Check the agent service on the endpoint (Get-Service wazuhsvc on Windows, systemctl status wazuh-agent on Ubuntu). Then open the Wazuh dashboard, go to Agents management and Summary, and look for your agent with an active status. If it's missing, check TCP ports 1514 and 1515 and the manager address first.
Check three things first: the manager address, TCP ports 1514 and 1515, and the versions. Wazuh's docs say an agent installed without WAZUH_MANAGER isn't registered, and the manager version must be the same as or newer than the agent's. On Ubuntu, /var/ossec/bin/wazuh-control start can launch a service that won't start.
Check three things first: the manager address, TCP ports 1514 and 1515, and the versions. Wazuh's docs say an agent installed without WAZUH_MANAGER isn't registered, and the manager version must be the same as or newer than the agent's. On Ubuntu, /var/ossec/bin/wazuh-control start can launch a service that won't start.

Reviewed by

CCDE/CCIE

How to cite this resource

SMEnode Labs (2026). Wazuh Agent Installation: Windows and Ubuntu Step-by-Step (Free PDF). SMEnode Labs. https://smenode-labs.com/free-pdf/cybersecurity/wazuh-agent-installation/

APA

SMEnode Labs. (2026). Wazuh Agent Installation: Windows and Ubuntu Step-by-Step (Free PDF). SMEnode Labs. https://smenode-labs.com/free-pdf/cybersecurity/wazuh-agent-installation/

BibTeX

@misc{smenodelabs2026,
  title = {Wazuh Agent Installation: Windows and Ubuntu Step-by-Step (Free PDF)},
  author = {{SMEnode Labs}},
  year = {2026},
  url = {https://smenode-labs.com/free-pdf/cybersecurity/wazuh-agent-installation/},
  note = {SMEnode Labs}
}