Skip to content

Commit 9e176ed

Browse files
authored
filter: lua: add description about 'type_array_key' (#538)
Signed-off-by: Takahiro Yamashita <nokute78@gmail.com>
1 parent 694c896 commit 9e176ed

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pipeline/filters/lua.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ The plugin supports the following configuration parameters:
1616
| script | Path to the Lua script that will be used. |
1717
| call | Lua function name that will be triggered to do filtering. It's assumed that the function is declared inside the Script defined above. |
1818
| type\_int\_key | If these keys are matched, the fields are converted to integer. If more than one key, delimit by space. Note that starting from Fluent Bit v1.6 integer data types are preserved and not converted to double as in previous versions. |
19+
| type\_array\_key| If these keys are matched, the fields are handled as array. If more than one key, delimit by space. It is useful the array can be empty. |
1920
| protected\_mode | If enabled, Lua script will be executed in protected mode. It prevents to crash when invalid Lua script is executed. Default is true. |
2021
| time\_as\_table | By default when the Lua script is invoked, the record timestamp is passed as a Floating number which might lead to loss precision when the data is converted back. If you desire timestamp precision enabling this option will pass the timestamp as a Lua table with keys `sec` for seconds since epoch and `nsec` for nanoseconds. |
2122

0 commit comments

Comments
 (0)