Wazuh agent deployment at scale

Wazuh agent deployment at scale is a planning and automation problem as much as an install task. This page covers enrollment, agent groups, centralized configuration and verification across mixed fleets.

On this page

Why Wazuh agent deployment at scale is harder than installing one agent

Putting a Wazuh agent on one server is a package install. Putting agents on a mixed fleet of Linux, Windows and macOS endpoints is about enrollment, agent grouping and configuration control, and those three decisions determine whether the fleet reports consistently. Teams usually reach this topic once the Wazuh server and indexer are running and the dashboard is up, but before the monitoring coverage means much. At that point an empty or partial agent list is the first visible gap, and it is also the point where a rollout can quietly go wrong if enrollment and group membership are improvised machine by machine.

The difficulty comes from four sources. Endpoint diversity means each operating system needs its own install path, service behavior, permissions and log sources, and macOS and Windows hosts often sit outside the patterns a Linux-only team is used to. Machine ownership is split across application, desktop, infrastructure and cloud teams, so the people who can approve an install are not the people who run the endpoint. Change control matters because agent configuration is pushed centrally through the server, which means one edit to a shared group can reach many hosts at once. Version alignment matters too: agents and the Wazuh server should stay on compatible versions within the 4.14 line, and the patch cadence is frequent enough that a fleet can drift within months. Confirm the compatibility rules for your exact agent and server versions in the release notes before you start.

Self-hosted Wazuh has no license fee, so the cost of a large rollout sits in staff time, change approvals, test endpoints and the infrastructure that absorbs new agent traffic. Ask any partner for a quote that separates the one-time work of building groups, templates and automation from the recurring work of onboarding new hosts, handling upgrades and reviewing configuration changes. Decide early who approves a change to a shared agent group and how a rollout is paused if an endpoint class misbehaves, because those answers shape the effort more than the install itself.

Which Wazuh components an agent rollout touches

A Wazuh agent rollout touches more than the endpoints. Each component plays a different role in enrollment, configuration, upgrades and where alerts end up, so plan the server, indexer and dashboard alongside the agent packages.

Wazuh agent on endpoints

The agent is installed on each Linux, Windows and macOS endpoint and collects data such as logs, software inventory and file changes, then forwards it to the Wazuh server. During rollout it is the only component installed on endpoints, so package availability, network reachability to the server and operating system coverage are the first things to check. The agent does not analyze events or store alerts itself. Confirm supported operating system versions against the Wazuh documentation before building your package set.

Components docs

Wazuh server

The Wazuh server receives agent data and analyzes it with decoders and rules. It also manages agent configuration and upgrades remotely, which makes it the control point for most rollout changes. Enrollment and group assignment should be verified here, since agents pick up configuration from the server. The server does not display alerts to users; that role belongs to the dashboard. Confirm the server version and agent version compatibility before starting an upgrade wave.

Server cluster for horizontal scaling

The Wazuh server can run as a cluster, which spreads agent connections and analysis across nodes as the fleet grows. Decide early whether the rollout needs a cluster, because adding nodes later changes how agents are pointed at the server and how configuration is distributed. A cluster does not replace the indexer or remove the need for backup of stored data. Ask your team to size the fleet and confirm the cluster design with Wazuh documentation before the first enrollment wave.

Wazuh indexer stores alerts

The Wazuh indexer is a full-text search and analytics engine that stores the alerts produced by the server. During a rollout, alert volume rises as agents come online, so disk and node capacity should be checked before the fleet grows. The indexer does not collect data from endpoints or decide which rules fire. Watch storage use and indexing health during each enrollment wave, and confirm retention settings before alert data accumulates.

Wazuh dashboard for agent status

The Wazuh dashboard is the web interface where administrators check whether agents are connected and which agent groups they belong to. It is the usual place to confirm that each enrollment wave worked and that group-based configuration reached the right endpoints. The dashboard does not install agents or change their configuration directly. Build a standard set of status checks for each wave, such as connected count, group membership and version, so results can be compared across batches.

Ansible and Puppet deployment tooling

