Migrating Wazuh indices between indexer clusters

Moving historical Wazuh alerts to a new indexer cluster is a snapshot, restore and cutover project with checks at every step. This page explains the options, the sequence and what to confirm before you start.

On this page

Migrating Wazuh indices between indexer clusters: when a new cluster is the right move

You are running a Wazuh deployment whose indexer cluster is being replaced, resized or moved to new hardware, and years of alerts must stay searchable after the change. The migration does not copy index files between machines. It moves stored alert indices by taking snapshots on a shared repository and restoring them into the new cluster, which is the only method this topic covers. Wazuh has four components: the Wazuh indexer, a full-text search and analytics engine that stores alerts; the Wazuh server, which analyzes agent data with decoders and rules; the Wazuh dashboard, the web interface; and the Wazuh agents on endpoints. The server and agents keep producing data during the change, so the work is mainly about the indexer, where the historical record lives.

Before you commit to a new cluster, decide whether you need one at all. Adding nodes to an existing cluster, or changing memory and storage on current nodes, may solve a capacity problem without moving any data, and the sibling topics on node expansion and shard planning cover those paths. A new cluster is the right move when the node layout, operating system, certificate authority or hosting location must change in ways an in-place expansion cannot reach. Confirm with the Wazuh release notes (Wazuh release notes) that the source and target indexer versions are compatible with your Wazuh server and dashboard versions, and check the current 4.14 patch level on both sides before you plan the cutover. Ask whether your snapshot repository is reachable from every node in both clusters, and who owns the agreed cutover window.

Choosing a migration method for historical alerts

This table compares the three ways to move historical alerts into a new Wazuh indexer cluster: snapshot and restore, re-indexing from the source, and file-level copies of data directories. Read each row against your retention needs, your tolerance for a cutover gap, and what your auditors will accept as evidence. The main takeaway is that only snapshot and restore is a supported path for moving indexed data, so it should be the default unless a specific constraint rules it out.

MethodWhen it fitsWhat it preservesWhat it risks
Snapshot and restore on a shared NFS repositoryDefault choice when the old and new clusters can both reach one repository and the indexer versions are compatibleDocument timestamps, index mappings, and the shard and replica layout recorded at snapshot timeRepository permissions, NFS latency, and restoring into a cluster with different sizing; restore testing is required
Re-indexing from the sourceWhen the target needs a different mapping, shard count, or field layout than the source indicesOnly what the re-indexing job copies; timestamps and fields must be mapped explicitly, and replicas are rebuilt on the new clusterLong runtime on large indices, load on both clusters, and possible gaps or duplicates if the source keeps receiving alerts
File-level copy of indexer data directoriesGenerally not recommended; considered only as a last resort in a lab with no supported pathRaw bytes of shards, but no guarantee the copied state is consistent or loadable by the target nodeNot a supported backup path, may corrupt indices, and loses cluster state and index metadata; do not use for production alerts

How snapshots carry alert indices and timestamps to the new cluster

A snapshot is the mechanism that moves historical alerts between indexer clusters. When you snapshot the wazuh-alerts-* indices, the indexer writes each index's data, its mappings and its settings into a repository, and the repository is the only thing the new cluster reads from. The timestamp field in each alert document is part of the stored mapping and data, so a restore keeps the original @timestamp values rather than stamping documents with the restore time. This is what lets investigators and auditors search the migrated history by the time the event actually happened. Snapshots are incremental at the segment level, so the first snapshot carries the full history and later ones only add new data, which matters when the cutover window is short.

The repository is a shared NFS path that both the old and new indexer nodes mount at the same location. Every node that writes or reads the repository must see the same path, the same permissions and the same ownership, and the path must be listed in the path.repo setting on each node before the repository can be registered. Mismatched mount points or a missing path.repo entry are the most common reasons a repository registration fails, so check both before you start. Restore into a cluster that has no conflicting indices with the same names, and keep index names and mappings identical to the source so that timestamp fields keep their date type and the alert searches and dashboards continue to work without changes.

