By NHI Mgmt Group Editorial TeamBased on Wazuh: “Dynamic index routing in Wazuh” (June 11, 2026)

TL;DR: Dynamic index routing can separate alerts by tenant, environment, severity, and custom fields while preserving central visibility, reducing the risk that shared indices blur retention, access, and compliance boundaries, according to Wazuh. For security operations teams, the control pattern matters because index design becomes part of data governance, not just log plumbing.


At a glance

What this is: This is a technical how-to on Wazuh dynamic index routing, showing how ingest rules can send alerts into different indices based on attributes such as agent group, rule level, environment, or custom fields.

Why it matters: It matters because index routing is no longer just a storage decision; it becomes part of segmentation, access control, and retention governance for SOC data in larger environments.


Context

Dynamic index routing is a way to send events into different indexes based on event attributes instead of forcing every alert into one shared storage pattern. In practice, that means index naming, retention, and access boundaries can be aligned to business units, environments, and severity without losing central operational visibility.

For security operations teams, the governance problem is not just where logs land. Shared indices can blur segregation between production, development, tenants, and priority classes, which makes access control and lifecycle policy harder to enforce consistently. Where the article intersects with identity and access, the key issue is that index structure becomes part of who can read what and under which rules.


Key questions

Q: What breaks when dynamic index routing is added without governance updates?

A: Segregation breaks when new index patterns inherit the wrong mappings, retention settings, or permissions. The routing rule may still work technically, but the surrounding control plane does not, which means analysts can see data they should not, or keep it longer than policy allows. The failure is usually in inherited policy, not in the routing condition itself.

Q: Why does index routing matter for access control and compliance?

A: Because the index boundary determines which data lands under which permissions, retention rules, and audit expectations. If production, development, and tenant alerts share one index family, segregation becomes harder to prove and harder to enforce. Routing therefore affects evidence handling, not just storage efficiency.

Q: How should security teams test dynamic routing before production?

A: They should replay representative events that cover each route condition, including overlapping severity and environment cases, and then confirm the final index name, template inheritance, and access policy. The goal is to detect precedence errors and policy gaps before analysts rely on the data boundary.

Q: What should teams review when creating new routed index patterns?

A: Teams should review the index template, lifecycle policy, and role design together, because a new prefix can inherit none of the assumptions that applied to the default index. If the pattern is new, the governance controls must be deliberately attached to it rather than assumed.


Technical breakdown

How ingest pipeline routing rewrites index destinations

Wazuh implements dynamic routing in the ingest pipeline, where processors act on each alert before indexing. A set processor can overwrite fields.index_prefix based on event attributes, and the downstream date_index_name processor then writes the event into the final index name. This works because the pipeline has access to the alert document at ingestion time, which makes it the right control point for conditional routing. The order of processors matters because later conditions can override earlier ones if they also match.

Practical implication: place the most specific routing rules first and verify the resulting index prefix before production rollout.

Why rule order and condition logic affect segregation

Conditional routing depends on Painless expressions that evaluate event fields such as agent groups, environment, rule level, or custom labels. A simple equality check can isolate a business unit, while AND, OR, and NOT logic can combine scope, severity, and exclusion rules. Because processors are evaluated sequentially, poorly ordered rules can collapse segregation by overwriting a more precise index prefix with a broader one. In other words, the route decision is not only about the condition itself but also about the precedence model around it.

Practical implication: test overlapping conditions explicitly so higher-priority alert classes do not end up in the wrong index.

How dynamic routing changes retention, access, and dashboard design

Once alerts land in different indices, index templates, ISM policies, and role-based access controls have to follow those new patterns. Without that alignment, a newly created index may inherit the wrong mappings, retention settings, or user permissions, which defeats the point of segregation. The dashboard still provides centralized visibility, but governance is now distributed across index design, storage policy, and access policy. That is why dynamic routing is a data-governance decision as much as a logging decision.

Practical implication: update templates, retention policies, and access roles together whenever a new routed index pattern is introduced.


NHI Mgmt Group analysis

Dynamic index routing is a segmentation control, not just a logging convenience. Once alerts are routed by tenant, environment, or severity, the index layer becomes part of the security boundary. That changes how practitioners should think about log architecture, because data segregation and access enforcement now depend on ingest-time policy, not only on downstream storage settings.

Index governance now sits at the intersection of SOC operations and access control. The article makes clear that routed indices can improve retention management and reporting, but only if templates, lifecycle policies, and role-based access controls are updated alongside the pipeline. The named concept here is alert segregation drift, the gap that appears when new routed indices are created without inherited governance controls.

