Log Retention Calculator
Calculate security log storage requirements from log sources, event rates, retention policy, and tiered storage costs. Supports PCI DSS, HIPAA, and SOX compliance planning.
About this calculator
Security teams have to retain logs for years to satisfy compliance frameworks, but sizing that storage wrong either wastes budget on unused capacity or leaves a SIEM silently dropping events it can't afford to keep. This calculator multiplies log sources by average events-per-second per source to get total EPS, then scales that up to a full day of events and multiplies by average event size in bytes to get raw daily volume. From there it applies two realistic adjustments: a 7:1 compression ratio (a reasonable average for typical text-based log formats once compressed) to shrink the raw volume, and a 20% index overhead on top of that compressed size, since search indexes for fast querying always cost extra space beyond the compressed log bytes themselves. Multiplying the resulting daily footprint by your retention period (in days) gives total storage required.
The calculator then splits that retention window into three tiers that mirror how real log-management platforms are architected: a 30-day "hot" tier that keeps the index overhead for fast search, a following 90-day "warm" tier that drops the index but keeps standard compression, and a "cold" archive tier for everything beyond 120 days at a slightly better 10% compression bonus, typical of object storage or tape. Each tier gets its own approximate cost-per-GB (SSD-based hot storage, HDD-based warm, and cheap archival cold), which roll up into monthly and annual cost estimates. Treat the compression ratio, index overhead, and per-tier costs as reasonable industry-average assumptions, not your vendor's actual pricing or your logs' actual compressibility — verify against your SIEM's real ingestion metrics and your storage provider's quoted rates before budgeting.
Inputs
Results
Total EPS
250
Total storage needed (TB)
0.61
How to Use This Calculator
- Enter log sources and average events/sec per source and average event size (bytes).
- Enter retention period (days) -- PCI-DSS: 365, HIPAA: 2190, SOX: 2555.
- Review total EPS, events per day (millions), raw daily ingestion (GB), and total storage (TB).
- Apply compression (5-10:1 for logs) and deduplication to reduce actual storage needs.
How the result changes with Log sources
| Log sources | Total EPS | Total storage needed (TB) |
|---|---|---|
| 25 | 125 | 0.31 |
| 38 | 190 | 0.47 |
| 75 | 375 | 0.92 |
| 125 | 625 | 1.54 |
What each input means
- Log sources
- Total log-generating devices: servers, firewalls, switches, applications, endpoints.
- Avg events/sec per source
- Average events per second per source. Firewalls: 10-100 EPS, servers: 1-10 EPS, apps: 0.5-5 EPS.
- Avg event size (bytes)
- Average log event size. Syslog: 200-400 bytes, Windows events: 500-1000 bytes, JSON logs: 500-2000 bytes.
- Retention period (days)
- Days to retain logs. PCI DSS: 365 days, HIPAA: 2190 days (6 yr), SOX: 2555 days (7 yr).
What each result means
- Total EPS
- Total events per second across all log sources — key metric for SIEM sizing.
- Events per day (millions)
- Total events generated daily in millions.
- Raw daily volume (GB)
- Uncompressed log data generated per day.
- Total storage needed (TB)
- Total storage across all tiers for the full retention period.
- Hot tier (GB)
- Fast-search storage for the last 30 days (indexed, SSD).
- Warm tier (GB)
- Compressed storage for 31-120 day range (HDD-based search).
- Cold tier (GB)
- Archive storage for 120+ days (object storage or tape).
- Monthly storage cost ($)
- Estimated monthly cost across hot ($0.10/GB), warm ($0.03/GB), and cold ($0.005/GB) tiers.
- Annual storage cost ($)
- Estimated annual storage cost.
How this is calculated
Worked example, using the default values
- Identify Input Parameters4 parametersLog sources = 50, Avg events/sec per source = 5, Avg event size (bytes) = 500, Retention period (days) = 365 = 4 input(s) provided
- Calculate Total EPSTotal EPS = logSources * avgEPS250 = 250
- Calculate Total storage neededTotal storage needed = totalStorageGB / 10240.61 = 0.61
- Calculate Events per dayEvents per day = eventsPerDay / 100000021.6 = 21.6
- Calculate Raw daily volumeRaw daily volume = rawDailyBytes / (1024 * 1024 * 1024)10.1 = 10.1
Engine last updated . Checked against 2 independently-derived tests — how we verify calculators. Built by Paul Gunder, a software engineer, not a licensed financial, medical, or legal professional.
Frequently Asked Questions
Why does the calculator apply a 7:1 compression ratio to every scenario?
7:1 is used as a fixed, reasonable industry-average compression ratio for typical text-based log formats (syslog, JSON, Windows events) once compressed by a SIEM or log-shipping pipeline. It's applied uniformly rather than derived from your specific log format, so if your actual logs compress notably better or worse than average, your real storage needs will differ from this estimate.
How are the hot, warm, and cold storage tiers actually split?
The first 30 days of retention (or your full retention period if shorter) are counted as the hot tier and keep the full 20% index overhead for fast search. The next up to 90 days become the warm tier at plain compressed size with no index overhead, and anything remaining beyond 120 days total falls into the cold tier, which gets a further 10% compression bonus typical of archival object storage or tape.
Why is total storage larger than just raw daily volume times retention days?
Total storage isn't simply raw bytes times days — it first shrinks the raw volume by the 7:1 compression ratio, then adds back 20% for search-index overhead on the hot tier specifically, and finally multiplies the resulting daily footprint by your retention period. Because only the hot tier carries the full index overhead while warm and cold tiers don't, the blended cost per day actually decreases the longer data sits in cheaper tiers.
What drives the monthly cost estimate more — event rate or retention period?
Both matter, but through different levers: total EPS across all sources directly scales raw daily volume and therefore how much data enters every tier each day, while retention period determines how many days' worth of that daily volume accumulates in the warm and cold tiers specifically, since hot tier size is capped at 30 days regardless of how long you retain data overall. A high-EPS, short-retention setup and a low-EPS, long-retention setup can end up producing similar total costs.
Related Calculators
The questions that sit next to this one — chosen by subject, including calculators filed under a different category.
SIEM Sizing Calculator
Size your SIEM deployment: calculate EPS capacity, storage, infrastructure nodes, and license costs by pricing model (Splunk, QRadar, Sentinel).
Security ToolsBackup Storage Calculator
Calculate backup storage requirements from source data volume, daily change rate, retention policy, and compression ratio using a GFS backup model.
Security ToolsEncryption Strength Calculator
Estimate brute-force time from key length and attacker computing power. Covers symmetric (AES) and asymmetric (RSA) algorithms with quantum threat modeling.
More in Technology & Computing.