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)
-
From VirtualBox:
Devices β Insert Guest Additions CD image -
In the Linux terminal:
sudo mount /dev/cdrom /mnt
sudo /mnt/VBoxLinuxAdditions.run
- After installation is complete, reboot the machine:
sudo reboot
-
Enable Shared Clipboard and Drag & Drop:
-
Devices β Shared Clipboard β Bidirectional
-
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 :
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.