This chapter covers
- Learning ways to configure Fluent Bit
- Examining the Fluent Bit command-line interface (CLI)
- Creating a Fluent Bit version of “Hello, World”
- Looking at classic and YAML Fluent Bit configurations
- Working with dynamic configuration features
When it comes to getting Fluent Bit up and running with a scenario, we’ll be quicker than Nic Cage in Gone in 60 Seconds. Although the chapter will take you a little longer to read than others, we’ll certainly have the Fluent Bit equivalent to the developer’s “Hello, World” going with minimal effort. Understanding different configuration approaches and the ways they can be dynamic means you can decide which approach best fits your deployment needs.
For this chapter, all we need are Fluent Bit and a tool of our choice to edit configuration files, such as Visual Studio Code. If the tool can understand YAML (YAML Ain’t Markup Language), that’s a bonus. All the instructions for installing Fluent Bit are provided in appendix A.
The content relating only to v3 has been explicitly called out. The core capabilities described will work all the way back to Fluent Bit v1, but the console output differs slightly.
Note The book focuses on Fluent Bit v2 and v3. Despite the major version change, the configuration files are backward compatible.