Wazuh indexer snapshots and restore

Back up indexed Wazuh alerts with indexer snapshots, test restores on a schedule, and understand why file-level backups of central components leave alert data unprotected.

On this page

Wazuh indexer snapshots and restore: what they protect and when you need them

Back up the Wazuh indexer with snapshots, because file-level backups of the other Wazuh components do not contain your alert history. The indexer is the component that stores alerts, and it is often the evidence an investigation or audit asks for months later. 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 installed on endpoints. Copying the server and dashboard configuration gives you a working platform with no history in it.

The Wazuh backup guide for central components states that it does not back up indexer indices or cluster state, and it recommends backing those up separately. That gap matters most for alerts already indexed, since agents can resend recent events but cannot recreate events that were deleted or never retained. A snapshot is the indexer's own point-in-time copy of selected indices, and it is the mechanism you need when history must survive a failed node, a corrupted index, an accidental deletion or a rebuild onto new hardware. Teams usually need snapshots when retention obligations apply, when an incident may reach back beyond the live retention window, or before any change that touches indices, such as reindexing or migration.

Backup approaches for Wazuh indexer data and when each fits

This table compares three ways to protect Wazuh indexer data: indexer snapshots, file-level backups of central components, and replica shards. Read each row as a question of what is captured, what failure it covers, and what your team must operate. The main takeaway is that file-level backups of central components do not include indexed alerts, so snapshots or an equivalent index-level copy are needed for that data.

ApproachWhat it capturesWhat it protects against and what the team must run
Indexer snapshotsIndices stored in the indexer, taken through a registered snapshot repositoryIndex loss or corruption and restoring alerts to a rebuilt cluster. Team must register a repository, schedule snapshots, check them and test restores. Confirm repository type and access in your environment.
File-level backups of central componentsConfiguration, certificates and files on the Wazuh server, dashboard and indexer hostsLost or damaged configuration and host failure. Does not include indexer indices or cluster state, so alerts remain unprotected. Team must still add an index-level backup.
Cluster state backupIndexer cluster metadata such as settings, templates and policies, as the Wazuh guidance suggests backing up alongside indicesLoss of cluster-level settings needed to rebuild. Team must document what is captured and rebuild steps. Confirm the method against the current Wazuh backup guide.
Replica shardsSecond copies of shards held on other indexer nodes in the same clusterLoss of a single node while the cluster stays up. Does not protect against deletes, bad policies, or cluster-wide failure, so it is not a backup on its own.
Restore testingA restored copy of selected indices in a separate environmentConfirms that snapshots are usable. Team must schedule tests, record results and confirm the restore time meets your recovery targets.

How to set up a snapshot repository and first snapshot

This sequence registers a snapshot repository the indexer nodes can reach, takes a first snapshot of alert indices and confirms that the snapshot is complete and readable. The result is a known-good backup point and a repeatable check you can run before any restore test.

  1. Confirm the cluster and indices to back up

    Before touching the repository, the administrator checks cluster health and lists the indices that hold alerts, such as the wazuh-alerts-* family, along with any other indices the team wants covered. Run the health check against the indexer API and note which indices are in scope. Confirm the cluster reports a green or yellow status and that every indexer node is listed as a member. This inventory becomes the reference you compare against when you verify the snapshot later. Also confirm which indices are excluded, since the Wazuh backup guide for central components notes that indices and cluster state are not covered by file-level backups.

  2. Prepare shared storage for the repository

    Create a storage location that every indexer node can reach with the same path or endpoint, such as a shared network file system mount or an S3-compatible bucket. Set the ownership and permissions so the indexer service account can write and read the location. Add the path to the indexer's allowed repository locations in its configuration file, then restart the affected nodes using your normal change process. Verify access by writing and deleting a test file from each node as the service account. Repository type and access settings differ by indexer version and storage backend, so confirm them against the Wazuh indexer documentation for the version you run before you apply them.

  3. Register the snapshot repository

    Register the repository through the indexer snapshot API or the dashboard's snapshot management tooling, naming the repository, its type and its location settings. Use a name your team will recognize in restore runbooks. Registration does not copy data, so the call only proves that the configuration is accepted. Verify the registration by listing repositories and confirming the new entry appears with the expected settings. If registration fails, the error usually points to an access problem on a node or a location that is not listed in the allowed paths.

  4. Verify the repository on every node

    Ask the cluster to verify the repository, which checks that each data node can write to and read from the location. A successful verification lists the participating nodes. If any node is missing or the call returns an error, fix the mount, permission or network route on that node and repeat the check. Do not take a snapshot until verification passes on all data nodes, because a snapshot taken through a partially reachable repository can fail or be incomplete. Record the verification output in your change record.

  5. Take the first snapshot

    Start a snapshot of the in-scope indices into the verified repository, using a name that includes the date and the cluster name so it is easy to find. Set the indices list explicitly instead of relying on defaults, and decide whether the snapshot should wait for completion. Note the snapshot name and the time the request was accepted. Snapshots run in the background, so the request returning does not mean the data is safe yet. Plan the first run for a period of lower alert ingestion where your team can, and keep the indexer under normal monitoring while it runs.

  6. Check the snapshot state and completeness

    Query the snapshot status and confirm that its state reports success and that the count of successful shards matches the total shard count for the selected indices. Compare the listed indices with the inventory from the first step. Any failed or partial shard means the snapshot cannot be relied on for restore, so investigate the cause in the indexer logs and take a new snapshot after the fault is fixed. Keep the output of the status call with the change record as evidence that the backup completed.

  7. Inspect the snapshot contents

    List the snapshot's contents, including the index names, document counts where the API reports them, and the start and end times. Spot-check a recent day of alerts by comparing a sample of alert counts in the live index with the expected range from the snapshot metadata. This confirms that the snapshot holds the data you think it holds and that timestamps are intact. Record the snapshot name, repository, index list and check results in your runbook, then schedule the next snapshot and a restore test using your own retention and testing policy.

