Log Storage Volume Calculator

Estimate daily log storage from log lines per second, average line size, and compression ratio. Plan log infrastructure capacity.

bytes
:1
days
$/GB/mo
Daily Volume (Raw)
5.66 TB
15,552.0M lines/day
Daily Volume (Compressed)
965.60 GB
6:1 compression
Monthly Volume
28.29 TB
169.73 TB raw
Retained Storage
84.87 TB
90 days x 965.60 GB/day
Monthly Storage Cost
$666.26
Annual: $7,995.13
Retained Storage Cost
$1,998.78
Total cost for all retained data
Total Log Lines/Sec
180,000
10 svcs x 3 envs x 3.0x level
Per Service Daily
32.19 GB
Avg compressed volume per service

Volume by Time Period

PeriodLinesRawCompressedScale
Per Hour648,000,000241.40 GB40.23 GB
Per Day15,552,000,0005.66 TB965.60 GB
Per Week108,864,000,00039.60 TB6.60 TB
Per Month466,560,000,000169.73 TB28.29 TB
Per Year5,676,480,000,0002,065.09 TB344.18 TB

Raw vs Compressed

Raw Volume (daily)5.66 TB
Compressed Volume (daily)965.60 GB

Per-Service Breakdown

SourceLines/SecDaily (Compressed)Share
Service 16,00096.56 GB
Service 26,00096.56 GB
Service 36,00096.56 GB
Service 46,00096.56 GB
Service 56,00096.56 GB
Service 66,00096.56 GB
Service 76,00096.56 GB
Service 86,00096.56 GB
+2 more services12,000193.12 GB

Log Level Impact Reference

LevelMultiplierEst. Daily VolumeRelative
ERROR only1.0x321.87 GB
WARN + ERROR1.5x482.80 GB
INFO (typical)3.0x965.60 GB
DEBUG5.0x1.57 TB
TRACE (verbose)10.0x3.14 TB
Planning notes, formulas, and examples

About the Log Storage Volume Calculator

Application logs are one of the fastest-growing data sources in any infrastructure. A single microservice generating 500 log lines per second at 200 bytes per line produces over 8 GB of raw log data per day. Multiply that by dozens or hundreds of services, and you're looking at terabytes of log data that need to be stored, indexed, and searchable.

This calculator estimates daily, weekly, and monthly log storage volume using the fundamental formula: log lines per second × average line size × 86,400 seconds per day. It also applies a compression ratio to show how much disk space you'll actually need after gzip, zstd, or LZ4 compression—which is critical for platforms like Elasticsearch, Loki, or Splunk that compress log data.

Accurate log volume estimation prevents running out of disk space on your logging cluster, helps you budget for SaaS logging services that charge by ingestion volume, and ensures your retention policies are achievable within your storage budget.

When This Page Helps

Over-provisioning log storage wastes money; under-provisioning causes log loss during incidents when you need them most. This calculator gives you accurate daily volume estimates so you can size logging infrastructure correctly from day one.

How to Use the Inputs

  1. Enter the average log lines generated per second across all services.
  2. Enter the average log line size in bytes.
  3. Enter the expected compression ratio (e.g., 5 means 5:1 compression).
  4. Optionally enter the number of services or hosts generating logs.
  5. Review the raw and compressed daily, weekly, and monthly volumes.
  6. Use results to size your Elasticsearch cluster, Splunk license, or cloud logging budget.
Formula used
daily_raw = log_lines_sec × avg_line_bytes × 86400; daily_compressed = daily_raw / compression_ratio; monthly = daily_compressed × 30

Example Calculation

Result: 2.02 GB/day compressed

500 lines/sec × 250 bytes × 86,400 sec = 10.8 GB/day raw. With 5:1 compression, actual storage is 2.16 GB/day. Monthly: ~64.8 GB. For a 30-day retention window, provision at least 65 GB of compressed log storage.

Tips & Best Practices

  • Structured JSON logs are larger per line but compress better than unstructured text.
  • gzip achieves 4–6× compression on log data; zstd achieves 5–8× with faster decompression.
  • Elasticsearch indexes add 10–30% overhead on top of compressed data size.
  • Reduce volume by filtering DEBUG-level logs in production—they often account for 50%+ of lines.
  • Set separate retention periods for different log levels (ERROR: 90 days, INFO: 14 days).
  • Use sampling for high-volume, low-value logs like health check requests.

Sizing an Elasticsearch Cluster for Logs

For Elasticsearch, multiply compressed daily volume by retention days, then add 30% for indexes and replicas. A 2 GB/day compressed log stream with 14-day retention needs ~36 GB of primary storage, or 72 GB with one replica. Size the cluster with 20% headroom.

SaaS Logging Cost Models

Datadog, Splunk Cloud, and New Relic charge by ingestion volume (GB/day). Prices range from $0.10 to $2.50/GB depending on the provider and tier. Estimate your daily volume accurately to avoid surprise bills at month-end.

Log Volume Growth Planning

Log volume typically grows 20–50% per year as services are added and traffic increases. Build growth into your capacity plan. Set alerts at 70% storage utilization to trigger proactive expansion or retention policy adjustments.

Sources & Methodology

Last updated:

Frequently Asked Questions

  • Check your log shipper metrics (Filebeat, Fluentd, Vector). Alternatively, count lines in a recent log file and divide by the time span. For multiple services, sum their individual rates.