Ansible and Puppet are documented Wazuh deployment options, so agent packages, enrollment settings and configuration can be pushed through the configuration management tools your team already runs. Tooling sets the pace of the rollout and how repeatable each wave is. It does not replace the server, indexer or dashboard, and it still needs the same enrollment and group decisions. Confirm which Wazuh documentation version your playbooks or manifests target before reusing them across environments.

Deployment options

Which enrollment and configuration approach fits your fleet

This table compares four ways to install and enroll Wazuh agents, plus how to design agent groups, and shows the operational cost of each. Read each row against your fleet's size, uniformity and ownership, then check the current Ansible and Puppet capabilities in the Wazuh deployment documentation before you commit.

ApproachWhen it fitsOperational cost
Manual installation per hostSmall or short-lived fleets, a handful of hosts with different owners, or pilot testing before automationEffort grows with every host; configuration drift is likely and each change must be repeated by hand
Prepared image or template baked before enrollmentCloud fleets built from golden images, autoscaling groups, and uniform Linux or Windows buildsImage rebuild cycles for every agent version change; enrollment must happen at first boot, so image pipeline skills are required
Ansible-driven installation and enrollmentMixed Linux and Windows estates, existing Ansible use, and teams that want repeatable, reviewable changePlaybook and inventory maintenance, testing against each OS version, and in-house Ansible skills; check module coverage in the Wazuh documentation
Puppet-driven installation and enrollmentOrganizations already running Puppet with managed node classes and established change controlModule maintenance and version pinning, plus in-house Puppet skills; confirm current module capabilities in the Wazuh documentation before choosing
Agent group design (one group per role or platform)Any fleet above a few hosts, where web servers, databases, domain controllers and workstations need different settingsUpfront design time and naming rules; once set, central configuration stays manageable and changes affect only the intended group
Mixed ownership (IT, cloud teams, business units)Hosts managed by several teams or third parties where one enrollment path cannot be enforcedCoordination overhead for enrollment keys and group membership; ask who owns each group and who approves changes
Existing configuration managementEstates already governed by Ansible, Puppet or similar tooling with tested change pipelinesLowest added cost when reusing existing roles; the Wazuh role or module must be added to the same review and test process

How to sequence a Wazuh agent deployment at scale

This sequence moves a Wazuh agent rollout from a verified server side to a fleet-wide, group-managed deployment, with a checkpoint at each stage so that every wave can be confirmed or rolled back before the next one starts.

  1. Confirm server cluster and indexer health

    Before any agent is installed, the platform engineering team checks that the Wazuh indexer, the Wazuh server (or each node in the server cluster) and the Wazuh dashboard are running and reachable, and that the server components are on the same 4.14 minor line that the agents will use. Confirm the version on each component and record it in the change ticket, since agents should be matched to the server line they connect to. The step is done when every server node reports healthy in its own status checks, the indexer cluster reports a healthy state, and the dashboard shows the server as connected. Do not proceed if any node is out of step on version or health.

  2. Define the agent group model

    Work with the security and infrastructure owners to define agent groups by role (for example, web tier, database, domain controllers, developer workstations) and by platform (Linux, Windows, macOS), with each group owning one centralized configuration. Keep the group list short enough that every endpoint fits exactly one group by default, and document which group a new host joins if its role is unknown. The step is done when the group list is written down, each planned group has a named owner, and the dashboard shows the empty groups created on the server.

  3. Prepare enrollment credentials and automation secrets

    The team selects the enrollment method (manual registration, agent enrollment with a password, or certificate-based enrollment where the chosen version supports it) and confirms that the method matches the security review. Enrollment passwords and API credentials are stored in the organization's secrets manager and injected at run time, never written as plain text into Ansible or Puppet code, golden images or shared scripts. Confirm which group each credential can assign so that a leaked value cannot place hosts into a privileged group. The step is done when a test enrollment from a non-production host succeeds with credentials pulled from the secrets store and the access log shows no plain-text secret in the repository or image build.

  4. Pilot one host per operating system

    Install the agent on a single representative host for each operating system in scope (Linux, Windows and macOS, plus any others the estate runs), using the same package and automation path that the full rollout will use. Each pilot host should be placed in the group that matches its role, so that the pilot also tests group assignment. Watch the agent status in the dashboard and the agent logs on the host for enrollment errors, certificate problems or blocked ports. The step is done when each pilot agent shows as active in the dashboard, carries the expected group name, and has reported its inventory data to the server.

  5. Apply and verify the pilot group configuration

    Edit the centralized configuration for the pilot group on the server, using the shared configuration file for that group, and push it to the pilot agents. Confirm that the agents pick up the new configuration version and that the expected settings take effect, such as the monitored log files or the file integrity monitoring paths. Keep a record of the configuration version applied before and after the change so the rollback target is known. The step is done when the dashboard shows the pilot agents reporting the new configuration version, a test event from the pilot host appears in the alert data, and no pilot agent reports a configuration error.

  6. Expand in waves by group and environment

    Roll the agent to the remaining hosts in small waves, one agent group and one environment at a time, starting with non-production and moving to production only after the earlier wave is confirmed. Each wave is a bounded batch with a named owner, a defined start and stop point, and a documented rollback path, which for agents means removing the package or moving the host back to its previous group and configuration. Pause between waves to check for failed enrollments, unexpected alert volume and host performance complaints. The step is done when each wave meets its own acceptance check before the next wave is started, and the rollback steps have been written down for every wave.

  7. Confirm each wave in the dashboard

    After each wave, check the dashboard against the planned inventory. Compare the number of agents reporting as active with the number of hosts in the wave, confirm that each host appears in its expected group, and confirm that every agent in a group reports the same configuration version. Investigate any host that is missing, disconnected or in the wrong group before the next wave starts, and record the result in the change log. The step is done when the active agent count, group membership and configuration version match the plan for every wave, and the final inventory has been exported and filed as the baseline for ongoing monitoring.

