Skip to content

Commit f32293f

Browse files
authored
Merge pull request #1721 from fluent/lynettemiles/sc-136175/update-fluent-bit-docs-pipeline-inputs-exec
2 parents 17de6e5 + 1ac4729 commit f32293f

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

pipeline/inputs/exec-wasi.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
11
# Exec Wasi
22

3-
The **exec_wasi** input plugin, allows to execute WASM program that is WASI target like as external program and collects event logs from there.
3+
The _Exec Wasi_ input plugin lets you execute Wasm programs that are WASI targets like external programs and collect event logs from there.
44

5-
## Configuration Parameters
5+
## Configuration parameters
66

77
The plugin supports the following configuration parameters:
88

99
| Key | Description |
1010
| :--- | :--- |
11-
| WASI\_Path | The place of a WASM program file. |
12-
| Parser | Specify the name of a parser to interpret the entry as a structured message. |
13-
| Accessible\_Paths | Specify the whitelist of paths to be able to access paths from WASM programs. |
14-
| Interval\_Sec | Polling interval \(seconds\). |
15-
| Interval\_NSec | Polling interval \(nanosecond\). |
16-
| Wasm\_Heap\_Size | Size of the heap size of Wasm execution. Review [unit sizes](../../administration/configuring-fluent-bit/unit-sizes.md) for allowed values. |
17-
| Wasm\_Stack\_Size | Size of the stack size of Wasm execution. Review [unit sizes](../../administration/configuring-fluent-bit/unit-sizes.md) for allowed values. |
18-
| Buf\_Size | Size of the buffer \(check [unit sizes](../../administration/configuring-fluent-bit/unit-sizes.md) for allowed values\) |
19-
| Oneshot | Only run once at startup. This allows collection of data precedent to fluent-bit's startup (bool, default: false) |
20-
| Threaded | Indicates whether to run this input in its own [thread](../../administration/multithreading.md#inputs). Default: `false`. |
21-
22-
## Configuration Examples
11+
| `WASI_Path` | The location of a Wasm program file. |
12+
| `Parser` | Specify the name of a parser to interpret the entry as a structured message. |
13+
| `Accessible_Paths` | Specify the allowed list of paths to be able to access paths from WASM programs. |
14+
| `Interval_Sec` | Polling interval (seconds). |
15+
| `Interval_NSec` | Polling interval (nanosecond). |
16+
| `Wasm_Heap_Size` | Size of the heap size of Wasm execution. Review [unit sizes](../../administration/configuring-fluent-bit/unit-sizes.md) for allowed values. |
17+
| `Wasm_Stack_Size` | Size of the stack size of Wasm execution. Review [unit sizes](../../administration/configuring-fluent-bit/unit-sizes.md) for allowed values. |
18+
| `Buf_Size` | Size of the buffer See [unit sizes](../../administration/configuring-fluent-bit/unit-sizes.md) for allowed values. |
19+
| `Oneshot` | Only run once at startup. This allows collection of data precedent to the Fluent Bit startup (Boolean, default: `false`). |
20+
| `Threaded` | Indicates whether to run this input in its own [thread](../../administration/multithreading.md#inputs). Default: `false`. |
21+
22+
## Configuration examples
2323

2424
Here is a configuration example.
25-
in\_exec\_wasi can handle parser.
26-
To retrieve from structured data from WASM program, you have to create parser.conf:
2725

28-
Note that `Time_Format` should be aligned for the format of your using timestamp.
29-
In this documents, we assume that WASM program should write JSON style strings into stdout.
26+
`in_exec_wasi` can handle parsers. To retrieve from structured data from a WASM program, you must create a `parser.conf`:
3027

28+
The `Time_Format` should be aligned for the format of your using timestamp.
29+
30+
This example assumes the WASM program writes JSON style strings to `stdout`.
3131

3232
```python
3333
[PARSER]
@@ -37,7 +37,7 @@ In this documents, we assume that WASM program should write JSON style strings i
3737
Time_Format %Y-%m-%dT%H:%M:%S.%L %z
3838
```
3939

40-
Then, you can specify the above parsers.conf in the main fluent-bit configuration:
40+
Then, you can specify the `parsers.conf` in the main Fluent Bit configuration:
4141

4242
```python
4343
[SERVICE]

0 commit comments

Comments
 (0)