Intro

We support any agent that can send logs in the json format. It could be CNCF graduates, i.e. FluentD / FluentBit or other popular ones, like Logstash.

For the simplicity sake we will use FluentBit as simple, yet powerful and performant agent. For other OS and agents, please follow the steps on the onboarding screen in Logs.

FluentBit installation

You can find all the necessary steps and details here: https://docs.fluentbit.io/manual/installation/linux

We will be following the Ubuntu 20.04 installation steps.

  1. Add GPG key to a keyring
wget -qO - <https://packages.fluentbit.io/fluentbit.key> | sudo apt-key add -
  1. Update your resource lists (for Ubuntu 20.04 LTS)
deb <https://packages.fluentbit.io/ubuntu/focal> focal main
  1. Update apt database
sudo apt-get update
  1. Now you're good to install the FluentBit agent - it's called td-agent-bit
sudo apt-get install td-agent-bit

Configuration

Parts of the FluentBit config

FluentBit config consists of 4 parts: