Build and Install
Fluent Bit uses CMake as it build system. The suggested procedure to prepare the build system consists on the following steps:
Prepare environment
In the following steps you can find exact commands to build and install the project with the default options. If you already know how CMake works you can skip this part and look at the build options available.
Change to the build/ directory inside the Fluent Bit sources:
Let CMake configure the project specifying where the root path is located:
Now you are ready to start the compilation process through the simple make command:
to continue installing the binary on the system just do:
it's likely you may need root privileges so you can try to prefixing the command with sudo.
Build Options
Fluent Bit provides certain options to CMake that can be enabled or disabled when configuring, please refer to the following tables under the General Options, Input Plugins and Output Plugins sections.
General Options
option | description | default |
FLB_ALL | Enable all features available | No |
FLB_DEBUG | Build binaries with debug symbols | No |
FLB_JEMALLOC | Use Jemalloc as default memory allocator | No |
FLB_TLS | Builds with SSL/TLS support | No |
FLB_BINARY | Build executable | Yes |
FLB_EXAMPLES | Build examples | Yes |
FLB_SHARED_LIB | Build shared library | Yes |
FLB_VALGRIND | Enable Valgrind support | No |
FLB_TRACE | Enable trace mode | No |
FLB_TESTS_RUNTIME | Enable runtime tests | No |
FLB_TESTS_INTERNAL | Enable internal tests | No |
FLB_TESTS | Enable tests | No |
FLB_MTRACE | Enable mtrace support | No |
FLB_INOTIFY | Enable Inotify support | Yes |
FLB_POSIX_TLS | Force POSIX thread storage | No |
FLB_SQLDB | Enable SQL embedded database support | No |
FLB_HTTP_SERVER | Enable HTTP Server | No |
FLB_BACKTRACE | Enable backtrace/stacktrace support | Yes |
FLB_LUAJIT | Enable Lua scripting support | Yes |
FLB_STATIC_CONF | Build binary using static configuration files. The value of this option must be a directory containing configuration files. |
Input Plugins
The input plugins provides certain features to gather information from a specific source type which can be a network interface, some built-in metric or through a specific input device, the following input plugins are available:
option | description | default |
Enable CPU input plugin | On | |
Enable Forward input plugin | On | |
Enable Head input plugin | On | |
Enable Health input plugin | On | |
Enable Kernel log input plugin | On | |
Enable Memory input plugin | On | |
FLB_IN_RANDOM | Enable Random input plugin | On |
Enable Serial input plugin | On | |
Enable Standard input plugin | On | |
FLB_IN_TCP | Enable TCP input plugin | On |
Enable MQTT input plugin | On | |
Enable Xbee input plugin | Off |
Output Plugins
The output plugins gives the capacity to flush the information to some external interface, service or terminal, the following table describes the output plugins available as of this version:
option | description | default |
Enable Elastic Search output plugin | On | |
Enable Fluentd output plugin | On | |
Enable HTTP output plugin | On | |
Enable NATS output plugin | Off | |
FLB_OUT_PLOT | Enable Plot output plugin | On |
Enable STDOUT output plugin | On | |
Enable Treasure Data output plugin | On | |
FLB_OUT_NULL | Enable /dev/null output plugin | On |
Last updated