Confirm the compatibility matrix in the Wazuh documentation for your exact release before you plan the restore. The current line is 4.14, and the latest patch we reference is 4.14.9, released on 14 October 2026. The target indexer must run a version that the source snapshot can be restored into, and the indexer and dashboard versions must match what Wazuh documents for that release. Test one restore of a representative index into a staging cluster, compare document counts and a sample of @timestamp values against the source, and only then schedule the production cutover.

Migration flow from source cluster to target cluster

The migration starts on the source Wazuh indexer cluster, which writes snapshots of the alert indices to a shared NFS repository that both clusters can reach. The target cluster registers the same repository, restores the indices, and is checked in the Wazuh dashboard for document counts and preserved timestamps before anything changes. Only after those checks does the Wazuh server point at the new cluster. If validation fails, the server stays on the source cluster, which is the rollback path.

Snapshot, restore, validation, then cutover or rollback to the source cluster.

How to run the migration in sequence

The sequence moves historical alerts through a shared snapshot repository into a target cluster, proves the copy matches the source, and cuts over with the source kept as a read-only fallback until validation is signed off. Each step closes with a check, so no step begins on an unverified assumption.

  1. Prepare the NFS repository and permissions

    The indexer administrator mounts the same NFS export at the same path on every source and target indexer node, and confirms the mount is writable by the user that runs the indexer service. The export must be reachable from all nodes, and the path must be listed in the indexer's path.repo setting on each node before any repository is registered. Check: write and delete a test file as the indexer user on every node, and confirm that each node sees the same files when you list the mount point. Any node that fails this check will cause snapshot errors later, so fix it here.

  2. Register the repository on both clusters

    Register a snapshot repository with the same name and the same NFS location on the source cluster and on the target cluster. Use the indexer's snapshot API or the dashboard's snapshot management, and keep the repository name in your runbook because later steps refer to it. Check: run the repository verification call on each cluster and confirm it reports every node as having access. A verification failure on either side means the repository is not ready, and you should not take a snapshot until it passes.

  3. Take and verify the source snapshot

    Create a snapshot of the wazuh-alerts indices you intend to move, naming the snapshot so it is clear which date range and index pattern it holds. Include global cluster state only if your runbook requires it, and record the snapshot name, start time and index list. Check: confirm the snapshot status reports success with no failed shards, and compare the listed index names with the source index list. A partial snapshot is a defect to resolve before the restore, not something to fix in the target.

  4. Restore indices to the target with original names

    Restore the snapshot on the target cluster, keeping the original index names so that existing index patterns, Wazuh templates and rules match the data without rewriting. Make sure the target cluster has the matching Wazuh index templates installed before the restore, so that field mappings come from the template rather than from dynamic guesses. Check: confirm the restore completes with no failed shards and that the target lists each restored index as open and healthy. If an index name collides with a live index on the target, stop and resolve the collision instead of renaming on the fly.

  5. Compare counts, timestamps and mappings

    The indexer administrator compares, for each index, the document count, the earliest and latest @timestamp values, and the field mappings between source and target. Run the same count and min/max queries on both clusters and store the output with the migration record. Check: counts and timestamp ranges match exactly, and the mapping for each index shows the same field types. Any difference should be explained and documented before cutover, because a mismatch here usually points to a template or date-format problem that will affect searches later.

  6. Freeze writes and repoint the Wazuh server and dashboard

    During the agreed cutover window, stop or pause the Wazuh server's delivery of new alerts to the source cluster, let in-flight data drain, and take a final incremental snapshot if new alerts arrived since the first one. Then update the indexer connection settings on the Wazuh server and the dashboard to point to the target cluster and restart the services in the order your runbook specifies. Check: confirm new alerts appear in the target cluster and that the dashboard loads historical and current results from it. Also confirm that the server's connection to the indexer succeeds in its logs.

  7. Keep the source read-only until validation completes

    Set the source cluster's indices to read-only and keep the source cluster running, with its data and snapshot repository intact, until the team has signed off on the target. Keep the snapshot repository in place as a recovery point. Check: attempt a test write to a source index and confirm it is rejected, and confirm that searches against the target return the expected historical results. Only after the agreed validation sign-off should the source be decommissioned, and that decision belongs in a separate change record.

