Intro

Fluent Bit is an open source agent to collect and forward logs.

Here is the intro from their website:

Fluent Bit is an open source Log Processor and Forwarder which allows you to collect any data like metrics and logs from different sources, enrich them with filters and send them to multiple destinations. It's the preferred choice for containerized environments like Kubernetes. Fluent Bit is designed with performance in mind: high throughput with low CPU and Memory usage. It's written in C language and has a pluggable architecture supporting more than 70 extensions for inputs, filters and outputs. Fluent Bit is a CNCF (Cloud Native Computing Foundation) subproject under the umbrella of Fluentd. We are part of a wide community, no vendor lock-in.

Installation

You can use package manager of your choice or compile it from source.

Ubuntu example

Fluent Bit is distributed as td-agent-bit package and is available for the latest stable Ubuntu system: Focal Fossa.

wget -qO - <https://packages.fluentbit.io/fluentbit.key> | sudo apt-key add -

On Ubuntu, you need to add our APT server entry to your sources lists, please add the following content at bottom of your /etc/apt/sources.list file:

Ubuntu 20.04 LTS (Focal Fossa):

deb <https://packages.fluentbit.io/ubuntu/focal> focal main

Ubuntu 18.04 LTS (Bionic Beaver):

deb <https://packages.fluentbit.io/ubuntu/bionic> bionic main

Update system:

sudo apt-get update

Installing the agent: