Build with Static Configuration

    Static configuration mode aims to include a built-in configuration in the final binary of Fluent Bit, disabling the usage of external files or flags at runtime.

    Configuration Directory

    In your file system prepare a specific directory that will be used as an entry point for the build system to lookup and parse the configuration files. It is mandatory that this directory contain as a minimum one configuration file called fluent-bit.conf containing the required , INPUT and sections. As an example create a new fluent-bit.conf file with the following content:

    Build with Custom Configuration

    Inside Fluent Bit source code, get into the build/ directory and run CMake appending the FLB_STATIC_CONF option pointing the configuration directory recently created, e.g:

    At this point the fluent-bit binary generated is ready to run without necessity of further configuration: