Skip to content

03.Install Lab Fluentbit

We begin by setting up the environment inside VirtualBox, enabling Guest Additions, Shared Clipboard, and Drag & Drop to streamline interaction between the host and the virtual machine :

VM Name: LAB-FLUENTBIT

Operating System:

  • Ubuntu 22.04 LTS (64-bit)

Since I use VBox , You can choose whether to install the labs on VBox or even VMware.

After installing a Linux distribution, Ubuntu is recommended.

First, I will activate the VirtualBox tools on this virtual machine :

  • On Debian/Ubuntu distributions:
sudo apt update 
sudo apt install build-essential dkms linux-headers-$(uname -r)
  1. From VirtualBox: Devices β†’ Insert Guest Additions CD image

  2. In the Linux terminal:

sudo mount /dev/cdrom /mnt 
sudo /mnt/VBoxLinuxAdditions.run
  1. After installation is complete, reboot the machine:
sudo reboot
  1. Enable Shared Clipboard and Drag & Drop:

  2. Devices β†’ Shared Clipboard β†’ Bidirectional

  3. Devices β†’ Drag & Drop β†’ Bidirectional


Once the system is ready, we proceed with installing Fluent Bit using the official installation script, ensuring it’s properly configured for later integration with the ELK Stack :

Get started with Fluent Bit

sudo apt update 

sudo apt install curl
  • We'll use this command to install cURL, a tool that allows you to upload files or execute HTTP requests from the command line. We'll need it to download the Fluent Bit installation script.
sudo curl https://raw.githubusercontent.com/fluent/fluent-bit/master/install.sh | sh
|
|
Installation completed. Happy Logging!
  • Here, we use cURL to download and run the official Fluent Bit installation script directly from the project's GitHub site. The |sh symbol means that the download result (the script) will be executed immediately using the shell without first saving it as a file.

We have downloaded the fluentbit next stage and its settings.