Wasm
Use Wasm programs as a filter.
The Wasm filter lets you modify the incoming records using Wasm technology.
You can extend Fluent Bit capabilities by writing custom filters using built Wasm programs and its runtime. A Wasm-based filter takes the following steps:
(Optional) Compile Ahead Of Time (AOT) objects to optimize the Wasm execution pipeline.
Configure the filter in the main configuration.
Prepare a Wasm program that will be used by the filter.
Configuration parameters
The plugin supports the following configuration parameters:
Wasm_Path
Path to the built Wasm program that will be used. This can be a path relative to the main configuration file.
Event_Format
Define event format to interact with Wasm programs: msgpack
or json
. Default: json
.
Function_Name
Wasm function name that will be triggered to do filtering. It's assumed that the function is built inside the Wasm program specified previously.
Accessible_Paths
Specify the allowlist of paths to be able to access paths from Wasm programs.
Wasm_Heap_Size
Wasm_Stack_Size
Configuration example
Here is a configuration example.
Last updated
Was this helpful?