What a Wazuh cluster synchronizes and what it does not

The Wazuh master pushes some content to workers automatically and leaves other manager settings for you to copy and verify. This page explains the split so you can avoid drift and protect local edits.

On this page

Which Wazuh cluster settings sync automatically and which you must manage

The master distributes some content to workers, but not every manager setting follows it. A team running more than one Wazuh server node often discovers that a rule, decoder, list or configuration file differs between nodes because the cluster mechanism covers only a defined set of content. Anything outside that set stays on the node where someone edited it. The exact synchronized set depends on the Wazuh version in use, and the supplied facts do not list it, so confirm the list against the cluster documentation for your release before you plan changes. The master and worker roles, and why there is one master, are covered in the sibling topic on master and worker nodes.

You need this knowledge in three situations. The first is when you add a worker, because a new node must receive the same content as the others before it handles agent traffic. The second is when engineers edit detection content on different nodes, which is common when several teams own rules or when an emergency fix is applied directly on one server. The third is audit evidence: if an assessor asks how you show that every node enforces the same detection logic, you need a documented answer rather than a comparison of files pulled from each server by hand.

Plan to manage the settings that do not sync. Before go-live, produce an inventory of every file and setting that is node-local, including the manager configuration in ossec.conf, certificates, and any service or system settings tuned per host. Ask the implementer or your own team to record which node owns each item and who approves changes to it. Then decide where the authoritative copy lives, usually a Git repository, and make every change flow through it. Run a comparison of configuration and content across all nodes after each change window and after each new worker joins. Ask your vendor or implementation partner to confirm, in writing, which items the cluster synchronizes for your version, so the change procedure and the audit narrative match what the system actually does.

How the master pushes content to worker nodes

The diagram starts at the master node, which pushes shared content to the worker nodes over the cluster channel. Solid arrows show automated flows: content sync, remote agent configuration, agent events flowing into workers, and alerts stored in the indexer and shown in the dashboard. Dotted arrows show operator actions. Manager settings that the cluster does not replicate must be edited on each node, so check every worker after a change. Confirm the sync scope against the cluster documentation before you finalize your change process.

Solid arrows are automated flows; dotted arrows are operator actions.

Content the master distributes versus settings copied by hand

The master node distributes shared analysis content to the workers so that every node in the cluster evaluates events the same way. In the cluster documentation, this category covers custom decoders, custom rules, CDB lists used by rule lookups, and the files that belong to agent groups. An edit made on the master reaches the workers through the cluster synchronization process, so the change should be made once, on the master, and then verified on the workers.

  • Custom decoders and rules: Files under the custom content directories on the master are synchronized, so a rule that is tested on one node should behave the same on every worker after the next sync cycle.
  • CDB lists: Lookup lists referenced by rules are distributed with the rule content, so a list edited on a worker by hand is a drift risk.
  • Agent group files: Centralized agent configuration stored per group is managed from the master, and workers serve it to enrolled agents.
  • Synchronization timing: Confirm the sync interval and the behavior during a node outage in the cluster documentation for your version before planning a change window.

Confirm the exact list of synchronized paths for your release against the Wazuh cluster documentation, and check a worker after a test change to verify that the file arrived intact.

Which configuration to sync, copy or template, and when each approach fits

This table compares three ways to keep node configuration consistent across a Wazuh cluster: relying on master-to-worker synchronization, copying files by hand with change tracking, and templating configuration with Ansible or Puppet. Read each row against your own change volume and team skills, and note that no single approach covers every file on every node.

ApproachWhat it coversRisk of driftOperational effortWhen it fits
Master-to-worker synchronizationContent the master distributes to workers through the cluster, such as shared rules, decoders and agent group filesLow for synchronized content, but settings outside the sync scope stay unmanagedLow day to day, with checks needed after each change to confirm the sync completedShared detection content and agent group configuration that should match on every worker
Manual copy with change trackingNode-local files and manager settings that the cluster does not synchronize, tracked in version controlModerate, because drift appears whenever someone edits a node without updating the recordModerate and recurring, since each change must be applied and verified on each nodeSmall clusters with few local settings and a team that reviews every change before it lands
Templating with Ansible or PuppetFull node configuration rendered from variables, including settings that sync does not carryLow when the template is the only edit path and runs are reviewedHigher up front to build roles or modules, then lower per changeLarger or regulated clusters that need repeatable builds, review history and evidence of consistent configuration
Local edits on workersAd hoc changes made directly on a worker during an incident or testHigh, and synchronization may overwrite or conflict with the editLow to make the change, high to find and reconcile it laterRarely appropriate; treat as a temporary measure that must be recorded and reverted or codified

Why workers lose local edits and how that happens

Local edits on a worker node can be lost because the master node owns the shared content and pushes it out to workers, so a change made by hand on a worker may be overwritten the next time the cluster distributes that file. The other failure is quieter: the edit survives, but the worker now differs from the master and from its peers, and nobody notices until an agent group behaves differently on one node. In a Wazuh cluster, the files that matter most here are the ruleset and decoders, the shared agent configuration, and the group files. Each file type can follow its own synchronization path, so the overwrite behavior is not uniform across everything a worker holds.

This is the core trade-off. If the cluster owns content, every node runs the same rules and configuration, troubleshooting is predictable, and a rebuilt worker converges on the master's state. The cost is that local teams lose the ability to tune a single node quickly, and any fix made on a worker has to be carried back to the master or it will eventually be replaced. If local teams are allowed to edit workers, you gain speed for one-off changes but accept divergence. A decision you must make before any production change is which content is cluster-owned, which is intentionally local, and who approves a change that crosses that line.

Confirm the precise overwrite behavior for each file type in the Wazuh documentation for the exact version you run, then reproduce it in a lab cluster by editing a worker file, triggering a master-driven sync, and checking whether the edit persists, is replaced, or leaves the node out of step. Record the result as a change control rule before anyone edits production workers. Start with the Wazuh documentation for the current release to check which version your lab and production clusters are running.

Setting up change control so workers stay consistent

This sequence replaces ad hoc edits with a controlled process. You record what each node holds, assign one owner to each content type, and route every later change through a tested, reviewed and reversible path. The result is a change record and a repeatable consistency check that you run after every change.

  1. Inventory content on master and workers

    Before changing anything, inventory the content on the master and on every worker. List the custom rules, decoders, CDB lists, shared agent group files and the main configuration file, and note the path and owner of each. Compare checksums of each file across nodes with md5sum or sha256sum, for example for the files under /var/ossec/etc/rules and /var/ossec/etc/decoders. This step is done when you have a per-node table showing which files match and which differ. Every difference is drift that you must explain before you continue.

  2. Record cluster version and node roles

    Record the Wazuh version on every node, the role of each node, and the cluster membership. The current release line is 4.14, so confirm that all nodes are on the same patch level. From the master, run /var/ossec/bin/cluster_control -l to list the nodes, and confirm the command options for your version with /var/ossec/bin/cluster_control -h. Note which other components run on each host, including the indexer and dashboard, because a change to one component can affect the others. This step is done when the node list matches your inventory.

  3. Decide the source of truth

    Assign one owner and one authoritative location for each content type. Content the cluster distributes, such as custom rules and decoders, should be edited only on the master. Node-specific settings, such as node identity and local addresses, belong in a register that names each node and its values. Write these decisions into the change record. Confirm which paths the cluster synchronizes for your version in the Wazuh documentation, because the list can change between releases. This step is done when every content type has exactly one named owner.

  4. Test a change in a lab cluster

    Build a lab cluster with the same version and node roles as production. Make one harmless change on the master, such as a custom rule for a test event, and confirm that the file appears on each worker after synchronization. Use wazuh-logtest on a worker to check that the decoder and rule load and produce the expected alert. Record each command you ran so production repeats the same steps. This step is done when the change reaches every lab worker and the test event behaves as expected.

  5. Define a change procedure with rollback

    Write a procedure that every change must follow: a written request, review by a second person, a lab test, a production window and a documented rollback. Keep a copy of each affected file before the change, for example in a versioned Git repository, so you can restore the previous state. Include the expected cluster_control output and the expected checksums in the request, so the reviewer knows what success looks like. This step is done when the team has approved the procedure and has rehearsed a rollback in the lab.

  6. Copy manual settings to every node

    Apply node-local settings by hand, using the register from the source-of-truth step as your checklist. Compare each node's value against the register before and after the change. Restart a service only on the node where the change requires it, and confirm that a synchronized file did not overwrite a node-specific value. This step is done when every node matches the register and the change record lists the date, the node and the person who made each edit.

  7. Verify consistency after every change

    Run the same consistency check after each change and store its output with the change record. Compare checksums of the synchronized paths across the master and every worker, and run /var/ossec/bin/cluster_control -l to confirm that all nodes are connected. Review the Wazuh server log, normally at /var/ossec/logs/ossec.log, for synchronization errors. This step is done when the checksums match, every node is connected and the log shows no synchronization errors. If any check fails, roll back using the procedure before making another change.