How enrollment and centralized configuration flow from server to endpoints

The flow starts on the automation host, which runs Ansible or Puppet to install agents on endpoints in the endpoint network. Each agent then enrolls with the Wazuh server across the trust boundary using enrollment credentials that the automation supplies. The server assigns the agent to a group and pushes that group's configuration back, while agent event data flows to the Wazuh indexer and the dashboard reads status from it. Check that enrollment credentials are only available to the automation role and that each agent appears in the expected group.

Automation installs agents, which enroll, receive group configuration and send data back.

How Linux, Windows and macOS rollouts differ

Linux is usually the most straightforward group to roll out because agents install from package repositories and run as a system service. Plan for an installation performed by an administrator with elevated rights, and expect log locations and collection behavior to vary between distribution families. Build one package and configuration set per distribution family so your automation does not guess at paths.

  • Packaging: Native packages come from the Wazuh repository for each distribution family, and you can install them through your package manager or configuration management tooling.
  • Service: The agent runs as a system daemon managed by the init system, so restarts and upgrades should go through the service manager.
  • Privilege: Installation requires root or an equivalent elevated account. Confirm that your hardening baseline allows the privileges the agent needs to read logs and collect inventory.
  • Paths and log sources: Authentication logs, the systemd journal and audit data are common sources, and their locations differ between distributions.
  • Enrollment: Set the enrollment method for your version and assign agent groups at registration time so new hosts receive the right configuration immediately.

Check the Linux installation section of the official documentation for your exact distribution and agent version before you write package automation.

How to secure enrollment and agent configuration during rollout

Agent rollout is the point where a Wazuh deployment is most exposed, because every new endpoint must trust the server and every group change alters what thousands of agents collect. The controls below connect enrollment credentials, automation secrets, server-side permissions, network reachability, agent identity and change history. Confirm exact settings against the current Wazuh hardening guidance before you finalize the rollout plan.

Scope and rotate enrollment credentials

Enrollment credentials let a new endpoint register with the Wazuh server, so they should be limited to the groups and time window the rollout needs. Use separate credentials for each wave or environment where the tooling allows it, and plan a rotation step once a wave completes. Check how your version handles password-protected enrollment and whether existing agents keep working after a credential change. Test rotation in a staging group first.

Wazuh user administration

Keep secrets out of code and images

Enrollment passwords written into Ansible playbooks, Puppet manifests, shell scripts or golden images end up in version control and in every copy of the image. Store them in your secrets manager or the automation tool's vault, and inject them at run time. Review repositories and image build logs for leaked values, and confirm that cloned VM templates do not carry agent keys from the template host.