Central visibility and distributed storage are no longer opposites. The operational pattern is to keep the dashboard central while distributing alert data into dedicated indices for business units or environments. That approach is most defensible when the routing rules are explicit, the precedence order is deliberate, and the index estate is reviewed as part of governance, not as an afterthought.

For identity teams, index routing is part of who can access operational evidence. The article’s reference to role-based access controls is important because alert segregation affects auditability, data minimisation, and analyst access boundaries. Practitioners should treat routed indices as governed data domains, not just technical shards.

From our research library:

What this signals

alert segregation drift: When alert routing creates new index families faster than governance rules are updated, the environment gains visibility without control coherence. The practical risk is not data loss, but inconsistent retention and access enforcement across what should be equivalent security records.

Teams should treat dynamic routing as part of their operational governance model, especially where SOC evidence must be separated by business unit or environment. The important question is whether the new indices inherit the same policy intent as the default one, not whether the pipeline can technically write them.

Centralised dashboards can mask a fragmented index estate if index naming, templates, and permissions evolve independently. Security operations should watch for rule precedence mistakes, orphaned prefixes, and stale access roles whenever routing logic changes.


For practitioners

  • Define routing rules by business meaning Map each index prefix to a clear operational boundary such as tenant, environment, or severity class so the routing logic reflects actual governance requirements rather than ad hoc filters.
  • Order the most specific rules first Place narrow conditions ahead of broad ones so later processors do not overwrite a more precise index prefix when multiple conditions match the same event.
  • Synchronise templates and retention policies Review index templates, Index State Management policies, and role-based access controls before production use so new routed indices inherit the intended mappings, retention, and permissions.
  • Validate routing with representative alerts Test production, development, critical, and labelled-agent events against the ingest pipeline to confirm each alert lands in the expected index pattern.

Key takeaways

  • Dynamic index routing turns the index layer into a governance boundary for security data, not just a storage destination.
  • The main operational risk is policy drift, where new routed indices inherit the wrong mappings, retention, or permissions.
  • Practitioners should test routing order, update lifecycle controls, and align access roles before using routed indices in production.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

MITRE ATT&CK addresses the attack and risk surface, while NIST CSF 2.0 and CIS Controls v8 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
NIST CSF 2.0PR.AA-05 — Access Permissions, Entitlements and AuthorizationsRouted indices change who can see which alert data and under what permissions.
PR.DS-01 — Data-at-rest is protectedSeparate indices create distinct storage domains that need independent protection and retention.
GV.PO-01 — Organizational cybersecurity policy is established and communicatedRouting rules only work as governance when index policy is defined before deployment.
Recommendation — Apply PR.AA-05 to align routed index permissions with each data boundary. Use PR.DS-01 to protect each routed index according to its sensitivity and retention needs. Document routing policy so new indices inherit approved governance requirements.
CIS Controls v8CIS-5 — Account ManagementAnalyst access to segregated indices depends on controlled account and role assignment.
Recommendation — Use CIS-5 to assign and review access to each routed index family.
MITRE ATT&CKTA0007 — DiscoveryIndex routing is often used to reduce discovery across business units and environments.
Recommendation — Map index segregation gaps to TA0007 when analysts can discover more data than intended.

Key terms

  • Dynamic Index Routing: A pipeline technique that directs incoming security events into different indices based on event attributes such as tenant, environment, or severity. It helps organisations separate data for access control, retention, and reporting while keeping ingestion centralised.
  • Ingest Pipeline: A sequence of processing steps that transforms and enriches event data before it is stored. In security platforms, ingest pipelines are often the earliest place where routing, normalisation, and policy-like decisions are applied to incoming alerts.
  • Index State Management: Index State Management is the policy layer that controls how indexed data moves through its lifecycle, including rollover, retention, and deletion. In routed environments, each index family needs policies that match its use case rather than inheriting defaults by accident.
  • Alert Segregation Drift: Alert segregation drift is the control gap that appears when new routed indices are created without the same access, retention, or mapping policies as the original index. The technical routing may work, but governance coherence is lost across the index estate.

Deepen your knowledge

NHI Mgmt Group covers identity security, NHI governance, and agentic AI through independent research, practitioner guides, and the NHI Foundation Level course. Explore nhimg.org for resources that connect identity governance to the broader security disciplines your programme depends on.
NHIMG Editorial Note
Published by the NHIMG editorial team on August 18, 2026.
Updated on October 12, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org