Managing snapshots in the Wazuh dashboard

Once a snapshot repository is registered, most of the routine work happens in the Wazuh dashboard: checking that snapshots are being taken, scheduling them, reviewing their status and removing old ones. Confirm which management screens and API calls exist in the version you run before you write runbooks around them, because the exact menu paths and options can differ between releases.

Confirm the screens available

Before writing a runbook, open the snapshot management screens in your installed version and list what they actually offer: repository registration, policy creation, snapshot listing, status and deletion. Record the menu paths and the API calls behind them, and keep that list with your restore procedure. A runbook that names a screen your version does not have will fail during an incident, when it matters most.

Release notes

Listing existing snapshots

Review the snapshot list for the repository and confirm that snapshots exist for each expected period, with the indices and cluster state they should contain. Compare the most recent snapshot time with your recovery point objective. A repository that holds old snapshots only, or none for a recent window, signals a failed schedule even when the dashboard shows no error.

Scheduling recurring snapshots

Set a snapshot schedule that matches how quickly your organization can accept losing alert data. Check the schedule's time zone, the indices it selects and whether it includes the indices that hold alerts from the wazuh-alerts pattern. Ask whether the chosen method also captures cluster state, because the central components backup guidance treats it as a separate item.

Checking snapshot status

Check each snapshot's state after it runs, and treat partial or failed snapshots as incidents rather than warnings. Review the number of indices included and any error messages. Set an alert or a recurring check so that a failure is noticed within a day rather than discovered during a restore test.

Deleting old snapshots

Remove snapshots only after the retention rule for the data they contain has been agreed and the restore point you still need is confirmed. Deleting a snapshot removes the only copy of data that is no longer in the live indices, so check whether any retained snapshot still depends on shared segments before you delete. Record each deletion in your change log.

Protecting snapshot management access

Limit who can register repositories, create policies and delete snapshots to a small group of administrators. Pair these permissions with separate access to the repository storage itself, so that a dashboard user cannot remove backups by changing settings alone. Ask your identity team to confirm how these roles map to your single sign-on groups.

How to test a restore before you need one

A snapshot only counts as a backup once you have restored it and checked the result, so the first thing to plan is a restore test run in a separate indexer environment. Use a non-production indexer cluster, register the same snapshot repository there, and restore a sample set of indices, such as one day of wazuh-alerts-* data plus one agent-related index if your deployment uses them. Do not restore over production indices. Record the snapshot name, the Wazuh release line and the indexer version used, because a restore is only meaningful against the same environment you would rebuild in an incident.

Once the restore completes, compare the restored data with what you expected. Confirm document counts per index against the counts recorded before the snapshot, run a few known searches in the Wazuh dashboard (for example, for an alert you can identify by agent name and rule ID) and check that the results match. Time the whole run from repository access to a usable dashboard, and write down anything missing, such as index templates, ISM policies, dashboard saved objects or security roles, which a snapshot of indices alone will not return. Those gaps are the most useful output of the test because they show what your runbook must add.