Restrict who changes group configuration

Agent groups define the configuration pushed to every member, so a change to a shared group affects the whole fleet at once. Limit server and API access for group management to a small set of administrators, and separate those rights from read-only analyst access. Confirm how your role model maps to these permissions, and require a peer review step for changes to shared groups before they are applied.

Limit network paths to enrollment and agent ports

Enrollment and agent-to-server communication should be reachable only from the networks that need them. Restrict the source ranges allowed to reach the enrollment service and the agent communication port on the server, and block the same ports from other segments. Confirm the exact port roles in the current documentation for your version, and verify the rules with a test from an unapproved network segment.

Verify agent identity after enrollment

A successful enrollment only proves that a host presented valid credentials, so check that the agent name, IP address and group match the asset record before trusting its data. Compare the agent inventory with your configuration management database and investigate unknown or duplicate names. Confirm how the server handles agent keys, and plan how to revoke or replace an agent whose identity is in doubt.

Record group changes as an audit trail

Auditors and incident responders need to know who changed an agent group, what changed and when. Keep Wazuh server and API logs, configuration repository history and automation run records, and link each group change to an approved change ticket. Confirm where each log is stored, how long it is retained and whether it is protected from edits by the administrators it records.

What drives the effort and cost of a large agent rollout

This table lists the factors that change how much effort a Wazuh agent rollout takes and where that effort lands, with the practices that keep each one under control. Read it as a checklist for scoping: each driver should be quantified in the written scope before a partner or internal team commits to a timeline.

Driver or cost componentHow it raises effort or costWhat keeps it down
Number and diversity of endpointsEach additional host type adds enrollment paths, package sources and validation runs before rollout can proceed.Group endpoints into a small number of role-based profiles and roll out by profile rather than host by host.
Operating systems and legacy platformsLinux, Windows and macOS each need their own packaging, service behavior and testing; older or uncommon builds may need special handling or be out of reach of the current agent.Confirm agent support for every OS version in the inventory early, then retire or isolate legacy hosts before the main waves.
Ownership of hosts across teamsSeveral owners mean separate change approvals, maintenance windows and sign-off, which often costs more coordination time than the technical work.Agree one rollout owner, a shared host inventory and a standard change template with each owning team before the first wave.
Configuration management maturityWithout existing Ansible or Puppet code, the team builds install, enrollment and configuration logic from scratch and maintains it alongside the rollout.Reuse existing automation where it already runs, and keep the Wazuh roles or modules small and documented.
Network segmentation and change windowsRestricted segments need firewall requests for agent-to-server traffic, and narrow change windows stretch the calendar more than the effort.Submit connectivity requests early, batch hosts that share a segment, and schedule pilot waves inside the first available window.
Number of distinct agent groupsEach group needs its own shared configuration, testing and drift checks, so more groups mean more configurations to review after every change.Limit groups to real differences in role or regulatory scope, and inherit common settings from a shared base group.
Custom log collection per roleRole-specific log sources, file integrity paths and command outputs add configuration variants that must be tested on each target platform.Standardize a core set of collected sources and add role-specific entries only when a named use case requires them.
Staff time for automationWriting and reviewing playbooks or modules, and building test environments, is usually the largest one-time cost in a large rollout.Ask for the automation scope, the test environment and the review approach in the written plan so the effort is visible up front.
Testing per operating systemEach OS version and agent group combination needs a test run that confirms enrollment, configuration and reporting before production waves.Test a representative host per OS and version, then expand to the rest of the fleet only after the pilot results are reviewed.
Ongoing maintenance of playbooks or modulesAgent upgrades, new OS releases and Wazuh patch releases require updates to automation and retesting, which recurs for as long as the fleet runs.Pin versions, track the Wazuh release notes for each patch line, and schedule regular review of automation code.

How to confirm every endpoint enrolled, received its group and fails safely

Verification starts with a reconciled inventory, not with the dashboard. Export the list of hosts that the wave was meant to cover from your CMDB or cloud inventory, then compare it against the agents the Wazuh server reports as enrolled. Every mismatch falls into one of three buckets: a host that is missing from the server, an agent registered to the server that no longer maps to a live host, or a host that enrolled into the wrong group. Keep the reconciliation as a repeatable script or report so you can run it after each wave, not only at the end. For each agent in the intended group, check that the configuration the server pushed matches the expected version, using the agent status and group sync fields in the Wazuh API or dashboard. Confirm the exact field names and commands for your version in the official Wazuh documentation before you write any automation against them.

