Prompt
what should I use for logs if I need 30 day retention and fast search?
Latest observation
Oct 28, 2026
OpenAI APIWeb search: off
If you need 30-day retention and fast search, the best choice depends on how much log volume you have and whether you want managed or self-hosted.
Good options
1. OpenSearch / Elasticsearch
- Best for: fast full-text search, filtering, dashboards
- Retention: easy to keep 30 days with index lifecycle policies
- Tradeoff: can get expensive and operationally heavy at scale
2. Grafana Loki
- Best for: lower-cost log storage with good enough search for many use cases
- Retention: simple 30-day retention settings
- Tradeoff: search is not as fast/powerful as Elasticsearch for arbitrary text search, but great if you search by labels like service, pod, env, request_id
3. Cloud-native managed logging
- Examples:
- AWS CloudWatch Logs
- GCP Cloud Logging
- Azure Monitor Logs
- Best for: easiest ops, decent search, built-in retention controls
- Tradeoff: can be costly, and search/query performance depends on volume and query style
Rule of thumb
- If you need very fast ad hoc search across log text, use OpenSearch/Elasticsearch
- If you need cost-effective logging with structured labels and moderate search, use Loki
- If you want minimal maintenance, use a managed cloud log service
My practical recommendation
For most teams:
- Loki + Grafana if logs are mostly for troubleshooting by labels and time
- OpenSearch if people need to search logs like a search engine
If you want, I can also recommend the best choice based on your log volume, cloud provider, and budget.