Storing all events in Wazuh archives

Wazuh archives keep the full stream of events the server receives, not only the alerts that rules raise. This page explains when investigations and compliance need them, what drives storage growth, and how to choose between indexing and file storage.

On this page

Storing all events in Wazuh archives: when alerts are not enough

When an investigation starts from a Wazuh alert and needs to know what happened before or after it, the alert alone often falls short. Wazuh archives store the full stream of events the Wazuh server receives and decodes from agents and other sources, not only the events that matched a rule and produced an alert. Security and compliance teams need them when they must reconstruct an activity chain, answer a question a rule did not anticipate, or show an auditor that a log source was collected completely over a period.

An alert is a record that a rule matched, and it usually carries only the fields that rule needed. An archived event is the decoded record of activity regardless of whether any rule fired. The two serve different purposes: alerts drive triage, while archives support hunting, retrospective searches and evidence. Archives are a separate choice from the alert data held in the Wazuh indexer. Turning on archiving does not change which alerts the indexer stores, and the indexer's retention settings do not decide how long archived events are kept. Confirm with your own configuration which data sets exist in your deployment before you plan storage or retention.

The components involved are the Wazuh server, which analyzes agent data with decoders and rules and is where archive output is written, the Wazuh indexer, which is a full-text search and analytics engine that stores alerts, the Wazuh dashboard, which is the web interface used to search and review data, and the Wazuh agents installed on endpoints, which send the events that feed both paths. Before you commit to archiving, ask your team to list which log sources must be kept in full, for how long, and who must be able to search them.

Indexing archives or keeping files: how the options differ

Indexing archived events sends them into the Wazuh indexer, so analysts can search them in the dashboard alongside alerts. This gives the fastest path to answering a question about an older event, such as when a particular account first appeared on a host. The cost is that every archived event takes indexer storage, shards and heap, and it stays there until a retention process removes it.

  • Search speed: Searches across indexed archives return quickly and use the same query tools as alerts, which suits investigations that span long periods.
  • Storage growth: Full event volume is usually far larger than alert volume, so indexer disk, replicas and node count must be sized for the archive, not only for alerts.
  • Retention work: Index lifecycle policies must cover the archive indices as well as alert indices, or old data will accumulate without a planned end date.
  • Operational load: Heavy archive indexing competes with alert search and dashboard performance on the same nodes, so capacity testing matters before rollout.
  • Confirm first: Check in your installed version's documentation how archive indexing is enabled, which index pattern it uses and whether the dashboard needs extra setup to query it.

Before enabling indexing for all events, confirm the storage and retention figures with your own test data.

Archive configuration options and when each fits

This table compares the main ways to keep events beyond alerts, from enabling archive logging to indexing archives, keeping files on the server, taking offline copies, or keeping no archives. Read each row against your investigation needs, your retention obligations and the team that will run the storage, because the cheapest option is rarely the one that answers a later question.

OptionSearchabilityStorage growth and backup coverageOperational effort and when it fits
Enable archive logging only (archives written to files on the Wazuh server)Low: events are searched with command-line tools or by reading files, not from the dashboardGrowth lands on the server disk; files are covered only if your file-level backup of the server includes the archive directoryLow effort. Fits when investigators rarely need historical raw events and you can confirm the archive path and rotation settings
Index archives into the Wazuh indexerHigh: archived events can be searched alongside alerts in the dashboardGrowth lands on indexer nodes and multiplies with replicas; indexed data is covered by snapshots, not file backupsHigher effort: sizing, shard planning and retention policies all apply. Fits when investigations need fast search across full event history
Keep archive files and copy them offline (for example, to separate storage on a schedule)Low until restored; searching requires loading files back into a toolGrowth is controlled by your copy schedule and the storage you choose; backup coverage depends on the copy process being testedModerate effort. Fits when retention is long and access is rare, provided restore steps are documented and rehearsed
No archives (alerts only)Limited to alerts; raw events that did not trigger a rule are unavailableLowest growth and no archive backup scopeLowest effort. Fits only when your investigation and compliance requirements have been confirmed to accept alert-level evidence
Combined approach (indexed archives for recent data, offline files for older data)High for recent events, low for older onesGrowth is split between indexer storage and cheaper copies; each tier needs its own backup checkHighest effort because two storage paths must be monitored and restored. Confirm the retention window with your compliance owner before choosing it

What drives storage growth when every event is kept

Keeping every event multiplies storage use far beyond alert volume, and the growth comes from a few interacting drivers. Each one should be measured in a pilot before anyone commits to a disk size or retention period. The cards below cover what moves storage most and what to check.

Event volume per endpoint and source

Event volume per source is the largest driver. Every enabled log source adds its own daily event count, and a busy Windows security log or a web proxy can outweigh dozens of quiet endpoints. Storage grows roughly with events per second multiplied by average event size. In the pilot, record events per day for each source group separately, not one total, so you can see which sources dominate the archive before you size it.

Number of agents and devices

Storage scales with the number of agents and agentless devices that send data. Adding endpoints multiplies the volume of every source they share, so a fleet growth plan should be tied to the archive sizing. Measure events per agent across a representative sample of each operating system and role, then multiply by the planned headcount per group. Agentless devices such as firewalls are often chatty, so count them separately.

Verbosity of enabled log sources

Verbosity is a choice made in agent and source configuration, and it changes archive size without changing detection value. Enabling detailed audit policies, debug-level application logs or full command-line capture can increase event counts several times over. Review each source against the detections and investigations that need it, and document which sources are archived in full and which are filtered before they reach the archive. Confirm the exact archive behavior for your Wazuh version in the documentation.

Indexing overhead on stored events

Indexed storage is larger than the raw event size because the indexer keeps search structures alongside the documents. An archive stored as searchable indices therefore consumes more disk than the same data kept as compressed files. Measure the on-disk size of a sample day in the indexer, compare it with the raw log size, and use that ratio, not a guessed one, when projecting capacity. The same measurement also shows whether indexing is worth its cost for data that is rarely searched.

Replica count

Each replica stores a full second copy of the index data, so replica count multiplies the storage that indices occupy. Going from one replica to two adds another full copy of the archive, which affects disk planning across the whole cluster. Replicas protect availability when a node fails, so the choice is a resilience decision as well as a cost one. Record the replica setting used in the pilot and project capacity for the setting you plan to run in production.

Retention length

Retention length determines how many days of archive exist at the same time, so it multiplies the daily volume from every other driver. Longer retention is often required by investigation needs or by a framework your auditors reference, but the required period should come from those requirements, not from disk availability. Write down the retention period each data type needs, then calculate peak storage at the end of that period. Plan for the point where the oldest data is deleted, not only the daily average.

How to enable and verify Wazuh archive storage

This sequence turns archiving from an assumption into a tested capability: you decide which sources matter, switch on archive output, prove that events land where you expect, set retention and limits, and confirm that a known event can be found again. Each step closes with a check you can record as evidence.

  1. Define the sources and retention purpose

    Before touching the server, list the log sources whose full event stream you need to keep, such as authentication logs, firewall syslog or cloud audit feeds, and write down the investigation or compliance reason for each. The security lead and the compliance owner sign off together, because the answer decides storage size, retention and who can search the data. The step is done when the list is approved and each source has a named owner and a stated purpose.

  2. Confirm the version and archive settings

    Check which Wazuh release line the server runs, because archive file paths, index patterns and dashboard steps can differ between versions. The current release line is 4.14, and the release notes list the patch builds, so record the exact build number and read the matching configuration reference before you edit anything. The step is done when the version is written in the change record and the archive options for that version are confirmed in the documentation.

  3. Enable archive output on the Wazuh server

    On the Wazuh server, the platform engineer turns on the archive output option in the server configuration and restarts the analysis service in a maintenance window. Archive output records all events that the server receives, not only those that match a rule that raises an alert, so the change will increase disk and indexer load. The step is done when the service restarts cleanly, the configuration file is under version control, and the change record notes who approved it.

  4. Confirm files or indices receive events

    Generate a known test event from an agent in an approved source, for example a failed login on a test account, then check that it appears in the archive location for your version. Depending on the version and setup, that location is a set of daily files on the server or an archive index in the indexer, so verify the one you configured. The step is done when the test event is present with its original timestamp and the source identifier is correct.

  5. Set retention, rotation and storage limits

    Decide how long archives are kept and how much disk or index space they may use, then apply those limits with the mechanism your version supports, such as file rotation and removal on the server or index lifecycle policies in the indexer. Monitor free space on the volume before and after the change, because archives grow with every event and a full disk can stop the server. The step is done when the retention settings are written in the configuration, a growth estimate from a sample day is recorded, and free-space alerting is in place.

  6. Test retrieval of a known event

    Search for the test event from the earlier step using the method your team will actually use in an investigation, which may be direct file search on the server or a query against the archive index in the dashboard. Confirm that the event returns with the expected fields and timestamp, and that an analyst without administrator rights can perform the same search if your access model requires it. The step is done when the search result is saved as evidence and the retrieval steps are written into the runbook.

  7. Record evidence and schedule a restore check

    Store the change record, the configuration diff, the test event evidence and the retention decision in the compliance evidence location, then schedule a periodic check that archives are still written and readable after each Wazuh patch update. Patch releases in the 4.14 line have arrived roughly every one to two months, so confirm archive behavior after each one. The step is done when the evidence set is complete, the owner of the recurring check is named, and the next review date is recorded.

