# Wazuh architecture: data flow, ports and choosing a deployment

> Roles of the Wazuh agent, server, indexer and dashboard, a port table for 1514, 1515, 9200 and 55000, and quickstart sizing for all-in-one up to 100 agents.

Published: 2026-10-18. Updated: 2026-11-12. Category: Deployment. Tags: Wazuh 4. URL: https://wazuh.blog/en/blog/wazuh-architecture/ Polish original: https://wazuh.blog/blog/wazuh-architecture/

Wazuh architecture consists of an agent and three central components: the Wazuh server, the Wazuh indexer and the Wazuh dashboard. Knowing which element receives, analyzes, indexes and presents the data helps you choose a deployment and narrow down where the flow can stop.

## Four roles in one flow

The agent runs on a monitored endpoint, such as a laptop, server, cloud instance or virtual machine. It collects events and continuously sends them to the Wazuh server, where they are analyzed for threats. The agent has prevention, detection and response functions. The documentation lists support for Linux, Windows, macOS, Solaris, AIX and HP-UX.
The Wazuh server receives events from agents, decodes them and matches rules using the analysis engine. Among other things, the server looks for known indicators of compromise, using decoders, rules and threat information. Besides analyzing data, it manages agents, including their configuration and remote upgrades. The documentation states that a single server can analyze data from hundreds or thousands of agents. This is not sizing for a specific workload, nor a performance guarantee.

On the server, a raw event becomes a rule result. The decoder extracts meaningful information from the log format, and the rule evaluates whether the alert conditions are met. The difference between alerts and archives is described in the [article on alerts and archives](/en/blog/wazuh-archives-vs-alerts/).

The Wazuh indexer stores and indexes the alerts generated by the server. It is a full-text search and analytics engine.
The Wazuh dashboard is the interface for visualization and analysis. It queries the Wazuh server API for the configuration and status of the server and agents. It reads the stored security data from the indexer. Besides analytical views, the dashboard covers, among other things, features related to threat hunting, compliance, vulnerabilities, FIM and configuration assessment. It is also used to manage Wazuh configuration and monitor its state.

## The flow from endpoint to view

The basic data path looks like this:

```text
Wazuh agent -> Wazuh server -> Wazuh indexer -> Wazuh dashboard
```

The agent connects to the agent connection service on the server. By default the service listens on TCP 1514, and the number can be changed. The Wazuh message protocol uses AES encryption by default, with 128-bit blocks and 256-bit keys, and Blowfish is optional. The server analyzes the events, and then Filebeat reads the Wazuh server output and sends alerts and event data to the indexer using TLS. The indexer listens on TCP 9200 by default. After indexing, the dashboard queries the indexer and presents the results.

Besides agents, the platform supports agentless monitoring. The documentation points to network devices such as firewalls, switches, routers and access points. They can actively send logs through Syslog and SSH. The general component description also mentions collecting configuration data using SSH or an API.

## Ports required by the components

You can change port numbers if your deployment requires it.

| Component | Port | Protocol | Purpose |
|---|---:|---|---|
| Wazuh server | 1514 | TCP, default | Agent connections |
| Wazuh server | 1514 | UDP, optional | Agent connections, service disabled by default |
| Wazuh server | 1515 | TCP | Agent enrollment service |
| Wazuh server | 1516 | TCP | Wazuh cluster daemon |
| Wazuh server | 514 | UDP, default | Syslog collector, disabled by default |
| Wazuh server | 514 | TCP, optional | Syslog collector, disabled by default |
| Wazuh server | 55000 | TCP | Wazuh server REST API |
| Wazuh indexer | 9200 | TCP | Wazuh indexer REST API |
| Wazuh indexer | 9300-9400 | TCP | Indexer cluster communication |
| Wazuh dashboard | 443 | TCP | Wazuh web interface |

The dashboard connects to the server API over TCP 55000. The documentation describes this communication as encrypted with SSL certificates and authenticated with a username and password. The dashboard communicates with the indexer REST API over secure HTTPS connections.

Agent enrollment is described in the [article on agent enrollment](/en/blog/wazuh-agent-enrollment/).

Some features require outbound connections from the central components. If your environment restricts outbound traffic, the documentation lists the following connections:

