Ubuntu
Fluent Bit is distributed as the fluent-bit package and is available for long-term support releases of Ubuntu. The latest officially supported version is Ubuntu 26.04. Long-term support releases are also available for Noble Numbat (24.04) and Jammy Jellyfish (22.04).
The recommended secure deployment approach is to use the following instructions.
Server GPG key
Add the Fluent Bit server GPG key to your keyring to ensure you can get the correct signed packages.
Follow the official Debian wiki guidance.
sudo sh -c 'curl https://packages.fluentbit.io/fluentbit.key | gpg --dearmor > /usr/share/keyrings/fluentbit-keyring.gpg'Update your sources lists
On Ubuntu, you need to add the Fluent Bit APT server entry to your sources lists. Ensure codename is set to your specific Ubuntu release name. For example, focal for Ubuntu 20.04.
codename=$(grep -oP '(?<=VERSION_CODENAME=).*' /etc/os-release 2>/dev/null || lsb_release -cs 2>/dev/null)Update your source's list:
echo "deb [signed-by=/usr/share/keyrings/fluentbit-keyring.gpg] https://packages.fluentbit.io/ubuntu/$codename $codename main" | sudo tee /etc/apt/sources.list.d/fluent-bit.listUpdate your repositories database
Update the apt database on your system:
sudo apt-get updateInstall Fluent Bit
Ensure your GPG key is up to date.
Use the following
apt-getcommand to install the latest Fluent Bit:Instruct
systemdto enable the service:
If you do a status check, you should see a similar output like this:
The default configuration of fluent-bit is collecting metrics of CPU usage and sending the records to the standard output. You can see the outgoing data in your /var/log/syslog file.
Upgrade Fluent Bit
Upgrading the fluent-bit package reloads the systemd unit files and restarts the service, so the new version starts running as soon as the upgrade finishes.
The restart applies only when the service is already running on a host that uses systemd. A stopped service stays stopped, and installing the package for the first time doesn't start it.
If a restart isn't safe to take at that moment, stop the service before you upgrade the package and start it again when you're ready:
Last updated
Was this helpful?