Skip to content

Commit c64ced2

Browse files
authored
pipeline: filters: lua: add enable_flb_null (#1205)
Signed-off-by: Takahiro Yamashita <nokute78@gmail.com>
1 parent c26895e commit c64ced2

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
@@ -20,6 +20,7 @@ The plugin supports the following configuration parameters:
2020
| protected\_mode | If enabled, Lua script will be executed in protected mode. It prevents Fluent Bit from crashing when invalid Lua script is executed or the triggered Lua function throws exceptions. Default is true. |
2121
| time\_as\_table | By default when the Lua script is invoked, the record timestamp is passed as a *floating number* which might lead to precision loss when it 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. |
2222
| code | Inline LUA code instead of loading from a path via `script`. |
23+
| enable_flb_null| If enabled, null will be converted to flb_null in Lua. It is useful to prevent removing key/value since nil is a special value to remove key value from map in Lua. Default is false. |
2324

2425
## Getting Started <a id="getting_started"></a>
2526

0 commit comments

Comments
 (0)