Set the cadence from the recovery need, not from habit. Ask your compliance and risk owners how much alert history and how many hours of loss the business can tolerate. If you are a financial entity other than a microenterprise, DORA Article 11(6) requires ICT response and recovery plans to be tested at least yearly and after substantive changes, including switchovers to backups, so schedule a restore test after upgrades, storage changes or new indexer nodes as well. Confirm with your own regulator and auditors how they expect that testing to be evidenced.

How snapshot controls map to CIS, DORA and Essential Eight

Safeguard 11.1 asks for a documented data recovery process that covers scope, recovery priorities and the protection of backup data, reviewed each year. Safeguard 11.2 asks for automated backups of in-scope assets at a frequency that matches data sensitivity, weekly or more often. A snapshot schedule can supply direct evidence for 11.2 through its configuration and run history. It supplies much less for 11.1, because the recovery document must name the indices in scope, the restore order and the owners, and a scheduler does not write those decisions for you.

  • Schedule evidence (11.2): the snapshot policy definition, its interval and a run history that shows each job completed or failed.
  • Scope evidence (11.1): the index patterns included, such as wazuh-alerts-*, and an explicit statement of what is excluded. The Wazuh central component backup guide does not cover indices, so scope has to be written down separately.
  • Sensitivity basis: a record that the chosen frequency was set by data sensitivity. The schedule alone does not show that the decision was made.
  • Review record: the annual review of the recovery process is a signed or dated record. Snapshots cannot show that review took place.

Check that the snapshot interval in the policy matches the frequency stated in the recovery document, and that the annual review is recorded.

Protecting snapshot data and the repository

A snapshot repository holds a complete copy of your indexed alerts, so it needs the same protection as the live indexer. The cards below cover who can reach the data, where it sits, how it is encrypted and isolated, and how long copies persist after ISM has deleted the source indices.

Snapshots hold full alert data

A snapshot is a copy of the indices themselves, so every alert, agent name, IP address and user field in those indices is in the repository. Treat the repository as sensitive data at the same classification as the indexer. Before you create it, confirm with your data owners which indices are included and whether any of them carry regulated personal or health data.

Backup admins versus analysts

Restoring a snapshot and reading alerts are different privileges, and they should sit with different people. Analysts usually need search access in the dashboard, while the people who can register repositories, take snapshots and restore them can copy or overwrite data. Map each role to the indexer security roles you use, and review who holds snapshot permissions on a set schedule.

Separate backup storage from the indexer

A repository on the same disks, hosts or virtual machines as the indexer fails together with it. Place the snapshot location on storage that is administered separately and reached over a network path the indexer nodes cannot use to delete data. Confirm with your storage team how the shared repository location is mounted, who controls it, and whether it is reachable from the indexer only when a snapshot runs.

Encrypt and isolate recovery data

CIS Controls Safeguard 11.3 asks that recovery data be protected as well as the original, through encryption or data separation. Safeguard 11.4 asks for at least one isolated copy, such as offline, cloud or off-site version-controlled storage. Decide how the repository is encrypted at rest and whether one copy is kept out of the indexer's administrative reach. Ask your team to confirm both points in writing before go-live.

CIS Control 11 specification

Snapshots outlive ISM deletion

An ISM retention policy deletes indices from the live cluster, but snapshots that already include those indices keep their data until you delete the snapshot. Retention can therefore run longer than your alert policy, and sensitive data may persist past its approved period. Set a separate snapshot retention rule, record which snapshots contain which date ranges, and confirm the retention period with your compliance owner.

Questions teams ask before setting up Wazuh indexer snapshots

What drives the cost of setting up Wazuh indexer snapshots?

The main cost drivers are the size and growth rate of your indexed alerts, the storage you dedicate to the snapshot repository, the number of restore tests you run, and how many environments need coverage. Storage is recurring because every retained snapshot consumes space for as long as you keep it. The setup itself is largely one-time work: creating the repository, registering it, and writing the snapshot policy. Ask any provider for a written quote that separates one-time setup, the test restore cycle, and the ongoing retention and monitoring you expect your team to carry. Your own storage pricing will also shape the total, so get that number from your infrastructure team before comparing offers.

