Installation

Server GPG key

The first step is to add our server GPG key to your keyring to ensure you can get our signed packages.

curl https://packages.fluentbit.io/fluentbit.key | gpg --dearmor > /usr/share/keyrings/fluentbit-keyring.gpg

if you are facing error like below

-bash: /usr/share/keyrings/fluentbit-keyring.gpg: Permission denied
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  3175  100  3175    0     0   3199      0 --:--:-- --:--:-- --:--:--  3197
curl: (23) Failed writing body

Then run the below command

curl https://packages.fluentbit.io/fluentbit.key | gpg --dearmor | sudo tee /usr/share/keyrings/fluentbit-keyring.gpg > /dev/null

Update your sources lists

On Ubuntu, you need to add our APT server entry to your sources lists, please run the following command to do that

echo "deb [signed-by=/usr/share/keyrings/fluentbit-keyring.gpg] https://packages.fluentbit.io/ubuntu/$(lsb_release -sc) $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/fluentbit.list

Update your repositories database

Now let your system update the apt database:

Install Fluent Bit

Using the following apt-get command you are able now to install the latest fluent-bit:

Now the following step is to instruct systemd to enable the service:

If you do a status check with the following command,

you should see a similar output like this:

Refrence

Last updated