Skip to content

Commit

Permalink
filter_lua: add new property type_int_key (fluent#94)
Browse files Browse the repository at this point in the history
Signed-off-by: Takahiro YAMASHITA <nokute78@gmail.com>
  • Loading branch information
nokute78 authored and edsiper committed Sep 18, 2018
1 parent 2248f4e commit 01cf817
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions filter/lua.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ The plugin supports the following configuration parameters:
| :--- | :--- |
| Script | Path to the Lua script that will be used. |
| Call | Lua function name that will be triggered to do filtering. It's assumed that the function is declared inside the Script defined above. |
| Type_int_key | If the key is matched, that field will be converted to integer. |

## Getting Started {#getting_started}

Expand Down Expand Up @@ -96,3 +97,6 @@ For functional examples of this interface, please refer to the code samples prov

[https://github.com/fluent/fluent-bit/tree/master/scripts](https://github.com/fluent/fluent-bit/tree/master/scripts)

### Number Type

In Lua, Fluent Bit treats number as double. It means an integer field (e.g. IDs, log levels) will be converted double. To avoid type conversion, **Type_int_key** property is available.

0 comments on commit 01cf817

Please sign in to comment.