Skip to content

Commit e13ac59

Browse files
Apply suggestions from code review
Co-authored-by: Lynette Miles <[email protected]> Signed-off-by: Alexa Kreizinger <[email protected]>
1 parent 21b47f0 commit e13ac59

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

pipeline/filters/lua.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ The _Lua_ filter lets you modify incoming records (or split one record into mult
66

77
A Lua-based filter requires two steps:
88

9-
1. Configure the filter in the main configuration
10-
2. Prepare a Lua script for the filter to use
9+
1. Configure the filter in the main configuration.
10+
1. Prepare a Lua script for the filter to use.
1111

1212
## Configuration parameters
1313

@@ -33,12 +33,12 @@ To test the Lua filter, you can run the plugin from the command line or through
3333
From the command line you can use the following options:
3434

3535
```bash
36-
$ fluent-bit -i dummy -F lua -p script=test.lua -p call=cb_print -m '*' -o null
36+
fluent-bit -i dummy -F lua -p script=test.lua -p call=cb_print -m '*' -o null
3737
```
3838

3939
### Configuration file
4040

41-
In your main configuration file, append the following `Input`, `Filter` and `Output` sections:
41+
In your main configuration file, append the following `Input`, `Filter`, and `Output` sections:
4242

4343
{% tabs %}
4444
{% tab title="fluent-bit.conf" %}
@@ -81,9 +81,9 @@ pipeline:
8181
The life cycle of a filter has the following steps:
8282
8383
1. Upon tag matching by this filter, it might process or bypass the record.
84-
2. If the tag matched, it will accept the record and invoke the function defined in the `call` property, which is the name of a function defined in the Lua `script`.
85-
3. It invokes the Lua function and passes each record in JSON format.
86-
4. Upon return, it validates the return value and continues the pipeline.
84+
1. If the tag matched, it will accept the record and invoke the function defined in the `call` property, which is the name of a function defined in the Lua `script`.
85+
1. It invokes the Lua function and passes each record in JSON format.
86+
1. Upon return, it validates the return value and continues the pipeline.
8787

8888
## Callback prototype
8989

@@ -186,7 +186,7 @@ Fluent Bit supports protected mode to prevent crashes if it executes an invalid
186186

187187
## Code examples
188188

189-
For functional examples of this interface, refer to the code samples provided in the source code of the project located here:
189+
For functional examples of this interface, refer to the code samples provided in the source code of the project.
190190

191191
### Processing environment variables
192192

0 commit comments

Comments
 (0)