Next, prove that agents are reporting events, not only holding a valid registration. Pick a sample from each operating system family and generate a known, harmless event, such as a failed local login or a test file change under a monitored path, then search for it in the dashboard. Failure modes differ by platform, so sample Linux, Windows and macOS separately. Common patterns to triage include agents that never enroll (usually network reachability to the manager, enrollment credentials, or the agent package version), agents stuck on an old configuration (usually a group assignment that did not sync, or an agent that has not reconnected since the change), and duplicate or stale entries after reimaging (a rebuilt host that re-enrolls under a new name while the old agent ID still shows as disconnected). Resolve stale entries deliberately, by removing or retiring the old agent record, so alert history stays attributable to the correct host.

Finally, test that a wave can be stopped or reverted without harming hosts. Before the first production wave, rehearse on a small pilot group: stop the rollout, roll the group back to its previous configuration, and confirm that agents return to the prior state and that the host keeps working. Agree in advance who can halt a wave, which change record authorizes the revert, and what a host owner needs to see to accept the rollback. Treat any agent that cannot be reverted cleanly as a defect in the plan, not an acceptable outcome. Ask your deployment vendor or internal team to show this rehearsal in writing before go-live, and record the results alongside the reconciliation output as evidence for change management.

What to monitor, back up, upgrade and document after rollout

A rollout is not finished when the last endpoint reports in. The four practices below keep the fleet visible, recoverable, current and understandable to the people who inherit it. Each one depends on the group model and enrollment procedure set up during deployment, so decide those first and keep them under change control.

Watch agent connection status

Track which agents are active, disconnected or never-connected in the Wazuh dashboard and compare the count against your asset inventory. A host that has silently stopped reporting is a monitoring gap, not a quiet host. Review disconnected agents on a schedule you set, separate decommissioned machines from failed installs, and confirm that the alert for a lost agent reaches a named owner. Ask your team to define what counts as stale before the first review, so the threshold is agreed rather than improvised during an incident.

Wazuh components

Back up group and configuration definitions

Agent groups, shared configuration files and the enrollment settings live on the Wazuh server, and the same definitions usually also exist in your Ansible or Puppet code. Back up both copies and confirm they match. A server rebuild that restores the server state but not the automation, or the reverse, leaves the fleet with inconsistent settings. Store the backups and automation in version control with restricted write access, and test a restore on a non-production server before you need one.

Plan agent upgrades with server upgrades

Upgrade order matters on the 4.14 line because agents and server must stay compatible. Read the release notes before each change, plan the server and indexer upgrade first, then move agents group by group, starting with a pilot group that represents your Linux, Windows and macOS builds. Record which agent version each group runs so you can answer what is deployed where. Patch releases arrive several times a year, so set a recurring review of the release notes rather than reacting to each one.

Wazuh release notes

Document the group model and owners

Write down the group model, the enrollment procedure, the named owner of each group and the change log for every configuration change. Include which groups receive which settings, who approves a change, and how a new host joins a group. Without this record, the next administrator cannot tell whether a group exists for a reason or is leftover. Keep the document next to the automation code, review it at each upgrade, and make the change log the only route for altering shared configuration.

Questions teams ask before rolling out Wazuh agents at scale

What does a Wazuh agent rollout cost if the software is free?

The software itself has no license fee, so the cost is the labor and infrastructure around it. The self-hosted Wazuh software is open source with no license fee, according to the vendor's Wazuh Cloud page. The main cost components are staff time for planning, group design and enrollment, the test lab and pilot hosts, the automation build in Ansible or Puppet, and the Wazuh server and indexer capacity that receives agent data. Most of this is one-time work. Ongoing costs recur through agent and server upgrades, group changes as the fleet changes, and staff time to review alerts. When you request a quote, ask for each of these items as a separate line, with who performs the work and what is handed over at the end.

How long does a Wazuh agent rollout take, and what sets the pace?

