Prompt
I'm building a high-volume service and need cheap long-term log storage
Latest observation
Oct 27, 2026
OpenAI APIWeb search: off
For high-volume, long-term log storage, the cheapest option is usually:
Best general choice
Object storage with lifecycle policies
- Examples: Amazon S3, Google Cloud Storage, Azure Blob Storage
- Store logs as compressed files, partitioned by time/service
- Move older data to colder tiers automatically:
- AWS: S3 Standard → Infrequent Access → Glacier / Deep Archive
- GCP: Standard → Nearline/Coldline/Archive
- Azure: Hot → Cool → Archive
Why this is usually best
- Very low cost per GB for long retention
- Practically unlimited scale
- Durable and reliable
- Easy to automate retention and deletion
- Good for compliance and audit logs
Cost-saving tips
- Compress aggressively: gzip, zstd, or parquet if structured
- Batch writes instead of one file per log line
- Partition by date/service so old data is easy to archive or delete
- Short hot retention in a searchable system, then archive to object storage
- Avoid indexing everything unless you truly need fast search on all logs
Common architecture
- App writes logs to stdout/file
- Log agent ships them to a central stream
- Stream batches to object storage
- Keep 7–30 days in a searchable tool
- Archive everything else to cold storage
If you need search too
Use a split system:
- Hot/searchable: Elasticsearch/OpenSearch/Loki/Cloud Logging
- Cold/cheap archive: S3/GCS/Blob storage
This avoids paying search-index costs for years of data.
Cheapest on AWS, typically
- S3 with lifecycle to Glacier Deep Archive
- Store compressed daily/hourly log bundles
- Consider Athena for occasional querying over S3
If you want, I can recommend a specific low-cost design based on your cloud provider, log volume, retention period, and whether you need full-text search.