Prompt
What should I use for logs if I need fast search and low cost?
Latest observation
Oct 28, 2026
OpenAI APIWeb search: off
If you need fast search and low cost for logs, the best choice is usually:
Loki
- Low cost: designed to be much cheaper than full-text indexing systems like Elasticsearch.
- Fast enough for most log search use cases: especially when paired with labels and good retention policies.
- Simple architecture: works well with Grafana for querying and visualization.
- Best fit if you mostly search by:
- service name
- environment
- pod/container
- time range
- a few key labels
When Loki is a good choice
Use Loki if:
- you want cheap log storage
- you don’t need heavy full-text indexing on every field
- most searches are “show me logs for service X in the last 15 minutes”
When to consider something else
- OpenSearch / Elasticsearch: better for heavy full-text search and complex queries, but more expensive to run.
- ClickHouse: very fast and cost-efficient for analytical log workloads, but more setup and modeling effort.
- Cloud-native options like CloudWatch Logs, Stackdriver, Azure Monitor: easy to use, but can get expensive at scale.
Practical recommendation
- Default recommendation: Loki + Grafana
- If you need advanced text search at scale: OpenSearch
- If you need analytics over huge log volumes: ClickHouse
If you want, I can also give you a decision table comparing Loki vs OpenSearch vs ClickHouse for cost, speed, and complexity.