| Source | Destination | Port | Purpose |
|---|---|---|---|
| Wazuh server | cti.wazuh.com | 443 TCP | Vulnerability Detection feed updates and the Wazuh update check service |
| Wazuh server | packages.wazuh.com | 443 TCP | WPK packages for remote agent upgrades |
| All central components | packages.wazuh.com | 443 TCP | Installing and upgrading central components |

If the Wazuh server cannot reach `cti.wazuh.com`, Vulnerability Detection has no CVE data; the documentation then points to the offline vulnerability detection configuration. Wazuh CTI is a publicly available platform that collects and shares information about threats and vulnerabilities, currently focused on CVEs, severity ratings, exploitability and mitigation. It is integrated with the Vulnerability Detection module.

## All-in-one, separate nodes or a cluster

In all-in-one, the server, indexer and dashboard run on a single host. The documentation points to this variant for labs and small environments with a limited number of monitored endpoints.

The choice should not rest on the number of agents alone. The quickstart ties sizing to the amount of data to analyze and the number of alerts that will be stored and indexed.

In the single-node model, each of the three components runs on a separate server. The documentation recommends it for medium environments that need more performance than all-in-one.

In multi-node, a typical layout has one dashboard instance and multiple Wazuh server and Wazuh indexer instances, deployed in clusters respectively. The documentation recommends this model for large environments with a high event rate, or when fault tolerance and high availability are required.

A Wazuh server cluster consists of multiple server nodes in a distributed environment. The documentation attributes horizontal scaling, high availability and better performance to it. With many monitored endpoints, you can combine the cluster with a network load balancer that distributes agent connections across the nodes. The cluster documentation lists node types, data synchronization, agent connections and load balancers as separate topics. Cluster operations are described in [Wazuh cluster in practice](/en/blog/wazuh-cluster-operations/).

The quickstart describes clusters of both components as available for multi-node deployments and ties them to high availability and load balancing.

## Reference point for all-in-one

The quickstart describes installing the central components on a single host using the installation assistant. In this variant the configuration is usually enough to monitor up to 100 endpoints and keep 90 days of searchable indexed alerts. The table applies only to the quickstart deployment, not to a cluster or distributed sizing.

| Agents | CPU | RAM | Storage for 90 days |
|---:|---:|---:|---:|
| 1-25 | 4 vCPU | 8 GiB | 50 GB |
| 26-50 | 8 vCPU | 8 GiB | 100 GB |
| 51-100 | 8 vCPU | 8 GiB | 200 GB |

For larger environments, the quickstart recommends a distributed deployment, with a multi-node cluster for the server and indexer that provides high availability and load balancing.

The central components require a 64-bit Intel, AMD or ARM processor with Linux (x86_64/AMD64 or AARCH64/ARM64). Wazuh recommends the following systems:

| Family | Versions |
|---|---|
| Amazon Linux | 2, 2023 |
| CentOS Stream | 10 |
| Red Hat Enterprise Linux | 7, 8, 9, 10 |
| Ubuntu | 16.04, 18.04, 20.04, 22.04, 24.04 |

The installation assistant performs the all-in-one install. The command from the quickstart:

```bash
curl -sO https://packages.wazuh.com/4.14/wazuh-install.sh && sudo bash ./wazuh-install.sh -a
```

When it finishes, the assistant prints the access credentials for the web interface and a message about a successful installation. Installing Wazuh 5 is covered in a separate article, [Wazuh 5: installation, requirements and first agent](/en/blog/wazuh-5-installation/).

## Where to start when the flow stops

The flow consists of four connections: agent to server (TCP 1514), Filebeat to indexer (TCP 9200), dashboard to indexer (HTTPS) and dashboard to server API (TCP 55000). Vulnerability Detection data additionally depends on `cti.wazuh.com` on TCP 443. The documentation gives no diagnostic commands or latency thresholds, so an open port alone does not prove the data is processed correctly.

## What the documentation does not specify

The documentation does not define the master and worker roles in a Wazuh server cluster in detail, nor master election, the number of nodes or the rules for switching them. It lists data synchronization and node types as separate topics, but does not give their procedures. The quickstart gives no sizing for a distributed deployment and no recommended number of indexer nodes. It also sets no thresholds that would let you choose between deployment models automatically.

## Sources

- https://documentation.wazuh.com/current/getting-started/architecture.html
- https://documentation.wazuh.com/current/getting-started/components/index.html
- https://documentation.wazuh.com/current/quickstart.html
- https://documentation.wazuh.com/current/user-manual/wazuh-server-cluster/index.html
