Wazuh agent groups and centralized configuration

Groups let one Wazuh server push the right agent configuration to thousands of endpoints. This page covers how to design groups, how multiple groups combine, and how to confirm what each agent received.

On this page

When Wazuh agent groups and centralized configuration become necessary

Groups let the Wazuh server manage agent configuration remotely, and the real work is designing those groups before the fleet grows. Once an organization runs more than a handful of agents, editing ossec.conf on each host by hand becomes slow, inconsistent and hard to audit. The Wazuh server can push configuration and upgrades to enrolled agents, so the question for most teams is not whether to centralize but how to split the fleet into groups that match how systems are built, owned and monitored.

In the Wazuh model, a group is a named set of agent configuration held on the server. Agents are assigned to one or more groups, and each group carries its own configuration files that the agent receives when it checks in. A single default configuration is often enough for a small, uniform fleet, such as a set of identical web servers. Teams usually need separate groups when platforms differ (Linux, Windows, macOS), when roles differ (domain controllers, database hosts, developer workstations), or when some hosts need collection that others must not run. Each new group is another configuration to test, version and review, so the design should stay as small as the policy allows.

Before building groups, confirm the file names, the merge behavior when an agent belongs to several groups, and the distribution mechanism against the Wazuh version in use, since the current release line is 4.14 and centralized configuration details can change between releases. The Wazuh components documentation is the starting point for what the server manages remotely. Treat that confirmation as a planning step, not a formality, because a group design that assumes the wrong precedence will be hard to unwind on live agents.

Group design options and when each one fits

This table compares five ways to group Wazuh agents: by operating system, by server role, by environment, by business owner or compliance scope, and a hybrid of platform and role. Read each row against your fleet's size and your team's ownership model. The main takeaway is that every strategy works only if you decide who owns membership and confirm how many groups each agent can carry in your version.

StrategyWhat it simplifiesWhat it complicatesWho owns membership
By operating systemShared agent settings per platform, such as log paths and file integrity monitoring defaults for Linux, Windows or macOSRole or environment differences inside one OS need extra groups, so the number of groups grows quicklyPlatform engineering, based on the OS image or deployment variable used at enrollment
By server roleSettings that match what a host does, such as web, database or domain controller, follow the workloadHosts that serve several roles need multiple groups, and role changes must be reflected in group assignmentsApplication or service owners, who know what each host runs
By environment (production, staging)Stricter alerting and change control for production without touching test systemsA host promoted or rebuilt across environments can be placed in the wrong group unless labels and inventory stay in syncOperations or change management, tied to the environment inventory
By business owner or compliance scopeEvidence trails for auditors and clear accountability for who approves config changesScope often cuts across OS and role, so agents usually carry several groups and precedence must be testedCompliance or risk owners, with the business owner approving changes
Hybrid of platform plus roleA small, predictable set of groups such as Linux web or Windows database, each with one clear purposeNaming discipline is required, and combinations can multiply if every role gets its own platform variantPlatform team defines the scheme, and each service owner requests membership for their hosts

How group configuration reaches an agent

The flow starts with an administrator editing group files on the Wazuh server, where each group's shared agent.conf is kept. An agent enrolls with the server and is assigned one or more groups. The server then sends the merged configuration across the trust boundary to the endpoint, and the agent reports back which configuration it applied. Check the reported configuration against the group files before you trust a rollout.

Group files on the server reach each agent as a merged configuration that the agent reports back.

How precedence works when an agent belongs to several groups

An agent in several groups is the normal case, not the exception. A typical fleet places each host in a platform group (for example, Linux or Windows servers), a role group (database, web or domain controller) and an environment group (production or staging). Each group carries its own agent.conf, so two groups can set the same option to different values. The risk is silent: the agent accepts a valid configuration, nothing fails, and the effective setting is simply not the one the owner of either group intended. Before adding a second or third group membership, decide which group is allowed to own each class of setting, such as log collection, file integrity monitoring paths or active response, and keep overlapping options out of more than one group where you can.

The general model is that the Wazuh server merges the configuration from the groups an agent belongs to and sends the agent one combined file, and the agent applies it. Which group's value wins when two groups set the same option, how sections that repeat are combined, and how settings that do not overlap are carried through are behaviors you must confirm in the Wazuh documentation for the version you run, because the merge rules are documented for a specific release line and the release you deploy may differ from the one you read about. Confirm the group ordering, how the merged file is assembled and whether the agent reports which groups it belongs to, and do not rely on memory or on forum posts for these details.

Prove the behavior before rollout. Create a test agent, assign it the same group combination as a production host, and write a precedence table with one row per option that two groups touch. For each row, record the value each group sets, the value you expect to take effect, the value the agent actually received and the evidence you used to check it. Repeat the test after any group change and after each Wazuh upgrade, since the merge behavior is part of the configuration path you depend on. Keep the table with your change records so a reviewer can see why a given host behaves the way it does.

