Skip to content

Commit 8866fc4

Browse files
committed
filter: lua: document 'time_as_table'
Signed-off-by: Eduardo Silva <eduardo@treasure-data.com>
1 parent 1ea0e87 commit 8866fc4

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

pipeline/filters/lua.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@ The plugin supports the following configuration parameters:
1313

1414
| Key | Description |
1515
| :--- | :--- |
16-
| Script | Path to the Lua script that will be used. |
17-
| Call | Lua function name that will be triggered to do filtering. It's assumed that the function is declared inside the Script defined above. |
18-
| Type\_int\_key | If these keys are matched, the fields are converted to integer. If more than one key, delimit by space |
19-
| 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. |
16+
| script | Path to the Lua script that will be used. |
17+
| call | Lua function name that will be triggered to do filtering. It's assumed that the function is declared inside the Script defined above. |
18+
| 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+
| 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. |
20+
| 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. |
2021

2122
## Getting Started <a id="getting_started"></a>
2223

0 commit comments

Comments
 (0)