Prompt
need cheaper long-term log storage
Latest observation
Oct 28, 2026
OpenAI APIWeb search: off
If you want cheaper long-term log storage, the best approach is usually to separate hot logs from archive logs and optimize retention.
Good options
- Object storage for archives: S3, GCS, Azure Blob, or equivalent
- Best for very low cost per TB
- Good for compliance retention, audits, and occasional retrieval
- Log pipeline with tiered retention:
- Keep recent logs in your fast search system for days/weeks
- Move older logs to cheap storage after that
- Compression + batching:
- Store logs in compressed formats like gzip, zstd, parquet
- Batch many small logs into larger files to reduce overhead
- Lifecycle policies:
- Automatically transition logs to infrequent-access or archive tiers
- Delete expired logs automatically
Common architecture
- Ingest logs
- Store recent logs in searchable system
Example: Elasticsearch/OpenSearch/Datadog/Loki for 7–30 days - Export older logs to object storage
- Optionally index only metadata
- timestamps, service name, severity, request ID
- keeps search possible without storing everything in expensive index
Cost-saving tips
- Reduce verbosity at the source
- Sample high-volume debug logs
- Strip fields you never query
- Use shorter retention for noisy logs
- Avoid storing in a full-text index forever
- Partition by date/service so old data is easy to purge or archive
If you need searchable archives
Cheaper than keeping everything indexed:
- Store compressed logs in object storage
- Use query tools like:
- Athena / BigQuery / Snowflake / Trino
- OpenSearch cold tiers
- Loki + object storage
- Consider columnar formats like Parquet if you query by fields often
If you want, I can suggest the cheapest architecture based on your stack, log volume, and retention period.