Planning the cutover window and what happens to new alerts

The snapshot you restore on the target is a point in time, so everything the source indexes after that point needs a plan. The cards below cover the delta, ingestion control, index and policy alignment, dashboards, rollback and sign-off, which together decide whether the cutover loses no alerts.

Measure the delta after the snapshot

Alerts that arrive after the final snapshot exist only on the source cluster until you copy them. Size the window from your own ingestion rate and how long the snapshot and restore take in your environment, not from a figure you were given elsewhere. Record the newest @timestamp captured in the snapshot so you can later query the source for everything after it. Confirm this with a test restore before the change window.

Pause or buffer agent ingestion

Decide whether agents and the Wazuh server keep sending events during the window, and where those events wait if they do. Stopping the server cleanly keeps alerts from splitting across two clusters, while buffering keeps the source queue running. Check how your forwarding path behaves during an outage, because events that are dropped during the window cannot be recovered later from the target. Confirm the chosen behavior in your own test environment.

Align index patterns and ISM policies

The target indexer needs the wazuh-alerts-* index template, matching index patterns and any Index State Management policy in place before restored indices arrive. A mismatch can leave restored data without retention rules or with the wrong shard and replica settings. Compare the source and target templates side by side and confirm the policy names and attachment rules match what your compliance owner expects.

Move dashboard saved objects

Dashboards, saved searches and visualizations are stored as saved objects that point at index patterns. If the target index pattern IDs differ from the source, charts and saved queries may show empty results even when the data restored correctly. Export the saved objects from the source dashboard, import them on the target, and verify that a sample of panels returns the expected counts for a known date range.

Write the rollback plan

Define in advance the condition that triggers rollback, such as a failed count comparison or missing alerts in a sampled time range, and the steps to return agents and the Wazuh server to the source cluster. Keep the source cluster intact and writable until the target passes verification. Note who can make the rollback call and how long the source must stay available afterward. Test the rollback steps in a non-production copy when you can.

Confirm who signs off

Name the people who approve the cutover: the platform owner who runs the change, the security operations lead who depends on alert continuity, and the compliance owner who relies on retained history. Agree on the evidence each one needs, such as document counts per index, timestamp checks and dashboard verification results. A written sign-off record also shows auditors how the migration preserved retained alerts.

Questions teams ask before migrating Wazuh indices

What drives the effort and cost of migrating Wazuh indices?

The main drivers are the volume of historical alerts, how many indices and index patterns must move, how many nodes the source and target clusters have, and how much validation the business requires. Cost has two parts: internal staff time for planning, testing and the cutover, and any partner fees for the written scope. Storage for the snapshot repository and temporary capacity on the target cluster are infrastructure costs that recur only while the data is kept. Ask any quote to itemize discovery, repository setup, test restores, the cutover runbook, validation and rollback support, so you can see which parts scale with data volume and which are fixed.

Can our team migrate Wazuh indices without outside help?

Yes, if your engineers already operate the Wazuh indexer and have done snapshot and restore work. The core steps are registering a shared snapshot repository, taking snapshots from the source cluster, restoring into the target cluster, and checking the result before pointing the Wazuh server and dashboard at the new cluster. The skills gap is usually in restore testing, handling index templates and state management policies, and writing a cutover plan that covers alerts still arriving. Ask whether anyone on the team has restored indices in a test environment before attempting it on production data. If not, a scoped test run is a sensible first step.

What does the migration need from our team?

You will need an NFS export that both clusters can mount at the same path, with enough capacity for the snapshot set and room to grow during testing. The team also needs administrative access to both indexer clusters, the Wazuh server and the dashboard, plus permission to change the cluster configuration files that set the repository path. Plan a change window agreed with the security operations team, because new alerts will continue to arrive during the work. Test data is important: a copy of recent alerts from the source cluster, used in a non-production restore, lets you check mappings, timestamps and search before the real cutover.

