Skip to content

Commit b31f65c

Browse files
committed
Pipeline: plugins: checklist: update for style
Signed-off-by: Lynette Miles <[email protected]>
1 parent 2b6b548 commit b31f65c

File tree

1 file changed

+15
-22
lines changed

1 file changed

+15
-22
lines changed

pipeline/filters/checklist.md

Lines changed: 15 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,22 @@
1-
---
2-
description: >-
3-
The following plugin looks up if a value in a specified list exists and then
4-
allows the addition of a record to indicate if found. Introduced in version
5-
1.8.4
6-
---
7-
81
# CheckList
92

10-
## Configuration Parameters
3+
The CheckList plugin (introduced in version 1.8.4) looks up a value in a specified list to see if it exists. The plugin then allows the addition of a record to indicate if the value was found.
4+
## Configuration parameters
115

126
The plugin supports the following configuration parameters
137

14-
| Key | Description |
15-
| :--- | :--- |
16-
| file | The single value file that Fluent Bit will use as a lookup table to determine if the specified `lookup_key` exists |
17-
| lookup\_key | The specific key to look up and determine if it exists, supports record accessor |
18-
| record | The record to add if the `lookup_key` is found in the specified `file`. Note you may add multiple record parameters. |
19-
| mode | Set the check mode. `exact` and `partial` are supported. Default : `exact`.|
20-
| print_query_time | Print to stdout the elapseed query time for every matched record. Default: false|
21-
| ignore_case | Compare strings by ignoring case. Default: false |
8+
| Key | Description | Default |
9+
| :-- | :---------- | :------ |
10+
| `file` | The single value file that Fluent Bit will use as a lookup table to determine if the specified `lookup_key` exists. | _none_ |
11+
| `lookup_key` | The specific key to look up and determine if it exists. Supports [record accessor](administration/configuring-fluent-bit/classic-mode/record-accessor). | _none_ |
12+
| `record` | The record to add if the `lookup_key` is found in the specified `file`. You can add multiple record parameters. | _none_ |
13+
| `mode` | Set the check mode. `exact` and `partial` are supported. | `exact`|
14+
| `print_query_time` | Print to stdout the elapsed query time for every matched record. | `false` |
15+
| `ignore_case` | Compare strings by ignoring case. | `false` |
2216

23-
## Example Configuration
17+
## Example configuration
2418

25-
```text
19+
```python
2620
[INPUT]
2721
name tail
2822
tag test1
@@ -44,7 +38,7 @@ The plugin supports the following configuration parameters
4438
match test1
4539
```
4640

47-
In the following configuration we will read a file `test1.log` that includes the following values
41+
In the following configuration reads a file `test1.log` that includes the following values
4842

4943
```text
5044
{"remote_addr": true, "ioc":"false", "url":"https://badurl.com/payload.htm","badurl":"no"}
@@ -57,17 +51,16 @@ In the following configuration we will read a file `test1.log` that includes the
5751
5852
```
5953

60-
Additionally, we will use the following lookup file which contains a list of malicious IPs \(`ip_list.txt`\)
54+
Additionally, it uses the following lookup file which contains a list of malicious IP addresses (`ip_list.txt`).
6155

6256
```text
6357
1.2.3.4
6458
6.6.4.232
6559
7.7.7.7
6660
```
6761

68-
In the configuration we are using $remote\_addr as the lookup key and 7.7.7.7 is malicious. This means the record we would output for the last record would look like the following
62+
The configuration uses `$remote_addr` as the lookup key and `7.7.7.7` is malicious. The record output for the last record would look like the following
6963

7064
```text
7165
{"remote_addr": "7.7.7.7", "ioc":"abc", "url":"https://badurl.com/payload.htm","badurl":"null"}
7266
```
73-

0 commit comments

Comments
 (0)