Group design patterns for mixed fleets

When every agent runs the same operating system and role, a fleet can be grouped with a small number of groups, often one shared baseline group plus one role group. The shared group carries settings every agent needs, such as the log sources and file integrity monitoring paths common to the estate, and the role group adds what differs by function. This keeps agent.conf content short and easy to review. Illustrative example: a fleet of identical Ubuntu application servers might use a group named linux-base for all hosts and a group named linux-web for web tier hosts only.

  • Keep the baseline small: Put only settings every host needs in the base group, so changes to it have a predictable blast radius.
  • Use one role group per function: Avoid creating a group per host, which turns the group list into a second inventory.
  • Assign groups at enrollment: Set the group during registration so new hosts receive configuration before their first full scan.
  • Watch for drift in the role group: Role groups tend to accumulate exceptions over time, so review their contents on a set schedule.
  • Plan for the next platform: A single-platform layout often gets copied to a second OS later, so record which settings are OS-specific.

Check that each agent lists the groups you expect in its configuration status, and that no host sits only in the default group.

How to set up groups and distribute agent configuration

This sequence moves a fleet from ad hoc agent settings to group-based configuration that the Wazuh server distributes, with a check at each stage so you know which agents received which settings.

  1. Inventory the fleet and its roles

    Export the current agent list from the Wazuh server API or dashboard and sort hosts by operating system, environment, and function, such as web servers, database servers, domain controllers, and developer workstations. Record which hosts need different monitoring settings, for example file integrity monitoring paths, log locations, or command monitoring. Confirm the inventory matches the agent count the server reports so that no host is left unclassified. The step is done when every agent has a platform and a role recorded in your inventory file.

  2. Define the group naming scheme

    Agree on a naming pattern that encodes platform and role, such as a prefix for operating system followed by a function name, and write it down with rules for who may create new groups. Keep names short, lowercase, and free of spaces so they are easy to use in API calls and enrollment variables. Review the scheme with the team that will assign agents, since a group name becomes part of enrollment scripts. The step is done when the naming rules are written and at least one example group per platform is agreed.

  3. Create the groups on the Wazuh server

    Create each group through the Wazuh server API or the dashboard, then confirm it exists by listing groups through the API. Keep the default group in place, because agents that have no group assignment fall back to it, and document that behavior for your team. Creating groups is a single administrative action per group, so record who created each one. The step is done when the server's group list matches the naming scheme and every planned group appears.

  4. Write and version the group configuration files

    For each group, write the agent configuration file (agent.conf) that holds only the settings that group needs, and keep every change to those files in a version control repository with a commit message and reviewer. Structure the repository so each group has its own directory, and avoid duplicating settings that belong in a shared baseline. Validate the XML before you copy it to the server, because a malformed file can prevent the group from being applied. The step is done when each group file is committed, reviewed, and passes validation.

  5. Assign agents to groups

    Assign agents during enrollment with the group setting in the deployment variables or enrollment command, or assign existing agents afterward through the API or dashboard. Record the group for each agent and check that membership matches your inventory from the first step. Where an agent belongs to more than one group, document the precedence order you rely on, because later groups can override earlier settings. The step is done when the server reports the expected group membership for every pilot and production agent.

  6. Upload group files and let the server distribute them

    Upload the reviewed group configuration to the server, then let the server distribute it to the agents in that group. Agents receive updated configuration through the server's remote management, so you do not need to log in to each host. Watch the group status in the API or dashboard until the agents report that they have the new merged configuration. The step is done when the group status shows the expected checksum state for the agents in that group.

  7. Test changes on a non-production group first

    Before changing a production group, make the same change in a separate test group with a small set of non-production agents. Confirm the change is applied, that alerts still arrive, and that no unwanted noise increases in the dashboard. Promote the change to the production group only after the test group shows the expected behavior over the observation period your team sets. The step is done when the test results are recorded and the production change is approved in version control.

  8. Verify configuration on a pilot agent

    On one pilot agent per group, confirm the group membership in the API or dashboard, then check the merged configuration the agent holds in its local directory on the host. Compare the applied settings with the committed group files and confirm the agent is reporting as active. Keep the verification output with the change record so auditors and operators can see what each agent received. The step is done when the pilot agent's applied configuration matches the expected group files and the record is saved.

Security and operational risks in centralized agent configuration

Groups let one edit reach many endpoints, so the same change that saves effort can also widen an incident. The cards below pair each risk in centralized agent configuration with a control you can put in place and check.

Change control for shared groups

A single edit to a shared group's agent.conf can reach every agent assigned to that group, which may be thousands of endpoints. Treat group files as production code: require a peer review, record who changed what, and keep the previous version so you can restore it. Before a change reaches production, confirm which agents belong to the group and what the new file alters, such as log collection paths or module settings. Write down the rollback step before you publish, not after something breaks.

Restricting who edits group files

Anyone who can write to the shared group directory on the Wazuh server, or call the server API with rights to modify group configuration, can change what thousands of agents collect and how they behave. Limit server shell access to named administrators, review API user roles and their permissions, and remove accounts that no longer need them. Confirm that the group configuration is managed through an approved workflow rather than hand edits on the server.

Authorized enrollment and group assignment

Group membership decides which configuration an agent receives, so an unauthorized host enrolled into a permissive group gains that group's settings. Restrict enrollment to automation that you control, such as deployment scripts or configuration management that sets the group at install time. Protect the enrollment password and review the agent list for hosts you did not expect. Ask your team to confirm which identities are allowed to assign or move agents between groups.

Keeping secrets out of configuration files

Group configuration files are distributed to every member agent and are often stored in version control, so a password or token written into them is exposed to everyone who can read the repository or the files. Keep credentials in the systems that already hold them, such as a secrets manager, and reference them through the mechanisms your deployment supports. Scan group files for credential-like strings before commit, and confirm the approach with the Wazuh documentation for your release.

Testing groups against production layouts

A test group that differs from production can pass review and still fail on real hosts, because agent platforms, log paths and module availability vary. Build test groups that mirror production group membership and platform mix, with a few agents on each operating system you run. Promote a change only after it has run on those test agents and the expected alerts and inventory data still appear. Record which production groups each test group represents.

Detecting agents that missed a change

A pushed configuration only helps if agents receive it, and some will stay disconnected, fail to parse the file, or hold an older copy. Monitor agent status and check which agents report the group's current configuration after each change. Investigate agents that remain disconnected or show a stale configuration, and decide in advance how long a gap is acceptable. Ask your team to name the dashboard view or API query used for this check.

Questions buyers ask about groups and centralized configuration

How much effort does a Wazuh agent group design take?

Effort depends mostly on how many platforms and roles the fleet contains, how many compliance scopes apply, and how consistent the existing host naming is. A design that separates a few operating systems and two or three roles, such as web servers and database hosts, is a small exercise. A fleet with several Linux distributions, Windows servers, workstations, macOS endpoints and regulated segments needs more groups, more agent.conf content and more test cycles. Ask the partner to break its estimate into discovery of the current fleet, group model design, configuration authoring and validation, so you can see which part grows with your environment.

Can our own team design and run agent groups without a partner?

Yes, if your team has Linux or Windows administration skills, access to the Wazuh server, and time to test changes before they reach production. The Wazuh documentation describes how groups, agent.conf and centralized configuration work, so the mechanics are learnable. Teams usually find the harder part is the governance: agreeing who may change a group, how changes are tested and how a host's group membership stays correct as it is rebuilt. A partner can help with the design and handover, while your staff keep ownership of the group model after go-live.

What do we need to provide from our own staff?

The work needs three internal roles. Asset owners confirm which hosts belong to which platform, role and environment, because group membership is only as accurate as that inventory. Change approvers sign off on configuration changes that affect many agents at once, since a faulty agent.conf can reach a large part of the fleet quickly. A test estate, meaning a set of non-production agents that mirror the production platforms, lets the team confirm precedence and file distribution before a change ships. Ask the partner to list these inputs in the written scope, with named owners and expected availability.

How long does it take to validate group precedence?

Validation time depends on how many groups an agent can belong to, how many configuration sections overlap, and how many platforms have to be tested. The check itself is practical: assign a test agent to the groups in question, confirm the merged configuration it received, and verify that the expected settings took effect on the host. Each platform and each overlapping group pair adds a test case. No duration is supplied for this work, so ask the partner to state the number of test cases, the test estate it will use and the acceptance criteria in the quote.

What recurs after go-live for groups and centralized configuration?

Two things recur. The first is group maintenance: new hosts, retired hosts, reorganized teams and new platforms all change group membership, and each change needs a check that the agent received the right merged configuration. The second is version upgrades. Wazuh ships patch releases in the 4.14 line on a regular cadence, and configuration that worked on one version should be retested before agents or the server move to the next. Ask for a written plan covering who performs membership reviews, how often configuration is tested, and whether upgrade testing is included in a retainer or quoted separately.

Does the self-hosted Wazuh software have a license fee?

No. The self-hosted Wazuh software is open source and distributed under the GNU General Public License version 2, with an exception that permits linking with the OpenSSL library. The license itself has no fee. Your costs are the infrastructure to run the indexer, server and dashboard, the people who operate it, and any services you buy, such as implementation work. Wazuh Cloud is a separate managed service with paid plans, so confirm which option you are evaluating before comparing costs. Review the license text with your legal team, since obligations under GPL version 2 apply to how you distribute or modify the software.

What makes group design different across regulated environments?