How events move from agents to archives and alerts

The diagram starts at the Wazuh agents on endpoints, which sit on the far side of the trust boundary from the central components. Events cross into the Wazuh server, where decoders and rules decide which events become alerts and which are written to the archive. Archives can be stored as files on disk or indexed, and the dashboard reads only what reaches the Wazuh indexer. Check which path your investigations and compliance evidence depend on before you size storage.

Event flow from endpoints through decoders and rules into archives and alerts.

Protecting archived events as evidence

Archives often become evidence in an investigation or audit, so the controls around them matter as much as the decision to store them. The cards below cover who can reach archived events, how their integrity and retention are kept, how data is protected in transit and at rest, and how archives fit into the backup plan.

Restrict access to archive files

Archive files hold every event the manager receives, including data that never reached an alert. Limit read access on the archive directory and the archived JSON files to the service account and a small set of responders. Confirm who can copy these files off the server, since a copy made outside the platform carries no access control. Record who holds shell access to the manager, because that access reaches the files directly.

Control access to archive indices

When archives are indexed, dashboard users can search every archived event their role allows. Map index access to roles in the indexer security settings and review those roles against your investigation needs. Confirm that no shared or default account can query the archive pattern. Check whether analysts who can search alerts can also search the broader archive data, and decide if that difference is intended.

Keep events intact over time

Evidence is only useful if you can show the stored events were not changed after they were written. Ask your team how the archive files are hashed or signed, where those hashes are kept, and who can alter them. Verify that the indexer and file copies agree on event counts for a sample day. Document the procedure so an auditor or counsel can repeat the check.

Set retention for archived events

Archive retention is separate from alert retention, and each has its own requirement. Write down the period your investigations and compliance obligations need, then configure deletion or rotation to match. Confirm with legal and compliance whether any hold must suspend deletion. Test that the policy removes old archives and indices as intended, so retention does not depend on manual cleanup.

Encrypt archives in transit and at rest

Events move from agents to the server and from the server to the indexer, so transport encryption on those paths should be confirmed in your environment. Wazuh uses certificates between its components, and you should verify that certificate rotation covers the archive path. For data at rest, check whether encryption comes from the storage layer, the operating system or the host platform, because the platform may not provide it. Ask your team to document which layer provides each control.

Include archives in backups

File-level backups of the Wazuh server and other central components do not cover indexed data, so archived events inside the indexer need their own backup path. Use indexer snapshots for indexed archives and include archive files in the file backup plan. Confirm the backup scope in writing, including retention of snapshots and where repositories are stored. Test a restore of both archive files and indices before you rely on them as evidence.

Wazuh documentation

Questions teams ask before archiving every event

What does it cost to archive every Wazuh event?

Archiving every event costs more in storage, indexing capacity and staff time than alert-only retention, and the exact figure depends on your event volume and retention period. Wazuh's self-hosted software is open source with no license fee, so your costs are infrastructure, storage, labor and any outside help. Storage grows with every archived event, and the indexer nodes that hold searchable data need enough disk and memory to keep up. Ask a quote to itemize hardware or cloud capacity, storage growth assumptions, the labor for setup and testing, and any recurring support or upgrade work.

