Skip to content

Sends events via Fluent Bit.

to_fluent_bit plugin:string, [options=record, fluent_bit_options=record,
tls=record]

The to_fluent_bit operator acts as a bridge into the Fluent Bit ecosystem, making it possible to send events to Fluent Bit output plugin.

An invocation of the fluent-bit commandline utility

Terminal window
fluent-bit -o plugin -p key1=value1 -p key2=value2 -p…

translates to our to_fluent_bit operator as follows:

to_fluent_bit "plugin", options={key1: value1, key2:value2,}

The name of the Fluent Bit plugin.

Run fluent-bit -h and look under the Outputs section of the help text for available plugin names. The web documentation often comes with an example invocation near the bottom of the page, which also provides a good idea how you could use the operator.

Sets plugin configuration properties.

The key-value pairs in this record are equivalent to -p key=value for the fluent-bit executable.

Sets global properties of the Fluent Bit service. E.g., fluent_bit_options={flush:1, grace:3}.

Consult the list of available key-value pairs to configure Fluent Bit according to your needs.

We recommend factoring these options into the plugin-specific fluent-bit.yaml so that they are independent of the fluent-bit operator arguments.

tls = record (optional)

TLS configuration. Provide an empty record (tls={}) to enable TLS with defaults or set fields to customize it.

{
skip_peer_verification: bool, // skip certificate verification.
cacert: string, // CA bundle to verify peers.
certfile: string, // client certificate to present.
keyfile: string, // private key for the client certificate.
min_version: string, // minimum TLS version (`"1.0"`, `"1.1"`, `"1.2"`, "1.3"`).
ciphers: string, // OpenSSL cipher list string.
client_ca: string, // CA to validate client certificates.
require_client_cert, // require clients to present a certificate.
}

The client_ca and require_client_cert options are only applied for operators that accept incoming client connections, and otherwise ignored.

Any value not specified in the record will either be picked up from the configuration or if not configured will not be used by the operator.

See the Node TLS Setup guide for more details.

The to_fluent_bit operator can also be used from the to operator. For this, the fluentbit:// scheme can be used. The URI is then translated:

to "fluentbit://plugin"
to_fluent_bit "plugin"

Send events to Slack:

let $slack_hook = "https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX"
to_fluent_bit "slack", options={webhook: $slack_hook}

Last updated: