Reindexing Wazuh indices without losing alert search
Reindexing creates a new index and copies the documents into it, so a shard count, mapping or index setting that cannot be changed in place becomes a new index with the target settings. Whether alert search stays continuous depends on how the cutover is planned: which index name the dashboard and the Wazuh server write to, when writes switch over, and how the old index is kept until the copy is verified. The Wazuh indexer is the component that stores alerts and makes them searchable through the Wazuh dashboard, so any gap in the cutover shows up as missing alerts in investigations and reports.
Teams usually need this work after the cluster has grown or the data model has changed. Typical triggers are a primary shard count that no longer matches the node count, a field mapping that was created with the wrong type, or an index setting that the indexer does not allow to change on an existing index. Before any copy starts, confirm with your own indexer cluster which index patterns the Wazuh server and dashboard reference, which index templates will apply to the new index, and how many documents the source index holds. Those three facts decide whether the work is a background copy or a planned window with a write switch.
A reindex copies data through the indexer's own API, so the duration grows with document count, document size, the load on the cluster and the number of replicas the target index is created with. Ask whether the copy can run while alerts keep arriving, and plan how alerts that land during the copy are caught up before the old index is retired. Keep the source index read-only once the target is verified, and do not delete it until alert counts and a sample of searches match on both sides.
Configuration options for a reindex and when each fits
This table compares four ways to rebuild Wazuh indices and shows when each fits, how much search gap it risks, and what extra disk and node capacity it needs. Use it to shortlist an approach, then confirm the exact steps for your Wazuh version in the Wazuh documentation before you run anything.
| Approach | When it fits | Search gap risk | Extra disk and nodes | What to confirm |
|---|---|---|---|---|
| Copy into a new index, then switch an alias or name | Shard or mapping changes on wazuh-alerts indices where the dashboard and alert writes can point at a new name | Low if the alias switch is atomic and writes are paused or routed correctly during cutover | Needs room for a full second copy of the data on the same cluster | Which index names and templates the Wazuh server writes to and reads from in your version |
| Restore a snapshot into a new index | Historical indices already backed up to a registered snapshot repository and a copy is needed for a new layout | Low for history, but alerts written after the snapshot must be reconciled into the new index | Needs a snapshot repository with space and enough cluster capacity to restore alongside live indices | Snapshot management steps and restore behavior for your indexer version, and how Wazuh names restored indices |
| Rebuild on a separate indexer cluster | Large layout changes, node upgrades or a cutover where the old cluster must keep serving search until the new one is verified | Low during the build, with the risk concentrated at the final cutover of agents and dashboard connections | Needs a second set of indexer nodes, certificates and capacity for the duration of the migration | Cluster enrollment, certificate steps and the supported procedure for moving data between clusters |
| Scheduled maintenance window with search reduced | Small indices, limited change scope, or environments where a short loss of search is acceptable to the security team | High for the window itself, since analysts may not see new alerts while work runs | Lowest extra capacity, but the cluster must absorb the rebuild load within the window | Whether analysts and automations accept reduced search, and how alerts received during the window are backfilled |
Which index changes force reindexing of Wazuh indices
Shard count and most field mapping types cannot be changed on an existing index. The primary shard count is fixed when an index is created, so changing it means creating a new index with the wanted settings and filling it from the old one. The same applies to most field type changes, such as turning a text field into a keyword or changing a date format, because the stored structure of existing documents does not change to match a new mapping. Before you start, confirm each setting and mapping change against the Wazuh indexer documentation for your installed version, since the rules for individual parameters are the authority and this section is not a complete list.
Some settings can be changed in place on a live index. The replica count is the common example: you can raise or lower it on an index that already exists, and the cluster adds or removes copies in the background. That makes replicas a tuning lever, not a reason to reindex. Other dynamic settings, such as some index-level refresh and allocation settings, also change without a rebuild. Treat every change as one of three types: changeable in place, changeable only by creating a new index, or unclear. Record the answer for each change in your change plan so the team does not assume a setting is harmless.
Plan for what sits around the index after the switch. Index templates that name the wazuh-alerts-* pattern may need updating so that new indices pick up the corrected shard count or mapping. Index patterns in the Wazuh dashboard point at index names, so saved searches, visualizations and dashboards may need to reference the new index or an alias. Any custom reports, API automations or retention policies that reference specific index names also need a check. Missing these steps is the most common reason alert search appears incomplete after a successful copy.
How long reindexing Wazuh indices takes on large data
Reindexing time is set by the size of the source index, the capacity of the indexer cluster doing the copy, and how much other work runs at the same time. The cards below list the factors that move the window most, so you can estimate where your own cluster sits before you commit to a maintenance slot.
Document count and stored size
The copy has to read and write every document in the source index, so total document count and stored size are the first drivers of duration. Alert indices grow with agent count, rule firing rate and retention, so a index that looks modest in months can be large in years. Check the document count and primary store size of each wazuh-alerts-* index you plan to copy, and note how many indices fall inside the reindex scope. Measure these numbers on your own cluster, not from a generic estimate.
Indexer node count and free disk
Node count sets how much parallel work the cluster can do during the copy, and free disk sets whether the copy can finish at all. The target index needs space alongside the source until you delete the old one, so plan for both copies existing at once. Confirm free disk on every data node, and keep enough headroom that the cluster does not reach its disk watermarks during the operation. Check the watermark settings in the indexer documentation for your version.
Cluster load from agents and searches
Agents keep sending events and analysts keep running searches while the copy runs, and both compete with reindexing for CPU, heap and disk I/O. A busy window with many agents can slow the copy far more than the raw data size suggests. Measure ingest rate and dashboard query load during a normal business day, then decide whether the copy runs in a quiet period or with the write path paused. Ask your team to confirm which search and alerting jobs must keep running.
Replica count on the target index
Every replica on the target index is a second full copy that the cluster must write before the reindex is complete. Setting replicas to zero during the copy and restoring them afterward shortens the write phase, but it removes redundancy for the duration, so the trade-off needs an owner's sign-off. Record the replica count of the source index, the planned target count, and the step at which replicas are restored. Confirm the exact settings sequence against the indexer documentation for your version.
Mapping and pipeline complexity
A mapping change or an ingest pipeline that transforms documents on the way in adds CPU cost to every document copied. Field type changes, new analyzers and scripted transforms all extend the time per document, and a mapping error found late can force a second full run. Test the new mapping and any pipeline on a small sample index first, and time that sample so you can extrapolate the full run. Keep a written list of field changes so reviewers can check the target mapping before the copy starts.
Throttling and batch size
Throttling limits how fast the copy runs, which protects live search and ingest but lengthens the window. Batch size and parallel request settings control how much load each step places on the cluster, and they interact with node count and heap. Choose one throttle setting, measure its effect on a copy of your index, and adjust once before the production run. Write down the values used so the same settings can be reproduced or reverted.
Setup sequence for reindexing Wazuh indices
This sequence moves alert data from an existing Wazuh index to a target index with the new settings, while keeping the old index searchable until the copy is proven. Each step closes with a check that tells the team whether it can move on.
Confirm version and documentation for the change
Before touching data, the platform owner records the exact Wazuh version on the indexer, server and dashboard, and pulls the documentation for that version. Compare the planned change against the release notes for the current 4.14 line, including any patch releases that touch indexer or dashboard behavior. Confirm whether the index template, mapping or shard settings you plan to change are managed by the Wazuh templates or by your own overrides. The step is complete when a written change record names the version, the documentation pages used and the target settings, and a second engineer has reviewed it.
Take and verify a snapshot
Create a snapshot of the source indices in a registered snapshot repository, following the indexer snapshot procedure for your environment. Do not rely on file-level backups of the indexer data directories, because they do not give you a consistent copy of the indices. Verify the snapshot by listing it, checking its state is successful and confirming that the indices and document counts recorded in the snapshot match the source. The step is complete when the snapshot reports a successful state and a test restore of one small index into a scratch cluster or a scratch index name returns the expected document count.
Create the target index and a test subset
Create the target index with the new shard count, replica count and mappings, and keep the source index unchanged. Copy a small, known time range into the target first, for example one day of alerts, so mapping and shard issues show up before the full run. Check the target's settings and mappings against the source and confirm that date, IP and keyword fields keep their types. The step is complete when the test subset loads without mapping errors and the target's settings match the change record.
Run the copy in batches with progress checks
Copy the remaining data in time-bounded batches, using the reindex operation with a clear source query for each batch. Record the task ID and the batch boundaries so that a failed batch can be rerun without duplicating documents. After each batch, check the task status for failures, watch cluster health and heap pressure, and log the number of documents written. The step is complete when every batch reports zero failures and the cumulative written count matches the expected source count for the range. Duration depends on index size, node resources and the throttling you set, so confirm expected timing with the platform team on your own hardware before scheduling.
Compare counts and sample queries
Compare document counts between source and target for each batch and for the full range, then run the same sample queries against both indices. Use queries that matter to analysts, such as a known agent name, a rule ID, a time window containing a known event and a query on a mapped IP or user field. Compare the top results and totals, and investigate any difference before continuing. The step is complete when counts match, and the sample queries return the same totals and the same top documents in both indices. If the source receives new alerts during the copy, account for the documents ingested after the snapshot in the comparison.
Switch writers and aliases in a controlled step
Pause or redirect the writers that feed the alert index, then point the alias or index pattern used by the dashboard and integrations at the target. Catch up any documents written to the source during the copy by running a final, short reindex for that window, and confirm no duplicates occur. Resume writers only after the alias points at the target. The step is complete when the alias resolves to the target, the writers show successful indexing in their logs, and no new documents appear in the old index after the switch.
Confirm dashboard searches return expected results
Log in to the Wazuh dashboard with a test account that has the same role as analysts, then run saved searches, the main alert views and any compliance or agent dashboards against the new index. Compare the results with the pre-change baseline you recorded from the source. Check that new alerts arriving after the switch appear in the same views. The step is complete when the baseline searches return matching totals and fresh alerts appear within the normal ingestion path, with no permission or index pattern errors.
Retire the old index after a retention hold
Keep the source index, and its snapshot, for a retention hold agreed with your compliance and incident response owners before deleting anything. During the hold, keep the snapshot available and document the date the hold ends. When the hold expires and the owners sign off, delete the old index and confirm its retention policy or snapshot lifecycle no longer references it. The step is complete when the change record shows the hold end date, the sign-off, and a listing that confirms the old index is gone while the target and the retained snapshot remain.
How the alias cutover keeps search running
The flow starts with agents and the Wazuh server writing new alerts through an alias that points at the source index, which still holds the existing alerts. Documents are copied into the target index while the dashboard keeps querying the alias, so search stays on the source. Before the alias moves, check that writes are paused or caught up and that the document counts in source and target match. If validation fails, the alias stays on the source index, which is the rollback path.
Alias keeps writes and dashboard queries on one name while the copy runs.
Keeping alert search working during the reindex
When analysts depend on alert search around the clock, the reindex has to run beside live ingestion. The usual pattern is to create a new index with the target settings, copy documents into it while the agents keep writing to the existing index, then move the read path to the new index in a controlled step. New alerts keep arriving during the copy, so the new index will lag the old one until the final catch-up pass. Dashboard saved searches and index patterns point at the index name or pattern you configure, so check which ones reference the exact index being replaced before you start.
- Write path: Confirm how the Wazuh indexer and the Wazuh server route new alerts during the copy, and which index name receives them after the switch.
- Read path: Decide whether analysts search the old index, the new index or a pattern that covers both, and document the overlap window.
- Saved searches: Inventory every saved search, visualization and alerting monitor that targets the old index name and plan how each is repointed.
- Pre-switch tests: Compare document counts and sample queries between the two indices for the same time range, and test alert lookups by agent and rule ID.
- Rollback: Keep the old index intact until the new one has passed the comparison and a full working shift has run against it.
Confirm with your own monitoring that alert ingestion lag stays within your detection requirements during the copy, and that access roles cover the new index.",
If the organization can accept a planned window with no new alerts or limited search, the work is simpler and easier to verify. Stop or pause the components that write alerts, perform the copy against a quiet index, validate the result, and then restart ingestion against the new layout. Analysts should know in advance that searches for the window may return stale results, and that the window should not overlap a high-activity period for your environment.
- Write path: Stop alert writes at the agreed point, drain queued events where the platform allows, and record the last alert timestamp before the copy.
- Read path: Announce the window to analysts and keep the old index available for read-only lookups if your access model permits it.
- Saved searches: Update dashboard objects and any automations after validation, not during the copy, so you do not chase partial results.
- Pre-switch tests: Confirm the document count, the newest and oldest timestamps, and a set of known alerts match between the indices before restarting ingestion.
- Restart checks: Verify that new alerts appear in the new index with the expected shard and replica settings and that no agent backlog is left unprocessed.
Confirm the window length with the platform team using the size of your own indices and copy speed in a test environment, since the duration depends on your hardware and data volume.",
In an air-gapped network, the copy and any backup must stay inside the boundary, so you cannot rely on external repositories or cloud copies. Snapshots written to a repository on the internal network are the normal way to move data between indices or clusters, and the repository location, its permissions and its retention must be planned like any other sensitive store. Updates to vulnerability content also come through an offline repository rather than live feeds, which affects what the restored index reflects after the switch.
- Write path: Keep ingestion running if the design allows it, or plan a controlled stop that your change process records.
- Read path: Test that the dashboard and API reach the new index using only internal endpoints and certificates.
- Snapshots: Confirm the shared repository is reachable from every indexer node, that access is limited to the indexer service account, and that snapshot files are encrypted or protected at rest according to your policy.
- Pre-switch tests: Restore a snapshot of the target index into a test cluster and compare counts, mappings and sample searches before any production change.
- Offline content: Confirm which vulnerability and rule content the restored data relies on, and how it is refreshed inside the network.
Confirm with your security team where copies may reside, who may read the repository, and how the change is recorded for your audit trail.
Security and data handling during reindexing
A reindex creates a second full set of alert data, short-lived credentials and temporary indices that all fall under your existing policies. The cards below cover the controls that should travel with the copy, from scoped job credentials to the offline network case, and each one should be confirmed against your own policies before the job starts.
Scope the job's indexer credentials
The reindex job calls the Wazuh indexer API, so it needs an indexer user whose role allows reading the source indices and creating and writing the target indices, and nothing more. Avoid reusing the built-in admin account or the dashboard user for this work. Create a dedicated role limited to the wazuh-alerts-* index patterns involved, store the password in your secrets manager, and remove the user and role when the migration closes. Confirm the role mapping against the indexer security documentation for your version.
Encrypt and restrict the copy
Once the reindex finishes, the target indices hold the same alert content as the source, so they need the same protection. Confirm that transport and HTTP encryption on the new indices match the source cluster, that the same role-based access applies, and that dashboard users see the same visibility rules. Treat the copy as regulated data if the source is regulated, and check that disk encryption on the nodes that hold the new shards meets your standard.
Include temporary indices in retention
Reindexing leaves behind source indices, target indices and any snapshot taken before the switch, and each one can quietly keep alerts after your retention policy says they should be gone. Record every temporary object in your change ticket, set an explicit deletion date, and check that any index state management policy matches the target names. Delete the old source index only after validation, and confirm that snapshot retention covers the same period as the live data.
Log the switch and the job
Audit logging should capture who started the reindex, which credentials ran it, when the alias moved to the new index, and when the old index was deleted. Without these entries, an analyst who searches a time range may not know which copy answered the query. Enable the indexer audit log before the job starts, forward it to the same destination as your other security logs, and retain it under your standard audit period. Confirm the audit settings with the Wazuh documentation for your version.
Plan storage for restricted networks
In an offline or air-gapped environment, a reindex may need extra disk space on the same nodes or a separate repository for snapshots, and copies cannot leave the enclave to be stored elsewhere. Confirm where the temporary copy and any snapshot repository will live, who can reach it, and whether it falls inside the same classification boundary. Check the offline installation guide for the components that must be present locally, and record the storage location in your data handling register.
Limits to confirm before you reindex Wazuh indices
Before any reindex starts, confirm the exact indexer and Wazuh release in use and whether the change you plan is supported in place or only by creating a copy. Record the indexer version, the Wazuh server and dashboard versions, and the patch level of each node, then compare them with the Wazuh release notes for the release line you run. The supplied facts list 4.14 as the current release line, but they do not say which operations each release supports in place, so the vendor documentation for your exact version is the source to check. Ask Wazuh directly if the documentation is unclear about shard count or mapping changes on your version.
Next, map every consumer of the indices you would touch. Index state management policies and index templates that target wazuh-alerts-* names can rename, roll over or delete the new copy if they match it, so review each policy and template before the job starts and decide whether to pause them for the duration. Archives and any other index or alias that depends on the same names need the same review. Confirm which dashboards, saved searches, API queries and alerting integrations read through an alias, because a switch of alias target during or after the copy can change what those tools return.
Finally, check disk and node headroom for both copies at once. A copy-based reindex needs space for the source and the destination, plus replicas, and that peak can persist until you verify the new index and remove the old one. The supplied facts give no reindex timings and no size or throughput limits, so measure elapsed time on a test index of representative size and extrapolate with a safety margin. Confirm with Wazuh any documented limit on index size or document count that applies to your version. Treat these measurements as the basis for your window and your rollback plan, not as a quote from the vendor.
Reindexing Wazuh indices: questions buyers ask
What does reindexing a Wazuh index cost in effort?
Reindexing costs engineering time, spare storage and a planned window, and the largest driver is how much data the index holds. The work has four parts: designing the target index settings and mapping, copying documents into the new index, verifying counts and searches, and switching the alert pipeline and index patterns over. Storage must exist for both the old and new copies while the job runs, so spare disk capacity on the indexer nodes is a cost to plan for. The cost is mostly one time, but the planning and verification effort recurs whenever the shard layout changes again. When requesting a quote, ask for the written scope, the list of indices covered, the verification steps, the rollback plan and which storage and access the client must provide.
How long does reindexing take on a large Wazuh index?
Duration depends on document count, document size, the number of nodes available for the copy, indexing throughput and how much other load the cluster carries during the job. No timing figure is given here because the supplied research does not provide one for this work. To estimate it for your environment, run a copy of a representative slice of one daily index in a test cluster, measure the rate, and extrapolate across your retained data. Ask any partner to base the schedule on that measured rate and to show the assumptions, including how alert ingestion continues during the copy.
What does the work need from our team?
The work needs named people from the security operations team who own alert use cases and retention, from the platform team who run the indexer cluster, and from whoever approves production changes. The platform team provides cluster access, certificates, free disk and a maintenance window, and it confirms current index templates and ISM policies. Security operations confirms which dashboards, saved searches, rules and API integrations depend on index names, because these must be updated at cutover. Expect sign-off on the verification checklist before the old indices are removed. Agree these roles and access in writing before work starts.
Can our internal team reindex Wazuh indices without a partner?
Yes, an internal team with indexer administration experience can perform reindexing, provided it has a tested runbook, a current backup and a staging cluster to rehearse on. The main risks are mistakes in mappings that only appear later, writes lost during cutover and alert searches that silently return partial results. A partner is most useful when the team lacks recent indexer experience, when the data volume is large enough that the window is hard to hit, or when the change must be evidenced for an audit. Compare the internal effort against a fixed-scope engagement by listing the same deliverables for both options.
How do we avoid gaps in alert search during reindexing?
Keep the existing index searchable until the new index has been verified, and point the dashboard and any alias-based queries at the new index only after cutover. Use an alias or a documented index pattern change so that searches resolve to one place at a time, and keep alert ingestion writing to a path that both copies can receive during the transition. Run comparison checks on document counts and sample queries for the overlap period, and record the time of the switch so analysts know which index holds each period. Confirm the exact alias and ingestion behavior in the Wazuh documentation for your version before you design the cutover.
What should we ask for in a reindexing quote?
Ask for the written scope listing each index, the target shard and replica settings, the mapping changes and the reason for each. Request the copy method, the expected verification checks, the cutover procedure, the rollback steps and the evidence that will be delivered after completion. Ask which parts are one time and which recur, such as retesting after a Wazuh patch or a later shard change. Also ask what the client must provide, including storage, access, maintenance windows and staff time, and how the schedule depends on the measured copy rate. DeployOpen does not publish a price list, so a quote follows from this written scope.
Does the Wazuh release cadence affect a reindexing project?
Yes, because Wazuh ships patch releases on the 4.14 line at an interval of roughly one to two months, so a long project may cross one or more upgrades. The 4.14 patch releases in 2026 were on 17 March, 23 April, 1 July, 29 July, 23 September and 14 October, and the latest of these is 4.14.9 from 14 October 2026. Confirm the version running at project start, check the release notes for any indexer or template change, and decide whether the project pauses for an upgrade or completes first. Recording the version in the change plan avoids confusion during verification.
How DeployOpen scopes and delivers reindex work
DeployOpen approaches reindexing Wazuh indices as a planned change to a running alert store, not a one-off command. The work is agreed in writing before any index is touched, built against a tested runbook, and handed over with documentation your own team can repeat.
How we scope
- Inventory the indices, mappings, shard counts and alert volumes that the reindex would touch.
- Agree in writing which alert search views must stay available and which gaps, if any, are acceptable.
- Confirm the target shard and replica layout, indexer capacity and free disk needed during the copy.
How we build
- Prepare a snapshot of affected indices and test restoring it in a non-production copy first.
- Run the reindex in batches with alias switching so dashboards and rules keep querying during the work.
- Check document counts, field mappings and cluster health against the baseline before each cutover step.
How we hand over
- Deliver a written runbook covering each step, rollback point, owner and verification check.
- Document the final index layout, alias names, retention interactions and any ISM policy changes made.
- Walk your operations team through the procedure and record the outcome of the rehearsal and live run.
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 for later index changes.
- Ask any provider for the written scope, the rollback plan and who performs the cutover before you sign.

