Skip to content

Commit 385aa9f

Browse files
nokute78edsiper
authored andcommitted
filters: expect: add 'result_key' property
Signed-off-by: Takahiro Yamashita <[email protected]>
1 parent 61f573c commit 385aa9f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pipeline/filters/expect.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ The plugin supports the following configuration parameters:
2323
| key\_val\_is\_null | check that the value of the key is NULL. |
2424
| key\_val\_is\_not\_null | check that the value of the key is NOT NULL. |
2525
| key\_val\_eq | check that the value of the key equals the given value in the configuration. |
26-
| action | action to take when a rule does not match. The available options are `warn` or `exit`. On `warn`, a warning message is sent to the logging layer when a mismatch of the rules above is found; using `exit` makes Fluent Bit abort with status code `255` |
26+
| action | action to take when a rule does not match. The available options are `warn` , `exit` or "result_key". On `warn`, a warning message is sent to the logging layer when a mismatch of the rules above is found; using `exit` makes Fluent Bit abort with status code `255`; `result_key` is to add a matching result to each record. |
27+
| result\_key | specify a key name of matching result. This key is to be used only when 'action' is 'result_key'.|
2728

2829
## Getting Started
2930

0 commit comments

Comments
 (0)