How to Manage Wazuh Storage

As organizations expand their security monitoring capabilities, the amount of data generated by Wazuh grows rapidly.

Every authentication attempt, endpoint event, file integrity change, vulnerability scan, cloud audit log, and network alert contributes to an ever-increasing volume of security data.

Poor storage management often results in full disks, degraded search performance, slow dashboard responses, failed indexing operations, and even data loss if clusters reach critical disk watermarks.

Growing Wazuh deployments commonly encounter several storage-related problems, including:

  • Rapid index growth caused by millions of daily events
  • Excessive File Integrity Monitoring (FIM) data
  • Long retention periods without automated cleanup
  • Oversized OpenSearch indexes
  • High storage consumption from cloud-native environments
  • Duplicate log ingestion from multiple sources
  • Inefficient shard allocation

Fortunately, these issues are largely preventable through proper planning and lifecycle management. By implementing storage best practices, organizations can:

  • Reduce infrastructure costs
  • Improve OpenSearch performance
  • Increase query speed
  • Prevent disk-related outages
  • Simplify long-term compliance
  • Scale to tens or hundreds of thousands of monitored endpoints

According to the OpenSearch Project, effective index lifecycle management, shard optimization, and snapshot strategies are among the most important practices for maintaining healthy clusters as data volumes increase.

This guide provides a complete overview of Wazuh storage management.

You’ll learn how Wazuh stores security data, why storage usage grows so quickly, how to estimate future storage requirements, and how to implement retention, optimization, archiving, monitoring, and automation strategies that keep your deployment healthy over the long term.

Where appropriate, this guide also references related topics such as How to Configure Wazuh Log Retention, How to Configure Wazuh Index State Management (ISM), How to Build a Wazuh Indexer Cluster, and How to Design a Wazuh OpenSearch Shard Allocation Strategy for more in-depth implementation guidance.


Understanding How Wazuh Stores Data

Understanding storage management begins with understanding where Wazuh actually stores information.

Unlike traditional log management platforms that rely on a single database, Wazuh distributes data across several components, each serving a different purpose.

These components include the Wazuh Manager, Wazuh Indexer, and Wazuh Dashboard.

Wazuh Manager Data

The Wazuh Manager acts as the central processing engine.

It receives events from agents, applies decoders and rules, executes active responses, and forwards processed alerts to the indexer.

Several types of data are stored locally on the manager.

Alerts

Processed security alerts are written locally before being forwarded to the indexer.

These alerts include:

  • Authentication failures
  • Malware detections
  • Privilege escalation attempts
  • Policy violations
  • Threat intelligence matches
  • Custom rule alerts

Although most organizations primarily search alerts through the Wazuh Dashboard, the manager still maintains local alert files that consume disk space.

Archives

If archive logging is enabled, Wazuh stores raw incoming events before they are decoded.

Archive logs are extremely useful for:

  • Rule development
  • Decoder testing
  • Compliance investigations
  • Security forensics
  • Historical event reconstruction

However, archive logs often consume significantly more storage than processed alerts because they contain every collected event.

Agent Data

Each enrolled endpoint maintains metadata that the manager stores, including:

  • Agent identifiers
  • Registration information
  • Connection status
  • Group membership
  • Keys
  • Synchronization data

Individually these files are small, but in deployments containing tens of thousands of agents they become more significant.

Logs

The manager continuously generates operational logs, including:

  • Analysis logs
  • Cluster logs
  • API logs
  • Authentication logs
  • Module logs
  • Upgrade logs

Administrators often overlook these files until they occupy several gigabytes over time.

Configuration Files

Critical configuration files are also stored on the manager, including:

  • ossec.conf
  • client.keys
  • Rules
  • Decoders
  • Agent groups
  • Internal configuration files

Although these consume minimal storage, they represent some of the most important data to protect through regular backups.

For backup guidance, see How to Backup Wazuh Manager Configuration.

Wazuh Indexer Storage

The Wazuh Indexer, built on OpenSearch, is responsible for storing, indexing, and searching security events.

In most deployments, this component consumes by far the largest amount of storage.

OpenSearch Indexes

Every processed alert is indexed into OpenSearch, where it becomes searchable through the Wazuh Dashboard.

Indexes typically contain:

  • Alert documents
  • Event metadata
  • Parsed fields
  • Timestamps
  • Agent information
  • Rule matches

Depending on ingestion rates, new indexes may be created daily or according to rollover policies.

Primary and Replica Shards

Each OpenSearch index is divided into primary shards, which store the original data, and replica shards, which provide redundancy and improve search performance.

While replicas enhance resilience, they also increase storage consumption. For example, a single replica effectively doubles the storage required for indexed data.

Designing an efficient shard strategy is one of the most important aspects of long-term storage planning.

See How to Design a Wazuh OpenSearch Shard Allocation Strategy for a detailed guide.

Index Templates

Index templates define how new indexes are created, including:

  • Field mappings
  • Data types
  • Shard counts
  • Replica counts
  • Index settings

