Wasm input plugins
Last updated
Was this helpful?
Was this helpful?
cd build/
cmake ..
make$ bin/fluent-bit -h
Usage: fluent-bit [OPTION]
Inputs
# ... other input plugin stuffs
exec_wasi Exec WASI Input
Filters
# ... other filter plugin stuffs
wasm WASM program filterrustup target add wasm32-wasipipeline:
inputs:
- name: exec_wasi
tag: exec.wasi.local
wasi_path: /path/to/wasi_built_json.wasm
# For security reasons, WASM/WASI program cannot access its outer world
# without accessible permissions. Uncomment below 'accessible_paths' and
# run Fluent Bit from the 'wasi_path' location:
# accessible_paths /path/to/fluent-bit
outputs:
- name: stdout
match: '*'[INPUT]
Name exec_wasi
Tag exec.wasi.local
WASI_Path /path/to/wasi_built_json.wasm
# For security reasons, WASM/WASI program cannot access its outer world
# without accessible permissions. Uncomment below 'accessible_paths' and
# run Fluent Bit from the 'wasi_path' location:
# accessible_paths /path/to/fluent-bit
[OUTPUT]
Name stdout
Match *