How long does the project take, and what makes it longer?

Duration depends mainly on how much historical data must move, how fast the storage path can read and write snapshot data, how many indices need checks, and how long your change approval process takes. Restore time grows with data volume, so large archives can take far longer than a small test set. Schedule time for discovery, a full test restore, validation, and a rehearsal of the cutover. Ask for a timeline in the written scope that separates these phases, and confirm the durations against a restore test in your own environment rather than relying on a general figure.

How do we confirm that timestamps are intact after the move?

Compare the source and target before cutover. Check that the document count per index matches, that the time field mapping is still a date type, and that the earliest and latest timestamps in each restored index match the source. Then run a set of saved searches over known time windows and compare the results with the source dashboard. Keep the time zone handling consistent in the queries, and confirm that the restored indices keep their original names so that dashboards and index patterns resolve. Record the checks in a validation sheet so the result can be reviewed later.

What happens to alerts that arrive during the cutover?

Alerts generated while the snapshot is taken or the cutover is in progress can be lost from search or split across two clusters unless the plan covers them. A common approach is to take a snapshot for the bulk of history, then take a final incremental snapshot close to the switch, and to pause or redirect the Wazuh server output for a short period. Confirm with your architects how the Wazuh server and any forwarders will reconnect to the new cluster, and whether any events will be buffered. Document the expected gap and check it after cutover by comparing agent event counts with indexed counts for the same window.

Is a rollback possible if the new cluster has problems?

Yes, provided the source cluster stays intact until the target is accepted. Keep the source indices and their snapshots untouched during the window, and do not delete them until validation and a monitoring period have passed. Rolling back means pointing the Wazuh server and dashboard back at the source cluster and replaying any alerts that were sent only to the target. Write the rollback steps into the runbook, rehearse them, and assign an owner with authority to trigger the switch. Ask any partner to show how the rollback path is tested, not only how the forward path works.

When is it worth bringing in a partner for this work?

A partner is most useful when the data volume is large, the migration touches regulated records that need a documented validation trail, the team has not restored indices before, or the change window is tight. DeployOpen plans, implements, backs up, documents and supports self-hosted open-source platforms in your own infrastructure, so the work can be scoped and agreed in writing before it starts. A partner can run the discovery and test restores, prepare the runbook and validation evidence for your compliance team, and support the cutover and rollback. Your internal team still owns approvals, access and the final decision to switch.

Why a test restore comes before any production cutover

A test restore into a non-production indexer cluster is the most reliable way to find NFS, permission and version problems before they affect live alerts. Snapshots can report success on the source side while the repository path is unreadable from the target nodes, the path.repo setting does not match the mount, or the UID and GID on the shared export differ between nodes. None of these show up until a restore actually reads the files. Run the restore from the same shared repository the production cutover will use, into a target cluster built the way production will be built, and treat any failure as a blocker rather than a retry.

Judge the restored data against the source with a defined sample rather than a visual check of the dashboard. Pick indices from the oldest, middle and newest parts of the retention window, plus at least one index with a rollover history, and compare document counts, the @timestamp values at both ends of each index, and a set of field mappings that your rules and saved searches depend on. Check that timestamps keep their original time zone and precision, because a shift in parsing will move alerts across day boundaries and break time-based searches. Confirm the sample against the source cluster's own counts at the moment of snapshot, since alerts still arriving during the test will otherwise look like missing data. Confirm the exact comparison method and any tolerance with your own indexer team before the run, and record it in advance.

Keep the evidence in the change record so the cutover decision can be audited later. Store the snapshot name and repository location, the source and target indexer versions, the restore request and its response, the sample list with counts and timestamp ranges for each side, the mapping comparison output, and the names of the people who approved each result. Record any NFS mount options or permission fixes that were needed, because the production runbook must repeat them exactly. Ask your compliance lead which of these records they need to retain and for how long, since that answer depends on your own obligations and is not set by the platform.

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.