Prompt
Help me pick a log platform that won’t get too expensive as volume grows and still keeps useful data searchable.
Latest observation
If your main goals are:
- cost stays predictable as volume grows, and
- logs remain searchable for useful investigations,
then the safest approach is usually not “keep everything hot forever”, but a platform or architecture that supports:
- fast indexed search for recent data
- cheap retention for older data
- sampling / filtering / field extraction
- tiered storage or archive search
Short recommendation
If you want the best balance of cost and searchability:
Best general-purpose choice: OpenSearch / Elasticsearch-style stack
Good if you:
- need powerful search and filtering
- have engineering resources to manage it
- can control ingestion volume carefully
But:
- costs can rise fast if you index everything
- operational overhead is higher
- schema discipline matters a lot
Best cost-control choice: Grafana Loki
Good if you:
- mostly search logs by labels, service, environment, trace ID, request ID
- want lower storage/index costs
- can live with less full-text-search power than Elasticsearch/OpenSearch
But:
- not ideal if you need heavy ad hoc full-text querying across all logs
- label design is critical; bad labels can hurt performance/cost
Best “easy SaaS” choice with reasonable cost control: Datadog / New Relic / Splunk / Elastic Cloud
Good if you:
- want minimal ops
- are okay paying more for convenience
- can aggressively limit ingestion and retention
But:
- these can get expensive very quickly at scale
- billing often grows with ingest volume, retention, and query usage
What tends to get expensive
Most log platforms get pricey because of one or more of these:
- high ingestion volume
- indexing every field
- long retention in hot searchable storage
- repeated broad queries
- duplicated logs from multiple pipelines
- shipping too much low-value debug data
So the platform matters, but log policy matters more.
What to look for in a platform
1) Cheap storage tiers
Look for:
- hot / warm / cold tiers
- archive to object storage like S3/GCS/Azure Blob
- rehydration or search over archived logs
This is the biggest cost lever.
2) Search model
There are two broad styles:
Full-text indexed search
Examples: Elasticsearch, OpenSearch, Splunk
- best for arbitrary queries
- more expensive at scale
Label/metadata-first search
Examples: Loki
- cheaper
- works well when you know what you’re looking for
- less ideal for arbitrary text mining
3) Control over retention
You want to define:
- 7–30 days hot searchable
- 90–180 days warm/cheap searchable
- longer in archive if needed
4) Ingestion filtering and sampling
Important features:
- drop noisy debug logs in prod
- sample repetitive logs
- redact secrets/PII
- parse structured logs at ingest time
5) Query ergonomics
Make sure you can easily search by:
- service
- environment
- trace ID / request ID
- pod/container/host
- customer/account ID if appropriate
Practical platform guidance
If you are a startup or small team
Best low-ops options:
- Grafana Cloud Logs / Loki
- A managed OpenSearch service
- Elastic Cloud if you already know Elasticsearch
- Datadog Logs if you already use Datadog and volume is moderate
My default pick here:
- Loki if you mainly need operational troubleshooting
- OpenSearch if you need stronger search and investigations
If you are at higher scale
Best architectures:
- Loki + object storage
- OpenSearch with careful indexing and lifecycle policies
- Split logs into tiers: recent in indexed system, older in archive
At very high volume, many teams:
- keep only high-value logs searchable
- store raw logs cheaply in object storage
- use a separate analytics tool for long-term investigation
Rule of thumb by use case
Pick Loki if:
- you mostly search by service and labels
- cost sensitivity is high
- logs are structured JSON
- you mainly need troubleshooting, not deep text mining
Pick OpenSearch/Elasticsearch if:
- you need powerful ad hoc search
- analysts/debuggers often search arbitrary text
- you can manage indexing discipline and cluster tuning
Pick Splunk if:
- you have budget and need enterprise-grade search/governance
- you value mature features more than raw cost efficiency
Pick Datadog/New Relic if:
- you want fastest setup and unified observability
- you accept higher cost
- you will aggressively control ingestion
Cost-saving practices no matter what you choose
-
Prefer structured JSON logs
- easier filtering
- less need for expensive parsing
-
Set retention tiers
- don’t keep everything hot-searchable forever
-
Drop noisy logs
- health checks, repetitive debug, known benign chatter
-
Use sampling
- especially for high-frequency success events
-
Redact and normalize
- avoid indexing secrets and high-cardinality junk
-
Index only important fields
- don’t blindly index everything
-
Use trace IDs
- lets you search a small number of logs instead of broad scans
-
Monitor ingest growth
- treat log volume like a billable product metric
My practical recommendation
If you want the most balanced answer without more context:
- Choose Loki if you want lower cost and simpler scaling
- Choose OpenSearch if you want better searchability and more flexible investigations
- Avoid relying on a pure SaaS logs product for everything unless you’re comfortable with the bill growing with volume
A strong default architecture
- Hot searchable logs: Loki or OpenSearch
- Archive: object storage
- Retention policy: short hot retention, long cold retention
- Structured logs + strict filtering
If you want, I can help you narrow this down by answering 5 questions:
- How much log volume per day now, and expected in 12 months?
- Do you need full-text search or mostly field-based searches?
- Are you okay self-managing infrastructure?
- What cloud are you on?
- How long do you need logs retained and searchable?