Properly configured templates improve indexing efficiency and prevent unnecessary storage overhead caused by mapping conflicts or inefficient shard layouts.

Snapshots

Snapshots provide point-in-time backups of indexes before they are deleted or migrated to lower-cost storage.

Rather than keeping years of searchable indexes online, many organizations retain only recent data in OpenSearch while archiving older indexes as snapshots.

The OpenSearch documentation recommends snapshots as the preferred backup mechanism instead of filesystem-level backups.

Wazuh Dashboard Data

The Wazuh Dashboard itself stores relatively little information compared to the indexer.

Instead, it stores user-created objects that improve data visualization and investigation.

Saved Searches

Saved searches preserve commonly used queries for analysts, allowing rapid investigation of recurring incidents.

These objects require very little storage.

Visualizations

Charts, graphs, tables, and other visualization objects are stored within the dashboard configuration.

These help analysts interpret large security datasets without significantly affecting storage requirements.

Dashboards

Dashboards combine multiple visualizations into customizable monitoring views.

While dashboard objects occupy minimal disk space, organizations often maintain dozens or hundreds of dashboards for different security teams and business units.


Why Wazuh Storage Grows So Quickly

One of the biggest surprises for new Wazuh administrators is how quickly storage requirements increase after deployment.

A small proof-of-concept environment may generate only a few gigabytes per day, while an enterprise deployment can easily produce hundreds of gigabytes, or even several terabytes, of new data every week.

Understanding the primary drivers of storage growth helps administrators build effective retention and optimization strategies before storage becomes a bottleneck.

High Event Volumes

Every monitored endpoint continuously generates security events.

These include:

  • Authentication attempts
  • Process executions
  • File modifications
  • Network connections
  • Package installations
  • Scheduled tasks
  • System service changes

As monitoring expands, event volumes increase proportionally.

Even relatively quiet endpoints can produce thousands of events every day.

Large Numbers of Endpoints

Storage growth scales almost linearly with the number of monitored systems.

For example:

  • 100 endpoints generate far less data than 10,000 endpoints.
  • Additional servers often produce substantially more events than workstations.
  • Domain controllers, firewalls, and SIEM-integrated appliances typically generate the highest event volumes.

Capacity planning should always account for future endpoint growth rather than only current deployment size.

File Integrity Monitoring (FIM)

File Integrity Monitoring records file creations, deletions, permission changes, ownership modifications, and content changes.

While FIM is invaluable for detecting ransomware, unauthorized changes, and compliance violations, aggressive monitoring can dramatically increase storage usage.

Monitoring entire filesystems instead of critical directories frequently results in millions of additional events.

Organizations should carefully scope FIM policies to focus on high-value assets.

For optimization techniques, see How to Stop Wazuh File Integrity Monitoring (FIM) From Eating Your CPU.

Vulnerability Detection

The Vulnerability Detection module regularly inventories installed software and compares it against vulnerability feeds.

Large environments may generate significant volumes of vulnerability data after each scan, especially when software inventories change frequently.

Historical vulnerability information also contributes to long-term storage growth.

Security Configuration Assessment (SCA)

SCA periodically evaluates endpoint configurations against security benchmarks such as CIS recommendations.

Each assessment records detailed compliance results, which accumulate over repeated scans.

Reducing scan frequency where appropriate can help balance compliance visibility with storage consumption.

Cloud and Container Logs

Modern cloud-native environments often produce significantly more telemetry than traditional infrastructure.

Examples include:

  • AWS CloudTrail
  • Azure activity logs
  • Google Cloud logs
  • Kubernetes audit logs
  • Container runtime logs
  • Application logs

Highly dynamic environments with autoscaling workloads can multiply event volumes within hours.

Organizations integrating multiple cloud platforms should carefully filter unnecessary events before ingestion.

For related guidance, see How to Monitor AWS CloudTrail Logs Using Wazuh and How to Monitor Kubernetes Using Wazuh.

Long Retention Periods

Keeping every event searchable for months or years is one of the fastest ways to exhaust storage.

Many compliance frameworks require long-term retention, but they rarely require all historical data to remain on high-performance storage.

A more efficient strategy is to:

  • Keep recent data searchable.
  • Archive older indexes using snapshots.
  • Delete expired indexes automatically.
  • Restore snapshots only when historical investigations are required.

Implementing Index State Management (ISM) policies greatly simplifies this lifecycle.

See How to Configure Wazuh Index State Management (ISM).

Duplicate or Unnecessary Log Collection

Many environments accidentally ingest identical events multiple times.

Common causes include:

  • Multiple log forwarders collecting the same files
  • Duplicate syslog forwarding
  • Overlapping Filebeat configurations
  • Excessively broad log collection rules
  • Redundant cloud integrations

Security engineers from Elastic have long emphasized that filtering unnecessary data before indexing is one of the most effective ways to reduce storage costs while improving search performance.

Regular audits of log collection policies help ensure that only valuable security events consume storage resources.


Be First to Comment

    Leave a Reply

    Your email address will not be published. Required fields are marked *