Security risks of configuration drift across cluster nodes

When master and worker nodes disagree about rules, settings or credentials, detection quality and audit trails degrade in ways that are hard to see from the dashboard. The cards below cover the risks that appear most often when content and manager settings are not managed as one controlled set, with a practical control for each.

Worker enforcing different rules

If a worker holds a rules or decoder set that differs from the master, agents reporting to that worker are judged by different detection logic than agents on other nodes. The same event can alert on one node and pass silently on another. Compare rule and decoder file checksums across every node after each change, and treat any mismatch as an incident until explained. Confirm with the Wazuh documentation which content the master distributes and which files stay local.

Unreviewed edits weakening detection

A local edit on a worker, or a quick change on the master, can disable a rule, widen an exclusion or raise a noise threshold without anyone reviewing it. Detection then weakens quietly because no alert fires to report the gap. Keep rule and decoder changes in version control, require a second reviewer for changes that suppress alerts, and record which change ticket each deployment came from.

Inconsistent credential and certificate handling

Certificates, cluster keys and API credentials must match across nodes where the cluster depends on them. When one node is updated and another is not, agents or workers can fail authentication, or a stale secret stays valid longer than planned. Keep a single inventory of which secrets each node holds, rotate them through a documented sequence, and check expiry dates on every node, not only the master.

Master access broader than intended

The master controls configuration that is pushed to every worker, so write access to it is effectively write access to the whole cluster. Accounts and service identities that can edit shared content or manager settings are often wider than the change process needs. Limit write access to named administrators, separate read-only access for auditors and operators, and review the access list on a fixed schedule.

Audit gaps from unrecorded changes

When a setting is changed by hand on one node and never recorded, the team cannot later explain why a rule behaves differently or who made the change. Investigators then lose the evidence trail they need for an incident review or an assessor's sampling. Require that every configuration change is traceable to a person, a time and a reason, and keep the logs from each node in the indexer or an external store.

Rollback failures after inconsistent changes

A change applied to only part of the cluster is hard to reverse, because the team must work out which nodes changed and in what order. Rolling back the master alone may leave workers on the new state, and restoring a backup may not match what the workers currently hold. Before any change, record the known-good state for every node, test the rollback steps in a lab cluster, and confirm the sequence in the Wazuh documentation for your release line.

Questions teams ask before changing cluster configuration

How much effort does a sync review and change control process take?

The effort depends mostly on how many nodes the cluster has, how much custom content the team maintains, how many people edit that content, and whether configuration is already managed from code. A small cluster with a few custom rules and one editor needs a light review step. A larger cluster with many decoders, rules, CDB lists and agent group files, edited by several people, needs a documented approval path, a record of each change, and a routine check that every node holds the same files. Ask any partner to break the estimate into the inventory of synced content, the review workflow, the validation steps on each node, and the recurring checks. Each of those items is what you should compare against your own change volume.

Can an internal team manage cluster configuration sync alone?

Often yes, provided the team understands which files the master distributes, which settings live only on each node, and how a restart or reload is applied after a change. The skills needed are Linux administration, familiarity with the Wazuh server configuration and its rule and decoder layout, basic scripting or configuration management, and enough security knowledge to review rule changes. Teams that lack one of these areas usually struggle most with the manager settings that must be copied by hand. Check your skills against the official documentation for your release line, and assign at least two people who can review each other's changes so one absence does not block a fix.

How long does a first consistency audit take and what does it depend on?

The duration depends on the number of nodes to compare, the number of files in scope, how many hand-edited settings exist on each node, and whether a baseline already exists in version control. A team with a documented baseline can compare nodes quickly, while a team that has never recorded its configuration will spend most of the time reconstructing what each node should contain. Ask for the audit to list each file or setting checked, the node where it was found, the difference from the expected state, and the owner who decides which copy is correct. Any timeline should be confirmed in writing against the agreed scope.

What does the work need from our team?

The work needs access and people more than tooling. You will need administrative access to the master and each worker, a lab or staging cluster where changes can be tested before they reach production, named change owners who approve content and settings, and a maintenance window agreed for restarts or reloads. Someone must also supply the current configuration of every node, any existing configuration management code, and records of recent manual edits. Without these inputs, the audit and the baseline take longer, and the first sync review is likely to surface decisions that only your owners can make.

