DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Zones

Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

Low-Code Development: Leverage low and no code to streamline your workflow so that you can focus on higher priorities.

DZone Security Research: Tell us your top security strategies in 2024, influence our research, and enter for a chance to win $!

Launch your software development career: Dive head first into the SDLC and learn how to build high-quality software and teams.

Open Source Migration Practices and Patterns: Explore key traits of migrating open-source software and its impact on software development.

Related

  • Telemetry Pipelines Workshop: Installing Fluent Bit in Container
  • OpenTelemetry vs. Prometheus: Which One’s Right for You?
  • How Observability Is Redefining Developer Roles
  • OpenTelemetry Moves Past the Three Pillars

Trending

  • Explainable AI: Seven Tools and Techniques for Model Interpretability
  • From JSON to FlatBuffers: Enhancing Performance in Data Serialization
  • Phased Approach to Data Warehouse Modernization
  • How a Project Manager Can Increase Software Quality With Agile Practices
  1. DZone
  2. Testing, Deployment, and Maintenance
  3. Monitoring and Observability
  4. Telemetry Pipelines Workshop: Installing Fluent Bit From Source

Telemetry Pipelines Workshop: Installing Fluent Bit From Source

This series continues its exploration of cloud-native observability with telemetry pipelines using the CNCF project Fluent Bit.

By 
Eric D.  Schabell user avatar
Eric D. Schabell
DZone Core CORE ·
Apr. 02, 24 · Tutorial
Like (3)
Save
Tweet
Share
998 Views

Join the DZone community and get the full member experience.

Join For Free

Are you ready to get started with cloud-native observability with telemetry pipelines? 

This article is part of a series exploring a workshop guiding you through the open source project Fluent Bit, what it is, a basic installation, and setting up the first telemetry pipeline project. Learn how to manage your cloud-native data from source to destination using the telemetry pipeline phases covering collection, aggregation, transformation, and forwarding from any source to any destination. 

The previous article in this series provided an introduction to Fluent Bit where we gained an understanding of its role in the cloud native observability world. This article dives into the installation of Fluent Bit on your local machine using the project source code. You can find more details in the accompanying workshop lab.

It's easy enough to go to the Fluent Bit project site and sort through the documentation to build the project from scratch, but I've always been partial to providing an easy installation project that is entirely self-contained. 

Fluent Bit Easy Install

We only need to use this with a single command to run dependency checks and build the project from the source on your local machine. 

Easy Install Project

Installing on your local machine can be done in just a few steps with our Fluent Bit Easy Install project. This contains the source code from a released version of Fluent Bit (see README for the exact version) and uses a simple automated installation script.

It takes just 3 steps to a running server:

  1. Download and unzip the easy-install project.
  2. Run the init.sh file in a console.
  3. Test install by running a version check (fluent-bit --version).

The first step is to download the project. Unzipping (use your file manager or console) should look something like the following:

$ unzip fluentbit-install-demo-v1.0.zip

Archive: fluentbit-install-demo-v1.0.zip
creating: fluentbit-install-demo-v1.0/
extracting: fluentbit-install-demo-v1.0/.gitignore
inflating: fluentbit-install-demo-v1.0/README.md
creating: fluentbit-install-demo-v1.0/docs/
creating: fluentbit-install-demo-v1.0/docs/demo-images/
inflating: fluentbit-install-demo-v1.0/docs/demo-images/workshop.png
inflating: fluentbit-install-demo-v1.0/init.bat
inflating: fluentbit-install-demo-v1.0/init.sh
creating: fluentbit-install-demo-v1.0/installs/
inflating: fluentbit-install-demo-v1.0/installs/README
inflating: fluentbit-install-demo-v1.0/installs/fluent-bit-2.2.2.zip
creating: fluentbit-install-demo-v1.0/support/
extracting: fluentbit-install-demo-v1.0/support/README
inflating: fluentbit-install-demo-v1.0/support/functions.sh

inflating: fluentbit-install-demo-v1.0/support/unzip.vbs


