How Wazuh agent labels add owner and criticality to every alert
A SOC that receives alerts from hundreds or thousands of hosts often sees events that look identical in the raw log, yet a failed login on a payment database and the same event on a lab virtual machine carry very different business impact. Wazuh agent labels let you attach owner, environment and criticality context to each agent, so that the context can travel with the alerts those agents generate and be used in rules and dashboards. Labels are set in the agent configuration, which keeps the asset context close to the data it describes. Before rollout, confirm the exact label syntax, the keys your Wazuh version supports and how labels appear in alert fields by reading the documentation for that release, since the mechanics can differ between versions.
Labels earn their effort in three situations. The first is a shared triage queue, where analysts who do not know a host need to see at a glance who owns it and whether it supports production. The second is a mixed fleet, where production, staging and test hosts report to the same manager and share the same rules, so environment is often the difference between an urgent response and a routine ticket. The third is compliance scoping, where a framework review asks which systems hold regulated data and you need to filter evidence down to those systems. Use a small, agreed vocabulary for each key, such as a fixed set of criticality levels and an approved environment list, and assign one person to maintain it. Free-text values drift quickly and break dashboard filters.
Labels can wait in some cases. If the fleet is small, one team handles all triage and nobody filters alerts by owner or environment, a maintained inventory mapping hosts to owners may be enough until the SOC grows. Labels also carry an upkeep cost: someone must update them when a host changes owner, moves environment or is retired, and stale labels can mislead analysts more than missing ones. Before committing, ask your team to name three alert reviews or dashboards that would change if labels existed. If that list is empty, defer the work and revisit it when a shared queue or compliance review appears. Plan label values alongside your agent group design so both follow one source of truth.
How label data moves from agent configuration to alerts and dashboards
The flow starts where labels are defined, either in a shared group agent.conf on the Wazuh server or in a local agent configuration on the endpoint. The Wazuh server distributes that configuration to the agent across the trust boundary, and the agent's events and alerts then carry the label fields to the Wazuh indexer, where rules and dashboard views can filter on them. Check the exact hand-off points and how a changed label reaches stored alerts against the documentation for your deployed version, since a label change affects new events rather than alerts already indexed.
General flow of label data, to confirm against the documentation for your deployed version.
Where to define labels and when each place fits
This table compares the three places labels can be set for Wazuh agents: group configuration, the agent itself, and generated configuration from an asset inventory. Read each row against your fleet size, who is allowed to change labels, and how much drift you can tolerate. The main takeaway is that the more automated the source of truth, the less drift you carry, but the more upfront integration work you need.
| Factor | Central group configuration | Local agent configuration | Generated from CMDB or inventory |
|---|---|---|---|
| Effort to maintain | Low to moderate; edit a group file and let the server distribute it | High; each host must be changed and checked individually | Moderate to high; the sync job and mapping rules need ownership and testing |
| Risk of drift | Low, as long as no one edits agent files directly | High, because hosts rebuilt or edited by hand can diverge silently | Low when the inventory is accurate; stale CMDB records pass errors straight into alerts |
| Who can change it | Wazuh administrators with access to the manager's group files | Anyone with administrative access to the endpoint | Whoever owns the CMDB or inventory and the sync pipeline |
| Fleet size where it fits | Small to large fleets organized by a few clear groups | Very small fleets or one-off hosts with unusual ownership | Large or fast-changing fleets where the inventory is already the record of truth |
| Audit trail | Changes live in version-controlled group configuration if you keep it there | Usually scattered across hosts unless collected by configuration management | Traceable to the inventory change that caused it |
| Dependency on Wazuh version | Confirm in the documentation for your deployed version how group configuration is distributed and applied | Confirm which local settings the deployed agent reads and whether they reach alerts | Confirm the supported configuration mechanism and API for your deployed version before designing the sync |
Designing a label schema that stays useful at fleet scale
A label schema is only as useful as its discipline. The decisions below determine whether owner, environment and criticality labels can still be trusted in alert triage, searches and dashboards after the fleet has grown and several teams have touched the configuration. Settle them before the first agent is labeled.
Fix the environment and criticality values
Define a closed list for environment (for example, production, staging, development) and for criticality (for example, high, medium, low), and document what each value means in your organization. Keep the list short enough that every engineer can choose the right value without asking. Illustrative case: if one team writes "prod" and another writes "production," a dashboard filter on production silently misses half the hosts. Lock these two values to a fixed list from day one.
Use a naming convention for owners
Owner values should be stable identifiers, such as a team or service code, rather than people's names or free-text team titles. Names change when people leave, and display names drift between spellings. Publish the format, for example lowercase identifiers with hyphens, and check new values against it. A single identifier per owner also lets an alert route to the right queue without a lookup in a separate spreadsheet.
Assign an approver for new values
Name one owner of the label register, usually a security operations or platform lead, who approves any new owner, environment or criticality value. Without an approval step, each new project adds a variant and the schema decays within months. Ask who can request a value, how long approval takes, and where the approved list lives so that agent configuration and documentation stay in step.
Set how criticality is assigned and reviewed
Criticality should follow business impact, not the technical role of the host. Assign it from the system owner's answer to a short question, such as what stops if this host is compromised or unavailable. Review assignments on a fixed cycle and after major changes such as a new customer-facing service. Record who assigned each criticality value and when, so an auditor or incident responder can see why a host is marked high.
Relate labels to groups and asset records
Wazuh agent groups control which configuration an agent receives, while labels describe context for alerts. Decide which facts belong in each. Groups should reflect configuration needs, and labels should reflect ownership and impact. Keep a single source of truth, such as your CMDB or inventory, and generate both groups and labels from it so that a host does not carry an owner in one system and a different owner in another.
Limit the number of labels per agent
Three core labels, owner, environment and criticality, cover most triage and reporting needs. Each extra label adds a field to maintain, a value to govern and a filter that someone must remember. Add a fourth label only when a specific rule or dashboard needs it and someone is accountable for its accuracy. Ask your team to name the query that will use each label before it is added.
Setting up agent labels across a fleet
This sequence takes agent labels from a written schema to a fleet-wide rollout, with a check at each stage so that owner, environment and criticality context reaches alerts and dashboards before the change touches every endpoint.
Confirm the configuration method and version
Before any label is written, the team confirms how its agents receive configuration in its environment: the central agent configuration file distributed by the Wazuh server, or the local agent configuration file for hosts that are not managed centrally. The team checks the agent and server versions against the Wazuh documentation for the release line in use, since the placement of label settings and the fields available for matching can differ between versions. Done means a written note names the method, the versions and the documentation pages the team will follow, and an engineer has checked that a test agent reads its configuration as expected.
Agree the label schema with owners and security
The platform team drafts a short schema with the owners of the systems and the security team: a fixed set of label keys such as owner, environment and criticality, the allowed values for each, and who may approve a new value. Security reviews whether the criticality values match how incidents are already prioritized, and owners confirm that the owner values name a team that can answer an alert. Done means the schema has signed-off values, a named maintainer and a rule for how values are changed, with no free-text entries allowed.
Apply labels to a pilot group
The engineer adds the agreed labels to a small pilot group of agents that represent the main operating systems and environments in the fleet, using the centralized group configuration rather than editing hosts one by one. The change is staged so that only the pilot agents receive it, and the team records which agents are in the pilot and which configuration version they received. Done means each pilot agent reports the new configuration and the labels are present in the agent configuration on the server.
Verify labels on test events
The team generates a controlled test event on each pilot host, such as a documented authentication or file change, and searches for it in the Wazuh dashboard. The check is that the event shows the owner, environment and criticality fields with the values the schema assigns to that host, and that a deliberately mislabeled test host is caught by the review. The team also confirms that a saved search or rule condition using a label matches only the intended hosts. Done means every pilot host's test event carries the expected labels and the team has written down the query used.
Build rules and dashboards on the labels
Once the test events are correct, the engineer adds the label-based conditions to rules and dashboard filters, for example to raise the severity of alerts from high-criticality production hosts or to group alerts by owning team. Each new rule is tested with a sample event before it is enabled, so that a typo in a label value does not silently stop alerts from firing. Done means each rule and dashboard view has a test result and an owner who will maintain it.
Add labels to the remaining groups in waves
The team extends the labels to the rest of the fleet in waves, one group of hosts at a time, starting with lower-risk groups and leaving production systems for later waves. After each wave, the team checks that agents have reported the new configuration and that the expected label appears on a test event from a sample host in that wave. A wave that shows missing or wrong values is paused and fixed before the next one starts. Done means every group reports the labels and each wave has a recorded check.
Record the schema in version control
The approved schema, the group configuration files, the rule and dashboard definitions, and the test queries are stored in a version control repository with a review step for every change. The repository also records who approved each label value and the date of each change, so that auditors and responders can see how asset context was assigned. Done means a clean checkout of the repository reproduces the labels that the dashboard currently shows, and the team has tested that process once.
Using labels in rules, filters and dashboards
Labels pay off when analysts can act on them during triage. Once each agent carries owner, environment and criticality values, the dashboard can be filtered to show only production alerts, only alerts from assets a given team owns, or only alerts from high-criticality hosts. A saved search built on the owner label lets a team open its own queue without maintaining a separate list of hostnames. Confirm in the deployed version exactly how the dashboard exposes agent labels as filterable fields, because the field name you use in a saved search or filter must match what the indexer actually stores. Build one or two saved views first, check that they return the agents you expect, and only then share them with the owning teams.
Rules that raise severity for critical assets are where labels carry the most risk. Before writing a rule that depends on a label field, confirm the exact field name for your release, then test the rule with the rule testing tooling described in the Wazuh documentation so you can see whether a sample event matches with the label present and absent. Keep the severity change narrow, such as raising the level only for a specific rule group, so that a label error does not inflate every alert. Document which rules read labels so that a later change to the label scheme does not silently break them.
Do not base detection logic on labels that an agent operator can change without review. A label written into local agent configuration is only as trustworthy as the process that controls that file, so a user with access to the endpoint could downgrade a critical host. Decide where the authoritative label values live, who may change them, and how changes are recorded, then limit rules to values set through that controlled path. Ask your Wazuh deployment team to confirm which label sources your version accepts and which of them an endpoint user can edit, and treat any label that fails that check as a display hint rather than a basis for severity.
How label design differs for cloud, on-premises and air-gapped fleets
In cloud fleets, the source of truth for many asset attributes already exists in the provider's tagging model. Account, subscription, project and region are usually assigned at provisioning time, so the label scheme should reuse those values instead of inventing a parallel set that drifts over time. Agents in autoscaling groups and short-lived instances also make manual labeling impractical, so the labels need to be applied automatically from metadata or from the image build.
- Account and subscription values: Map each cloud account or subscription to one label value, using the identifier your cloud team already tracks.
- Region labels: Use the region code as provisioned, so alerts can be filtered by geography without a lookup table.
- Owner tags: Carry the owning team from the infrastructure tag into the agent label, and confirm which tag is authoritative when two exist.
- Ephemeral instances: Set labels at boot from instance metadata or the image configuration, so replaced instances do not lose context.
- Tag alignment checks: Schedule a comparison between cloud tags and agent labels to catch values that have changed on one side only.
Before rollout, confirm with your cloud team which tag keys are mandatory and how your Wazuh deployment handles label changes on existing agents.
On-premises fleets tend to change more slowly, but the attributes that matter are physical and organizational. Rack position, hardware owner and business unit often live in a configuration management database or asset register, and changes to them usually pass through a formal change-control process. Labels should reflect those records, and the update path should follow the same approval steps the organization already uses.
- Rack and location labels: Record the data center, room and rack identifiers that facilities and asset teams use, so a host can be found during an incident.
- Business unit labels: Tie each host to the unit that funds and accepts risk for it, which often differs from the team that administers it.
- Change-control owners: Name the approver for label changes, so a move between units is recorded through the same ticket that moves the hardware.
- Hardware refresh: Plan how labels move when a server is rebuilt in a different rack or reassigned, since agent identity may persist across that work.
- Source reconciliation: Confirm which system owns each value, the asset register or the agent configuration, and reconcile them on a fixed schedule.
Before rollout, ask the asset and change-management teams which of these fields are already audited, because those fields are the easiest to keep accurate.
In air-gapped networks, agents cannot reach external sources for configuration, packages or vulnerability data, so label design has to account for how changes move across the boundary. Labels are delivered as part of the agent configuration that the manager distributes, and any update to that configuration must be prepared outside the network and carried in on approved media. The offline installation guide describes installation without internet connectivity, and vulnerability detection can use an offline vulnerability repository in place of the Wazuh Cyber Threat Intelligence platform. Both affect how often labels and related content can be refreshed.
- Controlled change bundles: Prepare label and group changes as reviewed bundles that move through the transfer process, with a record of what each bundle contains.
- Offline vulnerability repository: Refresh it on the same cadence as label reviews where possible, so vulnerability findings reference current asset context.
- Install media versions: Keep the packages and repository copies that match the manager version, since mismatches complicate updates.
- Label stability: Keep values simple and slow-changing, because each change costs a transfer cycle.
- Evidence of distribution: Retain records showing which label set each agent received and when.
Confirm with your Wazuh documentation and security team how the offline repository is updated and how your transfer process handles configuration files before you finalize the label schedule.
Security and operational considerations for agent labels
Labels make alerts easier to triage, but they are descriptive data that someone has to maintain, protect and verify. The cards below cover the decisions that keep labels useful without turning them into a weak control or a leak of internal structure.
Labels are context, not access control
A label such as criticality: high tells an analyst how to prioritize an alert. It does not stop an agent from reporting, a user from viewing data, or a rule from firing. Do not let a label alone decide who may see an alert, who may run a response action, or which hosts are exempt from monitoring. Use Wazuh users, roles and rule logic for those decisions, and treat labels as an input to them. Ask the team which access decisions currently depend on label values and move each one to an enforced control.
Control who edits group configuration
Labels are usually set through agent groups and the shared configuration that agents receive, so a change to a group file can alter the context of many hosts at once. Restrict write access to the configuration repository and the Wazuh server to a named set of administrators. Require a second reviewer for changes to label values, and keep the review record with the change. Confirm with your Wazuh administrators which account or pipeline performs group changes and whether those actions appear in your audit trail.
Protect label values as alert data
Owner names, team names and tags such as payments-core can reveal how your business is organized and which systems matter most to an attacker. Once labels appear in alerts, dashboards and exports, anyone with alert access can read them. Decide which values are safe for broad viewing, avoid putting secrets, personal names or system credentials in labels, and use role-based dashboard filters where the audience should be limited. Apply the same retention and access rules you use for the alerts that carry them.
Prevent label drift on rebuilt hosts
When a host is rebuilt, re-imaged or re-enrolled, it may come back under a new agent ID with no labels, or with labels copied from an old template that no longer match its role. Both cases weaken triage because alerts for a critical system may lose their criticality. Include label assignment in the build pipeline or enrollment script, and check the agent list for duplicates after rebuilds. Use the agent removal process to clear stale entries so that old records do not share a name or label with the new host.
Confirm labels reach agents and are logged
A label change is only useful once the agent has received the updated configuration and the alerts reflect it. Verify delivery on a sample of agents after each change, and check that the agent reports the expected group membership before you rely on the new context. Record who made each change, when it was applied and which hosts it affected, so that an analyst can explain an alert that was triaged under an older label. Confirm with your Wazuh administrators how configuration delivery is checked in your version of the platform.
Back up and export labels carefully
Labels live in the server configuration and group files, and they also appear in indexed alerts and in any report or export you generate. Include the group configuration in your backup scope and test restoring it, because a restore without labels will silently remove asset context from new alerts. Treat exported alert files and dashboard reports that contain labels with the same handling as the underlying data. Ask your Wazuh administrators where label data is stored in your deployment and which backups capture it.
Questions teams ask before adding agent labels
What does adding agent labels cost, and what drives the effort up?
Cost depends on the work, not on a license, because self-hosted Wazuh is open source with no license fee. The effort comes from four areas: designing the label schema (which keys exist, allowed values and naming), deciding how many agent groups and configuration files those labels map to, getting owner and criticality decisions approved, and building the rules and dashboard views that read the labels. Each area grows with fleet size, the number of business units and the number of platforms. Ask any partner for a fixed-scope quote that lists each area as a separate deliverable, states which items are one-time and which need ongoing review, and names who approves the criticality model.
How long does a labeling pilot take?
A pilot takes as long as it takes to agree the schema and get a representative set of agents labeled and tested. The main dependencies are the speed of owner and criticality decisions, the number of operating systems in the pilot, and whether a change process for group configuration already exists. A pilot that covers one platform and one business unit is far quicker to finish than one that spans every fleet. Ask for a timeline in the written scope with milestones for schema sign-off, pilot agents labeled, rules tested and dashboards reviewed, and note which milestones depend on your staff.
What must our team provide before labeling starts?
Your team must provide decisions and access, because labels only carry meaning when the people who own the systems have agreed to them. You need named asset owners for each system group, a written criticality scale with the rules for assigning each level, and an agreed environment list such as production, staging and test. You also need administrative access to the Wazuh server and to the group configuration files, plus a change process for editing them. Confirm these items with your own staff before the engagement begins, since a partner cannot make ownership or criticality decisions on your behalf.
Can an in-house team add agent labels without a partner?
Yes, a capable in-house team can add labels, especially if it already runs Wazuh and manages agent groups. The work is mostly configuration, testing and governance rather than specialized engineering. The harder parts are usually the non-technical ones: getting consistent owner data, agreeing criticality levels across departments and keeping labels current. A partner adds value when the team lacks capacity, needs an independent review of the schema or wants the rules and dashboards tested before go-live. Whichever route you choose, write down who owns the label schema after the work ends.
Do labels survive when agents are rebuilt or re-enrolled?
Labels survive only if they are set in the central configuration rather than on the host. When a host is rebuilt and the agent re-enrolls, the Wazuh server applies the group assignment and configuration it has stored for that agent identity, so labels defined through groups return with it. A rebuilt host often receives a new agent identity, however, and then its labels, history and group membership must be reapplied. Confirm with your own tests how your deployment behaves with the enrollment method you use, and include rebuilt-host scenarios in the pilot test plan. Our own Wazuh agent groups reference should be checked against your Wazuh version before you rely on it.
Do agent labels replace an asset inventory?
No, labels add context to alerts but do not replace an asset inventory. An inventory is the authoritative record of what exists, who owns it, where it sits and how it is classified, and it often needs data from procurement, HR and change systems. Wazuh labels can only reflect what is written into agent configuration, and they go stale if the inventory is not maintained. Many teams therefore treat the inventory as the source of truth and generate label values from it, so alerts and records stay consistent. Decide early which system owns each field, and ask any partner how the label data will be kept in step with your inventory.
Limits to confirm in your environment before rollout
Labels only help if the deployed Wazuh version supports them in the places you need, and if the indexer and groups can carry them at your scale. The cards below list the checks to run against the Wazuh documentation for the exact release line in use before you write labels across the fleet.
Label mechanism and syntax
Confirm which mechanism your release line supports for attaching owner, environment and criticality values to an agent, and the exact syntax it expects in the agent and server configuration. Syntax that works in one 4.14 patch may not be the form you standardize on, so test the chosen form on a representative agent group before scaling. Record the release line and the configuration keys in your change records so later upgrades can be checked against them.
Release notesLabel presence in every alert
Check whether the label fields appear in every alert type you plan to route, including file integrity, vulnerability detection, rootcheck and custom decoder output. Some alert sources may carry only agent identity fields, which would leave gaps in owner or criticality reporting. Generate one alert of each type from a labeled test agent and confirm the fields are present before you build dashboards or escalation rules on them.
Field names in rules and searches
Confirm the exact field names the indexer exposes for labels, since rules, CDB lists and dashboard filters all depend on them. A field that is spelled differently in a rule than in the stored alert will silently match nothing. Write a short query for each label field, check that it returns the labeled agents, and keep a field reference that the rule authors and dashboard owners share.
Label count and indexer load
Ask how many distinct label keys and values the indexer handles comfortably in your planned deployment, and whether high-cardinality values such as free-text owner names affect index size or query speed. Keep the label vocabulary small and controlled, using a fixed set of environment and criticality values, and review the indexer sizing guidance for your cluster before adding more keys.
Overlap with existing groups
Determine whether your current agent groups already encode environment or role, and whether labels would duplicate that information. Groups drive configuration distribution, while labels describe assets, so mixing them can produce agents that are grouped by one attribute and labeled by another. Map each existing group to the label values it should carry, and decide which source is authoritative before you migrate.
Behavior in clustered deployments
Confirm how label definitions and values are distributed across Wazuh server cluster nodes, and whether an agent's labels remain consistent after it reconnects to a different worker. Also confirm whether label changes take effect on the next configuration sync or require an agent restart. Test a label change on a multi-node lab cluster and verify the result on every node before relying on it for production alerting.
Components guideHow DeployOpen works on this
DeployOpen plans, implements and documents Wazuh agent labels as part of a self-hosted Wazuh deployment in infrastructure you control. The work starts with a written scope that defines which labels carry which meaning, then builds them into agent configuration, rules and dashboards, and hands them over with the evidence your team needs to maintain them.
How we scope
- Agree a written label schema covering owner, environment and criticality values, with allowed values and who approves changes.
- Inventory the agent population by operating system and group so labels reach every platform in scope.
- Define which alerts, dashboards and rule conditions will consume each label before any configuration is written.
- Confirm the Wazuh release line and deployment method in your environment, since label handling must match your installed version.
How we build
- Apply labels through agent configuration and group design so new agents receive them at enrollment without manual edits.
- Write and test rule conditions that use labels, validating matches against sample events before enabling them.
- Build dashboard views and filters that show alerts by owner, environment and criticality for your teams.
- Test label behavior in a non-production environment, including agents that reconnect after a rebuild or change group.
How we hand over
- Deliver the label schema, group mapping and rule documentation in a form your security and platform teams can review.
- Provide a runbook that explains how to add, change and retire labels and how to confirm an agent received them.
- Walk your operators through the dashboards and rule logic so they can troubleshoot alerts without outside help.
- Record the configuration in your own repository so changes go through your normal review process.
How we support
- Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
- Ongoing support, upgrades and continuous testing are available as a retainer, including checks after Wazuh upgrades change label handling.
- Ask any partner to confirm in the quote who maintains the label schema after handover and how label changes are approved.
- Request a quote based on the written scope, which sets the effort and cost for your environment.