Can a partner take over ongoing change control, and what would a retainer cover?

Yes, an outside partner can run ongoing change control under a retainer, but the scope must be written down. A retainer typically needs to define which content and settings are covered, how change requests arrive, how reviews and approvals are recorded, how test and production nodes are kept aligned, how upgrades that affect the cluster are handled, and how often consistency checks run. Your own owners still approve business-relevant rules and access decisions. Ask the partner to show how a local edit on a worker would be detected and reported, and which parts of the process stay with your team.

How do we confirm which settings and files are synced for our version?

Confirm the synced set against the documentation for the exact release line you run, not against memory or older blog posts. Read the cluster section of the Wazuh documentation for your version, then test the behavior on a lab cluster by changing one file on the master and checking whether it appears on each worker. Repeat for each category of content and each manager setting you rely on. Record the result for each item, the version tested and the date, so the list can be reviewed again after every upgrade.

What to confirm about your Wazuh version and environment

A Wazuh cluster's sync behavior depends on the exact version you run and on how your team changes content. The cards below list the points to settle with the vendor documentation or a lab test before you rely on the master to keep workers identical. Each one is a question your change process should be able to answer.

Which files sync for this version

Confirm the exact synchronized set for your installed release rather than relying on a list from memory or an older guide. Check which rule, decoder, CDB list and shared configuration paths the master pushes to workers, and which paths stay local to each node. Record the answer in your change runbook for the version you run, because the set can change between patch releases.

Release notes

Behavior when a worker is offline

Find out what happens to a change pushed while a worker is unreachable: whether it is queued, applied on reconnect, or missed until someone resyncs. Test this in a lab by taking one worker down, applying a rule change, and checking the worker's files after it returns. Your monitoring should alert on any node whose content differs from the master.

Restart requirements per setting

Confirm, setting by setting, whether a change takes effect on reload or needs a manager restart on each node. Check this for cluster-wide settings and for node-local ones, since a restart on the master alone may not reach the workers. Plan the restart order in your change window so agent reporting stays within the limits your operations team accepts.

Dashboard-created content versus files

Determine whether custom content created or edited in the dashboard is written to the same location the cluster synchronizes, or whether it lives in a separate store. Test one custom rule created in the interface and one created as a file, then confirm both appear on a worker. Decide which path your team will use so the two sources do not overwrite each other.

Configuration management tool compatibility

Confirm whether your Ansible, Puppet or other configuration management role will overwrite files that the cluster or the master also manages. Check whether the role is idempotent with respect to the synchronized paths and whether it restarts services in a way that disturbs workers. Run the role against a lab cluster before it touches production nodes.

Upgrade handling of local edits

Confirm how an upgrade treats files you edited by hand on a worker or the master, including whether the package manager keeps, replaces or merges them. Check whether the upgrade notes call out any configuration file that changed shape in the release you are moving to. Keep a versioned copy of local edits so you can compare them after each upgrade.

Release notes

How DeployOpen works on this

DeployOpen plans and implements self-hosted open-source platforms inside your own infrastructure, including the Wazuh server cluster. For cluster configuration, we start by mapping which settings your master pushes to workers, which must be copied by hand, and how your team will record and approve changes before any drift appears.

How we scope

  • We inventory your master and worker configuration, groups, rules and decoders before agreeing what the written scope covers.
  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.
  • We confirm which manager settings your team must copy by hand, using the Wazuh documentation for your exact release line.

How we build

  • We set up the master and workers in your environment, then verify that shared content reaches every worker as expected.
  • We document a sync checklist covering each manually copied file, setting and owner, so changes are repeatable.
  • We test local edits on a worker and confirm how they are handled, so no node silently loses changes during a sync.

How we hand over

  • You receive the written change control procedure, the sync checklist and a record of the tested configuration.
  • We walk your administrators through the drift checks and show how to spot a worker that differs from the master.
  • Findings and open items are listed with owners so your team knows what remains after the engagement ends.

How we support

  • Ongoing support, upgrades and configuration reviews are available as a retainer after the initial work.
  • Each Wazuh upgrade is a point to repeat the sync checks, since the documented steps may change between releases.
  • Ask any partner for the exact scope of support, response expectations and how changes to the cluster are reviewed.

Sources and further reading

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.