Can our in-house team set up Wazuh indexer snapshots without a consultant?

Often yes, if your team already runs the Wazuh indexer and has experience with cluster administration, shared storage and certificate-based access. The Wazuh documentation describes the snapshot steps, but the hard parts are usually outside the product: agreeing on retention with compliance, providing a repository location that survives a cluster failure, and proving that a restore works in a separate environment. Most in-house gaps show up in the restore test, not the initial snapshot. Check whether someone can run a full restore into an isolated cluster and document the result, because that test is the evidence auditors and incident responders will ask for.

What does the work need from our team before it starts?

You will need to provide four things: a repository location with enough capacity and access controls, administrative credentials for the indexer cluster, a restore environment that is separate from production, and a named owner who can approve retention and access decisions. The repository must be reachable by every indexer node that writes snapshots, so network paths and permissions on the shared location need to be checked early. The restore environment should have enough capacity to hold a copy of the indices you plan to test. Ask your provider to list each of these items in the written scope, with the person responsible for each one.

How long does a first Wazuh indexer snapshot setup usually take?

The duration depends on scope: how many indexer nodes you have, how many indices must be covered, whether a shared repository already exists, and how complex your retention and access requirements are. A single cluster with an existing repository is a much smaller job than a multi-site setup with separate restore environments and compliance evidence. No duration is given here because no researched figure is available for this work. Ask for a timeline in the written scope that names the milestones: repository ready, first snapshot verified, restore test passed, and documentation handed over.

Why is a file-level backup of the Wazuh server not enough for alert data?

File-level backups of the Wazuh central components cover configuration and related files, but they do not capture the indexed alerts stored in the Wazuh indexer. The Wazuh backup guide for central components notes that indices and cluster state are not included and recommends backing them up separately. This means that a restored server without indexer snapshots can come back with its configuration but no historical alerts. Confirm this gap with your own backup design before relying on file copies for alert retention.

How does a consultant scope a Wazuh indexer snapshot engagement?

A consultant should start by reviewing your cluster layout, the indices that hold alerts, your retention and recovery requirements, and the storage and access model you can provide. From that review, the written scope should state which clusters are covered, the repository design, how credentials are handled, the restore test procedure, the documentation delivered, and what your team must do afterward. DeployOpen plans and implements self-hosted platforms inside your own infrastructure and agrees scope, deliverables and timelines in writing before work starts, and it does not publish a price list, so the quote follows from that scope. Ask for the restore test criteria to be written down as part of the acceptance conditions.

How snapshots flow from indexer nodes to the repository and back

The flow starts at the Wazuh indexer cluster, where snapshot management is triggered from the Wazuh dashboard or the API. The indexer nodes write snapshot data to a snapshot repository on storage that sits outside the production trust boundary. A restore reads from that repository into a separate test cluster, not back into production. Check that the repository is reachable from every indexer node, that the restore target is isolated, and that indices, not only server files, are included.

Snapshot data moves from production indexer nodes to separate storage, then into a test cluster.

How DeployOpen scopes and delivers Wazuh snapshot and restore work

DeployOpen plans, builds, tests and documents Wazuh indexer snapshot backups inside your own infrastructure, so the indexed alerts are covered by a restore path your team has proven. Engagements are fixed-scope, with the scope, deliverables and timeline agreed in writing before work starts.

How we scope

  • Inventory which indices, alert retention periods and cluster settings must be recoverable, and who owns each one.
  • Agree the snapshot repository location, access model and storage capacity in writing before any configuration begins.
  • Define restore objectives, test frequency and evidence the written scope will produce for your audit or assurance team.

How we build

  • Register the snapshot repository, configure snapshot policies and confirm the dashboard management steps work in your environment.
  • Protect repository credentials and separate backup storage from the indexer nodes to reduce shared failure points.
  • Run a documented restore test into an isolated cluster, checking alert counts, timestamps and dashboard search results.

How we hand over

  • Deliver runbooks covering snapshot schedules, failure alerts, restore steps and the file-level backups of central components.
  • Document the restore test results, open findings and the owners responsible for repeating the test on a set cadence.
  • Train operators on snapshot management and restore so your team can run the procedure without DeployOpen present.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after handover.
  • Retainers can cover periodic restore tests, reviewing snapshot health after Wazuh patch releases and updating runbooks.
  • Ask any partner to confirm in writing which restore tests, reports and response times the retainer includes.

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.