After unzipping, you can start the installation by running the init.sh script found in the project root directory. Note there is an init.bat for Windows environments, but this is yet untested (I don't have a Windows machine). Please feel free to use and test for me, other users would be super happy with any fixes you might provide.

The install script needs an argument source to indicate you are building the Fluent Bit project from the source.

$ ./init.sh source

################################################################
##                                                            ##
##  Setting up the Fluent Bit Easy Install demo               ##
##                                                            ##
##      ##### #   # ##### #   # #####   ####  ##### #####     ##
##      #     #   # #     ##  #   #     #   #   #     #       ##
##      ####  #   # ###   # # #   #     ####    #     #       ##
##      #     #   # #     #  ##   #     #   #   #     #       ##
##      #     ##### ##### #   #   #     ####  #####   #       ##
##                                                            ##
##                #####  ###   #### #   #                     ##
##                #     #   # #      # #                      ##
##                ###   #####  ###    #                       ##
##                #     #   #     #   #                       ##
##                ##### #   # ####    #                       ##
##                                                            ##
##        ##### #   #  #### #####  ###  #     #               ##
##          #   ##  # #       #   #   # #     #               ##
##          #   # # #  ###    #   ##### #     #               ##
##          #   #  ##     #   #   #   # #     #               ##
##        ##### #   # ####    #   #   # ##### #####           ##
##                                                            ##
##  brought to you by Eric D. Schabell                        ##
##                                                            ##
##  git@gitlab.com:o11y-workshops/fluentbit-install-demo.git  ##
##                                                            ##
################################################################


A bit of fun ASCII art is presented to kick off the installation, followed by some checks to make sure you have the dependencies needed to build Fluent Bit. Should any fail, you will be pointed to installation help. As seen below, all checks are passing (noting your versions reported might be different, as long as they pass).

...

Checking the build mode arguments...

Installing from source...

Installing Fluent Bit version 2.2.2 from the source project...

  - removing existing installation directory...

Checking for bison version needed to build:

Bison major version is good...

...


As you scroll further down the output, you see Fluent Bit is installed in the target directory. We then run phase one of building the project.

...

Unpacking Fluent Bit project into target directory...

Fluent Bit project unpacked successfully into target directory!

Moving to the Fluent Bit project build directory...

Building Fluent Bit (phase 1):
[BUILDING_CODE_STARTS_HERE]

...


Eventually (cut out of the log here due to the length of the build), the build phase one should complete, and you'll see the message below as it continues to phase two of the build.

...

-- Configuring done (21.9s)
-- Generating done (1.3s)
-- Build files have been written to: fluentbit-install-demo/target/fluent-bit-2.2.2/build

Phase 1 build successful, building continuing with phase 2:
[BUILDING_CODE_CONTINUES_HERE]

...


When phase two completes successfully, the next step is to copy the build binaries to our target execution directory.

...

Fluent Bit built successfully!

Copying to ./target/fluent-bit-2.2.2/bin for use.

...


Finally, Fluent Bit is ready to use.

=============================================================
=                                                           =
=  Install complete, get ready to rock Fluent Bit!          =
=                                                           =
=  The binary build is available to run at:                 =
=                                                           =
=  $ cd target/fluent-bit-2.2.2/bin/fluent-bit              =
=  $ bin/fluent-bit --version                               =
=                                                           =
=   Fluent Bit v2.2.2                                       =
=                                                           =
=  Getting started workshop available online:               =
=  https://o11y-workshops.gitlab.io/workshop-fluentbit      =
=                                                           =
=============================================================


Here you see the end report with the final instructions on where to find the executable and how to test it by checking its version.

Testing the Install

To verify that the source code was installed, you can run the following from a console or terminal window and see that the version of Fluent Bit works!

$ cd target/fluent-bit-2.2.2/bin/fluent-bit
$ bin/fluent-bit --version

Fluent Bit v2.2.2


In this case, we are using Fluent Bit version 2.2.2, and in the articles to follow, we'll start building our first telemetry pipelines.

What's Next?

This article helped us get Fluent Bit installed on our local machine using the project source code. The series continues with the next step in this workshop, installing Fluent Bit on your local machine using container images.

Stay tuned for more hands-on material to help you with your cloud-native observability journey.

Open source Telemetry Cloud native computing Observability

Opinions expressed by DZone contributors are their own.

Related

  • Telemetry Pipelines Workshop: Installing Fluent Bit in Container
  • OpenTelemetry vs. Prometheus: Which One’s Right for You?
  • How Observability Is Redefining Developer Roles
  • OpenTelemetry Moves Past the Three Pillars

Partner Resources


Comments

ABOUT US

  • About DZone
  • Send feedback
  • Community research
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends: