7 Tools for Shipping Logs from Databases and Services
Seven tools for shipping logs from databases and services, from Filebeat and Fluent Bit to Vector and syslog-ng.
On this page
Key takeaways
- Databases and services write logs in many places and formats.
- A shipper normalizes each source before it reaches storage.
- Tags keep the origin of every event clear after merging.
- Reliable delivery matters more than raw speed for log shipping.
Quick comparison
| Tool | Best for | Starting price | Free plan |
|---|---|---|---|
| Filebeat | Tailing files to Elasticsearch | Not included | Not included |
| Fluent Bit | Lightweight edge collection | Not included | Not included |
| Fluentd | Plugin-rich log routing | Not included | Not included |
| Vector | High-throughput shipping | Not included | Not included |
| Logstash | Central processing | Not included | Not included |
| rsyslog | Syslog collection | Not included | Not included |
| syslog-ng | Structured syslog routing | Not included | Not included |
The best tools for shipping logs from databases and services
1. Filebeat
- Official site: https://www.elastic.co/beats/filebeat
- Best for: Tailing files to Elasticsearch
- Starting price: Not included
- Free plan: Not included
- Pros: Simple; reliable
- Cons: Elastic-centric
Filebeat tails log files from databases and services and ships them to Elasticsearch or Logstash. It handles rotation and backpressure so a busy source does not lose events. Modules parse common formats without extra work.
For teams on the Elastic stack, Filebeat is the standard first hop. It watches the files each service writes and keeps the shipping dependable while the heavier parsing happens later.
2. Fluent Bit
- Official site: https://fluentbit.io/
- Best for: Lightweight edge collection
- Starting price: Not included
- Free plan: Not included
- Pros: Small; fast; many inputs
- Cons: Fewer features than Fluentd
Fluent Bit collects logs from files, sockets, and services with a small footprint. It supports many inputs and outputs, so database logs and application logs can be tagged and shipped the same way. The low overhead keeps it suitable for every host.
For a fleet of services, the consistent shipper is the foundation. Fluent Bit normalizes each source at the edge so the central store sees clean, tagged events rather than raw files. That early normalization saves work at every later stage of the pipeline.
3. Fluentd
- Official site: https://www.fluentd.org/
- Best for: Plugin-rich log routing
- Starting price: Not included
- Free plan: Not included
- Pros: Huge plugin list; mature
- Cons: Heavier runtime
Fluentd routes logs between a very large set of inputs and outputs using plugins. It can read database logs, parse them, and write the result to one or more backends. The plugin ecosystem covers most sources a team will encounter.
The routing flexibility is the reason to choose Fluentd for a mixed environment. One configuration accepts each service's logs and hands a uniform stream to storage. That uniformity is what keeps the downstream search and alerting simple.
4. Vector
- Official site: https://vector.dev/
- Best for: High-throughput shipping
- Starting price: Not included
- Free plan: Not included
- Pros: Fast; transforms
- Cons: Younger ecosystem
Vector ships and transforms logs at high throughput with a single binary. It can reshape events, add fields, and forward them to several destinations, which suits large volumes. Backpressure handling keeps events from being dropped during a burst.
The transform layer is the value for database and service logs, since their formats rarely match. Vector normalizes them in the pipeline before they reach storage or dashboards.
5. Logstash
- Official site: https://www.elastic.co/logstash
- Best for: Central processing
- Starting price: Not included
- Free plan: Not included
- Pros: Rich filtering; many plugins
- Cons: Resource heavy
Logstash sits in the middle of a pipeline, parsing and filtering logs before they are indexed. It can accept many sources, apply a shared set of filters, and write the normalized result onward. The filter language is mature and well documented.
For a central point where many service logs meet, Logstash is the processor that shapes them into one format. The resource cost is the tradeoff for the depth of filtering.
6. rsyslog
- Official site: https://www.rsyslog.com/
- Best for: Syslog collection
- Starting price: Not included
- Free plan: Not included
- Pros: Ubiquitous; reliable
- Cons: Syslog-centric
rsyslog collects messages that databases and services send over syslog and forwards them to a central host. It is present on nearly every Linux system, so it needs no new software. Filtering by facility and tag reduces the volume before storage.
Where logs already flow over syslog, rsyslog is the simplest shipping step. It gathers the messages reliably and hands the stream to the same store the rest of the infrastructure uses.
7. syslog-ng
- Official site: https://www.syslog-ng.com/
- Best for: Structured syslog routing
- Starting price: Not included
- Free plan: Not included
- Pros: Parsing; routing rules
- Cons: Syslog-centric
syslog-ng parses incoming syslog and can rewrite and route messages by content. For database and service logs, that means turning text fields into searchable structure and sending different types to different destinations. The parsing happens at collection time.
The parsing layer is where raw messages become usable data. syslog-ng does that once at the source, so every tool downstream starts with clean fields rather than free text.
How we chose
We looked for tools that can reach the many places databases and services write their logs and carry them to one store. The list spans light shippers, central processors, and syslog collectors so a team can assemble the path its sources need. Each entry tags events with their origin, which keeps the merged stream searchable.
We favored tools with reliable delivery and backpressure, because a lost log during a burst defeats the purpose of shipping it. Normalization matters just as much, since the point is one consistent stream rather than many raw files. The best fit matches the sources and the destination a team already runs.
We also valued the edge placement, since a small shipper on every host is usually better than one heavy process. The shipper does the basic collection and tagging cheaply, and the central layer does the heavier work. That split is what scales as the fleet grows.
FAQ
Why ship database logs to a central store?
Databases write their own logs in their own formats, and reading them on each server does not scale. Centralizing them makes one searchable stream across every source. It also gives a single retention and alerting point.
Where should the shipper run?
Usually beside the source, reading the files or sockets the service writes. An edge shipper normalizes early and keeps the load local. The central store then receives a clean stream from every host.
How do I keep the source clear after merging?
Tag each event with the service, host, and type at collection time. Those tags become the fields used to filter and group later. Without them, a merged stream is hard to trace back to its origin.
What happens if the destination is slow?
A good shipper buffers and applies backpressure so events are not lost while the store catches up. Some queue to disk when memory fills. Choose a tool with that behavior if bursts are part of your traffic.
Do I need a shipper on every host?
Not always, but it is the common pattern for file and socket logs. Services that already send syslog can use a syslog collector instead. The choice depends on how each source produces its logs.
Do I need to parse logs before shipping?
Parsing early is useful but not required, since the central layer can do the heavier work. A light tag at the source is often enough at first. The split depends on how much processing each stage can afford.