Metrics are billed based on cardinality
Extracting fields with many unique values can significantly increase your costs. See How do we bill for metrics? for details.
Optimize your query performance to get faster results when exploring your logs and metrics.
Extract values as unaggregated fields in Sources → Your source → Metrics tab instead of querying logs each time. This converts your frequently-accessed log data into time series metrics for much faster retrieval.
Learn more about Extracting metrics from logs.
Extracting fields with many unique values can significantly increase your costs. See How do we bill for metrics? for details.
Our infrastructure handles wide events (logs) and time series (metrics) differently, with metrics offering much faster query performance. Learn more about Wide events vs. time series.
If you're frequently running the same queries, consider whether your use case would benefit from converting log data to metrics.
Use metrics when:
Use logs when:
Quickly analyze logs in Live tail → Explore using Log filtering, Drag and Drop, or custom SQL expression. Read more about all features of Explore.
For faster queries on your wide events (logs), try these optimization techniques:
Shorter time frames significantly reduce the amount of data processed.
Instead of searching across all sources, target the specific source containing your data.
Enable Sampling to work with a representative subset of your data while developing and testing queries.
For consistently slow queries on large datasets, we can add more compute power to your cluster:
For applications requiring consistently fast queries over large datasets and long time periods, we can provision dedicated compute resources:
Contact our support team at hello@betterstack.com to discuss custom cluster options for your use case 📩
Generally speaking, we can make querying as fast as needed through query optimization or infrastructure scaling. If you're experiencing slow query performance:
We're happy to help find the right balance of performance and cost for your needs 🚀