7 Tools for Storing Logs in Object Storage
Handle log archival with seven tools that ship and store log data to S3 style buckets for cheap, long term retention.
On this page
Key takeaways
- Object storage is far cheaper than fast disks.
- Archival fits logs that are kept but rarely searched.
- A query layer can still search archived logs.
- Compression cuts the cost further.
Why object storage fits logs
Logs grow without stopping, and keeping years of them on fast disks is expensive. Object storage such as S3 is far cheaper per gigabyte, which makes it the natural home for logs that must be kept but rarely searched.
The tools below each move logs into object storage, either directly as files or as a backend for a query layer. The result is long retention at a price that makes sense.
Quick comparison
| Tool | Best for | Starting price | Free plan |
|---|---|---|---|
| Grafana Loki | object storage backend | Not included | Not included |
| Filebeat | shipping logs onward | Not included | Not included |
| Logstash | pipeline to object storage | Not included | Not included |
| Fluent Bit | lightweight S3 forwarding | Not included | Not included |
| Vector | transform and archive to S3 | Not included | Not included |
| Fluentd | plugin based S3 archival | Not included | Not included |
| Promtail | feeding logs to Loki | Not included | Not included |
The best tools for storing logs in object storage
1. Grafana Loki
- Official site: https://grafana.com/oss/loki/
- Best for: object storage backend
- Starting price: Not included
- Free plan: Not included
- Pros: S3 native; cheap retention
- Cons: needs Grafana; setup work
Grafana Loki stores its log chunks in object storage such as S3, which is why it can offer long retention cheaply. Loki handles the layout and compaction, and Grafana queries it. Loki handles the chunk layout and compaction, so the team does not manage the object layout themselves.
Teams use Loki when they want years of logs without paying fast disk prices. The object storage holds the data, and Loki's index makes it searchable. It is the core of a cheap log retention design. Because the chunks live in cheap storage, retention becomes a cost decision rather than a space problem.
2. Filebeat
- Official site: https://www.elastic.co/beats/filebeat
- Best for: shipping logs onward
- Starting price: Not included
- Free plan: Not included
- Pros: lightweight; Elastic native
- Cons: fewer transforms; Elastic focused
Filebeat ships log files from hosts to destinations, including pipelines that then archive them. In an object storage flow it is the first hop that gets logs off the host. Filebeat is the reliable first hop that gets logs off the host before anything else can fail.
Teams use Filebeat to collect logs reliably before they are archived. It is small and stable. From Filebeat, logs can go to a queue or directly to a system that writes them to object storage. It is the reliable first hop that gets logs off the host before anything else can fail.
3. Logstash
- Official site: https://www.elastic.co/logstash
- Best for: pipeline to object storage
- Starting price: Not included
- Free plan: Not included
- Pros: deep transforms; S3 output
- Cons: heavy; JVM resource use
Logstash can process logs and write them to object storage through its outputs, optionally compressing and structuring them first. It is the transform step in an archival pipeline. Logstash can compress and structure the data before it lands, which keeps the archive both small and searchable.
Teams use Logstash when they want to parse and reshape logs before they land in object storage. Its S3 output handles the archival write. It pairs with a queue for reliable delivery. Its S3 output handles the archival write, and its transforms can compress the data before it lands.
4. Fluent Bit
- Official site: https://fluentbit.io/
- Best for: lightweight S3 forwarding
- Starting price: Not included
- Free plan: Not included
- Pros: small footprint; S3 output
- Cons: fewer transforms; config is specific
Fluent Bit can read logs and forward them to S3 compatible object storage, buffering and retrying along the way. Its small size makes it suitable as an agent on many hosts. Fluent Bit buffers and retries, which is what makes the forward to object storage dependable over a shaky network.
Teams use Fluent Bit when they want a low overhead way to get logs into object storage. It handles the retries and buffering that reliable archival needs. It is a common first hop. Buffering and retries are what make the forward to object storage reliable, even when the network is not.
5. Vector
- Official site: https://vector.dev/
- Best for: transform and archive to S3
- Starting price: Not included
- Free plan: Not included
- Pros: single binary; S3 sink
- Cons: newer; config to learn
Vector reads logs, transforms them, and writes them to object storage through its S3 sink. It can compress and batch the data before the write, which keeps the archive cheap. Vector compresses and batches before the write, which keeps the archive cheap without extra steps.
Teams use Vector when they want a modern, single binary pipeline into object storage. Its transforms and compression are built in. It suits teams standardizing on one data tool. Its compression and batching keep the archive small, which directly reduces the storage bill.
6. Fluentd
- Official site: https://www.fluentd.org/
- Best for: plugin based S3 archival
- Starting price: Not included
- Free plan: Not included
- Pros: many plugins; S3 output
- Cons: heavier; Ruby runtime
Fluentd can write logs to object storage through its S3 plugin, with buffering and retries. It is a flexible way to archive logs from many sources. Fluentd's S3 plugin covers the archival write, and its buffering makes the delivery reliable.
Teams use Fluentd when they need its plugin ecosystem to gather logs and its S3 output to archive them. It is heavier than Fluent Bit but more flexible. The buffering makes archival reliable. The plugin model means the same collector can gather from many sources and write to object storage in one flow.
7. Promtail
- Official site: https://grafana.com/docs/loki/latest/send-data/promtail/
- Best for: feeding logs to Loki
- Starting price: Not included
- Free plan: Not included
- Pros: pairs with Loki; simple
- Cons: Loki focused; fewer destinations
Promtail collects logs and ships them to Loki, which then writes them to object storage. It is the standard agent for a Loki based archive. Promtail attaches the labels that make the archived logs queryable when they are read back from Loki.
Teams use Promtail when Loki is their object storage backed log system. It attaches labels and ships logs with low overhead. The pairing is the simplest path to cheap archival. The pairing with Loki is the simplest way to get logs into object storage with labels attached.
How we chose
We looked for tools that move logs into object storage for cheap, long term retention. Each tool must either write to S3 style storage directly or feed a system that does.
We favored tools that compress and buffer, since those are what make archival both cheap and reliable. The list spans agents, pipelines, and the query layer that makes archived logs searchable.
FAQ
Why store logs in object storage?
It is far cheaper per gigabyte than fast disks, which is what makes long term retention affordable. Logs that are kept for compliance or rare searches are a perfect fit.
Can archived logs still be searched?
Yes, with the right layer. Systems such as Loki index the metadata and read the stored chunks on demand, so a search still works even though the data sits in cheap storage.
Should I compress logs before archiving?
Usually yes. Logs compress very well, often to a small fraction of their size, which directly reduces the storage bill. Most of these tools compress by default.
How reliable is shipping to object storage?
The tools listed buffer and retry, so a temporary network failure does not lose logs. Reliability comes from those retries plus careful sizing of the buffers.
What retention is realistic?
Years, which is the main point of object storage. The exact length depends on cost and any compliance rules, but object storage makes multi year retention practical.