From cd9bbe2e823b7f415e6d30a3cfe608407ea44d7e Mon Sep 17 00:00:00 2001 From: Takahiro Yamashita Date: Sun, 24 Sep 2023 10:17:46 +0900 Subject: [PATCH] pipeline: filters: lua: add enable_flb_null Signed-off-by: Takahiro Yamashita --- pipeline/filters/lua.md | 1 + 1 file changed, 1 insertion(+) diff --git a/pipeline/filters/lua.md b/pipeline/filters/lua.md index 2ebdc9b2a..2ef8e9872 100644 --- a/pipeline/filters/lua.md +++ b/pipeline/filters/lua.md @@ -20,6 +20,7 @@ The plugin supports the following configuration parameters: | 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. | | 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. | | code | Inline LUA code instead of loading from a path via `script`. | +| 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. | ## Getting Started