How long does it take to set up Wazuh archives?

Duration depends mainly on the size of your environment, how many log sources feed the manager, how much storage and indexing capacity you already have, and how many rules and retention settings must be reviewed. Enabling archives in the configuration is quick, but validating what gets written, sizing storage and confirming that archive files reach the places your investigators and auditors use takes longer. A quote should state the phases, the environments tested (lab, staging, production), and the acceptance checks agreed in writing before work starts.

What does the internal team need to provide?

Your team needs to name an owner for the archive data, agree on how long each data type must be kept, and confirm who may read archived events. Engineers need access to the Wazuh server, the indexer, and the storage platform that will hold the files, plus a change window for testing. Security and compliance staff should confirm which events matter as evidence. Ask the quote to list these inputs so you know which items your team owns and which the implementation partner handles.

Can our own team archive all events without a partner?

Yes, a capable team can enable archives on its own, since Wazuh is open source and its documentation describes the configuration. The harder work is sizing storage, separating archives from alerts in your retention plan, protecting archived data with backups, and proving to auditors how it is kept and who can access it. If your team has no time to run tests, document decisions and handle upgrades, a fixed-scope engagement can cover those parts. Compare the internal hours needed for each item against the quote before deciding.

How do Wazuh archives differ from alerts?

Alerts are the subset of events that matched a rule with a sufficiently high severity, while archives hold every event the Wazuh server processed, whether or not it raised an alert. Archived events are useful when an investigation needs context that a rule did not flag, or when a compliance reviewer asks for raw records. Because archives contain far more data, they consume more storage and need a clear retention decision. Your team should decide early whether archived events are indexed for search or kept only as files.

Should we index archives or keep them as files?

Indexing archives makes them searchable in the dashboard, which helps investigations, but it adds load and storage to the indexer. Keeping archives as files on disk is cheaper to store and simpler to retain, but searching them requires extra tooling or manual work. Many teams combine both, indexing a recent window and keeping older files for evidence. Confirm with your vendor and test in your own environment how archive indexing behaves at your volume before committing.

How should we size storage for archived events?

Start from measured event volume per agent or per source over a representative period, then multiply by the retention period you need, adding room for replicas, growth and backup copies. Test with a sample of real traffic in a non-production environment and record how much disk each day of events consumes. Ask a quote to show the sizing method, the assumptions behind the growth estimate, the replica and snapshot storage included, and the alert threshold that will tell you when capacity needs expanding.

What compliance requirements do archives help with?

Archives can support evidence requests because they keep raw event records that alerts do not cover, but the requirement itself comes from your framework and auditor. Wazuh's dashboard includes prebuilt views for frameworks such as PCI DSS, GDPR, HIPAA and NIST 800-53, which help map events to controls. Confirm with your auditor which records must be retained, for how long, and how they must be protected. DeployOpen prepares systems and evidence for assessments, but independent auditors and certification bodies issue any report or attestation.

How DeployOpen scopes and delivers Wazuh archive work

DeployOpen starts Wazuh archive work with a written scope that states which event sources, retention periods and storage targets are in play. The build, testing and handover follow that scope inside infrastructure you control, so your compliance and security teams can review how archived events are stored, searched and retained.

How we scope

  • Inventory the event sources you need archived, such as agent telemetry, syslog and agentless device feeds.
  • Document who must search archives, for which investigations, and how far back they need to look.
  • Agree in writing whether archives go to files, the indexer or both, with storage growth estimates you can check.

How we build

  • Enable archive logging on the Wazuh server and confirm which event types are written to disk.
  • Configure log rotation, file permissions and the retention job that matches the approved retention period.
  • Test that archived events appear as expected, with timestamps, and that the storage capacity alerts fire.

How we hand over

  • Deliver a runbook covering archive paths, rotation settings, retention steps and how to restore an archive file.
  • Document the data flow and storage locations so auditors can trace where each event type is kept.
  • Walk your operations team through capacity checks and the steps for adding storage when growth changes.

How we support

  • Offer ongoing support and upgrades as a retainer, covering archive settings after each Wazuh patch release.
  • Re-test archive retention and restore procedures after material changes to sources or storage layout.
  • Confirm with your team which support scope and response expectations apply before the engagement starts.

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.