9 Building processors and Fluent Bit extension options
This chapter covers
- Applying processors to interact and manipulate metrics, traces, and logs
- Using SQL-like expressions to work with signals using a processor
- Exploring the need for a custom plugin
- Reviewing the technology options for creating custom plugins
- Understanding of the technologies involved in custom plugins
This chapter looks at different approaches to extending Fluent Bit logic. Using Lua, we’ll look at new feature processors that allow us to extend logic around the input and output of all signal types (logs, traces, and metrics). If this isn’t sufficient, we can consider developing our own plugins. We can build new plugins by forking or contributing to the Fluent Bit project or using the technologies provided to create independent plugins. In this chapter, we’ll examine what is involved in the options and their pros and cons.
9.1 Architectural context
Processors provide the opportunity to enhance input and output plugin behavior in several ways without resorting to custom plugins. However, processors allow us to go only so far; sometimes, we must consider developing custom plugins to extend Fluent Bit. To support this, we’ll explore the design decisions when selecting a strategy to develop an extension. Figure 9.1 highlights where the choice of strategy can affect Fluent Bit. In chapter 10, we will apply one of these custom plugin strategies.