talira

Fluent Bit

Fast and lightweight telemetry agent for logs, metrics and traces

open sourceApache-2.0self-hostablefree

Fluent Bit is a telemetry agent written in C that collects, processes and forwards logs, metrics and traces from any source to any destination, at the edge on each host or as a central aggregator. It is part of the Fluentd ecosystem but built for small footprints: about 450 KB of memory and no dependencies beyond what a plugin needs, against Fluentd's 60 MB or more. Over 100 built-in input, filter and output plugins, SQL stream processing, Lua filters and Go output plugins cover sources from files and systemd to Kubernetes, and destinations such as Grafana Loki, Elasticsearch and Prometheus remote write, and it receives and sends OpenTelemetry (OTLP). Eduardo Silva created it in 2014 within the Fluentd team at Treasure Data; it is a CNCF graduated project under Apache-2.0.

Ways to install

Problems it solves

  • our log shipper uses hundreds of megabytes on every node and I need something tiny
  • collect logs on embedded Linux devices and IoT gateways with very little memory
  • ship Kubernetes container logs with pod metadata attached to our log backend
  • forward logs, metrics and traces from one agent instead of running three
  • filter and aggregate log records with SQL queries before they are sent anywhere
  • receive OTLP from my apps and forward it to several backends
  • enrich log records with a small Lua script on the node
  • a log forwarder in C with no Ruby or JVM runtime to install
  • push node logs into Loki and metrics into a Prometheus remote write endpoint
  • expose my log agent's own throughput and errors as Prometheus metrics with a health check
  • reload the log agent's configuration without restarting it
  • run the same log collector on Linux servers, Windows hosts and Raspberry Pis

Features

  • logs, metrics, traces and profiles in one agent
  • about 450 KB memory footprint, zero dependencies unless a plugin needs one
  • 100+ built-in input, filter and output plugins
  • SQL stream processing for filtering and aggregating records in flight
  • plugins in C, filters in Lua, outputs in Go
  • OpenTelemetry input with OTLP over HTTP and gRPC, and an OpenTelemetry output
  • built-in TLS and asynchronous I/O
  • HTTP server with internal metrics in JSON and Prometheus formats, health checks and hot reload
  • runs at the edge or as a central aggregator
  • Linux packages, Windows binaries, Docker images and a Helm chart
View 1 more
  • x86, x86_64, arm32v7 and arm64v8 builds

Limitations

  • Supports BSD and IBM Z (s390x) only with restrictions: not all plugins and filters work there3

Capabilities

Has an APIplan not known
Takes pluginsplan not known

Alternatives

The same job

These do what Fluent Bit does.

  1. Datadog Agent Main repository for Datadog Agent
  2. Beats Lightweight data shippers
  3. Grafana Alloy OpenTelemetry Collector distribution with programmable pipelines
  4. Fluentd Open source data collector for unified logging layer
  5. Elastic Agent Single agent. One-click integrations.
  6. Vector A lightweight, ultra-fast tool for building observability pipelines

Compare Fluent Bit with the top 3