Duration depends on fleet size, the number of operating systems in use, change windows and what the pilot shows, so a written scope should state the timeline for your environment. Fleet size and diversity drive the number of groups, packages and test cases. Change windows set how often hosts can be touched, and many organizations roll out in waves that follow those windows. Pilot results are the largest unknown: agent conflicts with existing security tools, unusual Windows or macOS configurations and firewall rules often surface there and extend the plan. Ask the partner to name the number of pilot hosts, the acceptance criteria for moving to production and the number of waves they expect.

What does our team need to provide before an agent rollout starts?

The work depends on access and approvals more than on the Wazuh software itself. You will need an inventory of endpoints grouped by operating system, role and owner, along with access to hosts or golden images where agents are installed. Change approval must cover the agent install, configuration pushes and any service restarts, and your change board should know the rollout schedule before the first wave. You also need a named owner for agent groups who decides which hosts receive which configuration and who approves changes to that mapping. Without that owner, group membership drifts and the centralized configuration stops matching the fleet.

Can our internal team roll out Wazuh agents without a partner?

Yes, an internal team can do it if it has configuration management skills and enough time for testing. The core tasks are installing agents, enrolling them with the Wazuh server, assigning agent groups and managing centralized configuration across Linux, Windows and macOS. Teams that already run Ansible or Puppet can usually reuse their existing patterns for package installs and service management. The risk is time: pilot testing, exception handling for unusual hosts and documentation take sustained effort, and rollouts that slip often do so because the same engineers are also running production work. Be honest with yourself about how many hours per week you can commit before deciding.

Do we need Ansible or Puppet to deploy Wazuh agents at scale?

No, neither tool is required, but either one removes many repetitive manual steps. Wazuh documents Ansible and Puppet among its deployment options, and both can install agents, set enrollment parameters and keep configuration consistent across a fleet. Without a configuration management tool, deployment is possible through packages, scripts or endpoint management software, but every host then needs its own record of what was applied. If you already run one of these tools, use it so agent state lives in version control. If you run neither, weigh the cost of learning a tool against the number of hosts and how often they change.

How should we choose a partner for a Wazuh agent rollout?

Choose a partner that will commit to a written scope before any work starts, and that hands over the code and documentation at the end. Ask for a scope that lists the operating systems, host counts, groups, automation tooling and acceptance criteria. Ask for a pilot plan that names the hosts, the tests and the decision rule for moving to production. Ask who will own the automation code and documentation after go-live and confirm in writing that your team receives the playbooks or manifests, the group design, the test records and the runbook. DeployOpen plans and implements Wazuh inside the client's own infrastructure and delivers its work as fixed-scope engagements agreed in writing, so the scope and handover terms are the first items to compare across proposals.

How DeployOpen scopes, builds and hands over a Wazuh agent rollout

DeployOpen plans, implements and documents Wazuh agent rollouts inside your own infrastructure, from the first enrollment test to a fleet managed through agent groups and centralized configuration. Engagements are fixed-scope, so the scope, deliverables and timeline are agreed in writing before any agent reaches a production endpoint.

How we scope

  • Inventory operating systems, versions and endpoint counts across Linux, Windows and macOS before choosing a rollout method.
  • Confirm network paths from endpoints to the Wazuh server, including any segments without internet access.
  • Agree which agent groups, configuration profiles and automation tools (Ansible or Puppet) are in the written scope.

How we build

  • Build and test enrollment on representative hosts from each operating system before wider deployment begins.
  • Define agent groups and shared configuration, then validate changes on a pilot group before fleet-wide release.
  • Write Ansible or Puppet automation for installation, enrollment and configuration, and test it against non-production hosts.

How we hand over

  • Deliver the written runbook covering enrollment steps, group membership rules and configuration change procedures.
  • Provide a record of agent versions, group assignments and any hosts that failed to enroll, with the reason for each.
  • Walk your platform and security teams through the automation code so they can run future rollouts without us.

How we support

  • Engagements are fixed-scope, and ongoing support, upgrades and continuous testing are available as retainers.
  • Retainers can cover agent version upgrades on the 4.14 line as Wazuh publishes patch releases.
  • Confirm with DeployOpen what support covers after handover, including response expectations, before signing.

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.