In regulated environments, group design is usually driven by which hosts fall under which control scope, not only by platform. A payment-related segment, a patient-data segment and a general office segment may need different monitored files, different log sources and different retention or review practices. Compliance teams should confirm which requirements the groups need to support, then map each group to the evidence it produces. Wazuh's dashboard includes prebuilt views for frameworks such as PCI DSS and HIPAA, but whether those views match your scope is a question to settle with your compliance lead and auditor.

Limits to confirm in your environment before you design groups

Group design depends on limits that change between releases and deployment shapes. The items below are the checks to run against the Wazuh documentation for your exact version, which is in the 4.14 release line today. Confirm each one before you commit a group layout to production.

Group count and file size limits

Confirm the maximum number of groups and the maximum size of each shared agent.conf and multigroup file for the release you run. A layout with many small role groups can hit practical limits sooner than expected, and oversized files slow distribution and make reviews harder. Ask how the limits apply to the merged file each agent receives, not only to the source files on the server.

Current release line
4.14
Wazuh docs

Behavior across cluster nodes

If you run the Wazuh server as a cluster, confirm which group files are synchronized from the master, how workers receive changes, and what happens to agents connected to a worker during a configuration update. Test a change on a staging cluster and check that every node serves the same merged configuration before you roll out a new group layout.

Behavior during outages

Confirm what an agent keeps running with when it cannot reach the server, and whether it applies a pending configuration change after reconnecting. Also check how a manager outage affects new enrollments and group assignment. Plan for disconnected laptops and remote sites separately, since they may receive configuration much later than the rest of the fleet.

Platform-specific option support

Not every configuration option works on every agent. Linux, Windows and macOS agents may accept different blocks, file paths and collection settings, and legacy Unix agents such as AIX, Solaris and HP-UX may support a smaller set or lag behind on releases. Build a matrix of the options each platform needs and verify it against the documentation for each agent version in your fleet.

Upgrade effects on group files

Confirm how a server or agent upgrade treats existing group directories and agent.conf files, including default files that the new release may replace. Check whether options deprecated in your release need changes before the upgrade, and whether agents must be upgraded before or after the server. Back up group files before each upgrade so you can compare and restore them.

Release notes

Keeping groups accurate as the fleet changes

Group design is not finished when the first rollout ends. Every new platform, new server role or new business unit can require a new group with its own agent.conf, and every decommissioned host must leave the groups it belonged to so that stale membership does not keep applying configuration to machines that no longer exist. Treat group membership as a living inventory. Before a new platform joins the fleet, confirm which group it should land in, which file set it needs and who approves the change. When a host is retired, check its group assignment as part of the same ticket that removes the agent, so the group reflects the fleet you actually run.

Version upgrades are the change most teams overlook. A new Wazuh release line or patch can alter how a configuration option is parsed or applied, and agents on different versions may not respond to the same agent.conf block in the same way. Before upgrading the server or a group of agents, read the release notes for the target version, test the group's configuration on a small set of agents in a staging group, and confirm that merged.mg is still distributed and applied as expected. The upgrade sequence itself is covered on the upgrades page, but the group review should be part of that plan.

Set a review cadence that matches how often your fleet changes, and keep a change log for every group edit. A simple log records the date, the group, the file changed, the reason, the approver and the agents expected to be affected. Review membership and group files on a fixed schedule, and compare the list of groups against the platforms and roles you currently support. Agent cleanup, including removing duplicates and long-disconnected agents, is covered on the removing and cleaning up agents page, and asset context through labels is covered on the agent labels page. Link those pages into your runbook so reviewers can act on what they find.

How DeployOpen scopes and delivers group design for Wazuh

DeployOpen plans, builds and hands over Wazuh agent groups and centralized configuration inside your own infrastructure. The work starts from written scope, so your platform, role and precedence rules are agreed before any agent.conf file reaches a live fleet.

How we scope

  • Inventory operating systems, host roles and existing configuration to define the groups your fleet needs.
  • Agree in writing which groups, precedence rules and agent.conf files are in scope for the engagement.
  • Confirm how your team will review, approve and roll back group changes before work begins.

How we build

  • Create groups by platform and role, then write agent.conf files that apply only the settings each group needs.
  • Test multiple group membership and precedence on a representative set of agents before wider distribution.
  • Verify that merged.mg and shared configuration reach test agents, and check what each agent actually received.

How we hand over

  • Document the group model, naming conventions, precedence decisions and the checks used to confirm delivery.
  • Walk your operations team through adding agents to groups and reviewing configuration changes.
  • Provide a runbook for troubleshooting agents that did not receive the expected configuration.

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer for changes to groups over time.
  • Review group design when new operating systems, host roles or Wazuh 4.14 patch releases affect your configuration.
  • Confirm support terms, response expectations and change handling with your DeployOpen team in the written agreement.

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.