You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`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.md#unit-sizes) for allowed values.|
17
-
|`Wasm_Stack_Size`| Size of the stack size of Wasm execution. Review [unit sizes](../../administration/configuring-fluent-bit.md#unit-sizes) for allowed values.|
18
-
|`Buf_Size`| Size of the buffer See [unit sizes](../../administration/configuring-fluent-bit.md#unit-sizes) 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`. |
|`oneshot`| Execute the command only once at startup.|`false`|
16
+
|`parser`| Specify the name of a parser to interpret the entry as a structured message. ||
17
+
|`threaded`| Indicates whether to run this input in its own [thread](../../administration/multithreading.md#inputs). |`false`|
18
+
|`wasi_path`| The location of a Wasm program file. ||
19
+
|`wasm_heap_size`| Size of the heap size of Wasm execution. Review [unit sizes](../../administration/configuring-fluent-bit.md#unit-sizes) for allowed values. |`8192`|
20
+
|`wasm_stack_size`| Size of the stack size of Wasm execution. Review [unit sizes](../../administration/configuring-fluent-bit.md#unit-sizes) for allowed values. |`8192`|
21
21
22
22
## Configuration examples
23
23
24
24
Here is a configuration example.
25
25
26
26
`in_exec_wasi` can handle parsers. To retrieve from structured data from a Wasm program, you must create a `parser.conf`:
27
27
28
-
The `Time_Format` should be aligned for the format of your using timestamp.
28
+
The `time_format` should be aligned for the format of your using timestamp.
29
29
30
30
This example assumes the Wasm program writes JSON style strings to `stdout`.
31
31
@@ -34,21 +34,21 @@ This example assumes the Wasm program writes JSON style strings to `stdout`.
34
34
35
35
```yaml
36
36
parsers:
37
-
- name: wasi
38
-
format: json
39
-
time_key: time
40
-
time_format: '%Y-%m-%dT%H:%M:%S.%L %z'
37
+
- name: wasi
38
+
format: json
39
+
time_key: time
40
+
time_format: '%Y-%m-%dT%H:%M:%S.%L %z'
41
41
```
42
42
43
43
{% endtab %}
44
44
{% tab title="parsers.conf" %}
45
45
46
46
```text
47
47
[PARSER]
48
-
Name wasi
49
-
Format json
50
-
Time_Key time
51
-
Time_Format %Y-%m-%dT%H:%M:%S.%L %z
48
+
Name wasi
49
+
Format json
50
+
Time_Key time
51
+
Time_Format %Y-%m-%dT%H:%M:%S.%L %z
52
52
```
53
53
54
54
{% endtab %}
@@ -61,50 +61,50 @@ Then, you can specify the `parsers.conf` in the main Fluent Bit configuration:
0 commit comments