-
Notifications
You must be signed in to change notification settings - Fork 541
Pipeline: filters: expect: Style updates #1679
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
esmerel
merged 2 commits into
master
from
lynettemiles/sc-136146/update-fluent-bit-docs-pipeline-filters-expect
May 20, 2025
Merged
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,34 +1,23 @@ | ||
| --- | ||
| description: >- | ||
| Made for testing: make sure that your records contain the expected key and | ||
| values | ||
| description: Testing your records for expected key and values | ||
| --- | ||
|
|
||
| # Expect | ||
|
|
||
| The _expect_ filter plugin allows you to validate that records match certain criteria in their structure, like validating that a key exists or it has a specific value. | ||
| The _expect_ filter plugin lets you validate that records match certain criteria in their structure, like validating that a key exists or it has a specific value. | ||
|
|
||
| The following page just describes the configuration properties available, for a detailed explanation of its usage and use cases, please refer the following page: | ||
| For a detailed explanation of its usage and use cases, refer to [Validating and your Data and Structure](../../local-testing/validating-your-data-and-structure.md). | ||
esmerel marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| * [Validating and your Data and Structure](../../local-testing/validating-your-data-and-structure.md) | ||
|
|
||
| ## Configuration Parameters | ||
| ## Configuration parameters | ||
|
|
||
| The plugin supports the following configuration parameters: | ||
|
|
||
| | Property | Description | | ||
| | :--- | :--- | | ||
| | key\_exists | Check if a key with a given name exists in the record. | | ||
| | key\_not\_exists | Check if a key does not exist in the record. | | ||
| | key\_val\_is\_null | check that the value of the key is NULL. | | ||
| | key\_val\_is\_not\_null | check that the value of the key is NOT NULL. | | ||
| | key\_val\_eq | check that the value of the key equals the given value in the configuration. | | ||
| | 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. | | ||
| | result\_key | specify a key name of matching result. This key is to be used only when 'action' is 'result_key'.| | ||
|
|
||
| ## Getting Started | ||
|
|
||
| As mentioned on top, refer to the following page for specific details of usage of this filter: | ||
|
|
||
| * [Validating and your Data and Structure](../../local-testing/validating-your-data-and-structure.md) | ||
|
|
||
| | `key_exists` | Check if a key with a given name exists in the record. | | ||
| | `key_not_exists` | Check if a key doesn't exist in the record. | | ||
| | `key_val_is_null` | Check that the value of the key is `NULL`. | | ||
| | `key_val_is_not_null` | Check that the value of the key is `NOT NULL`. | | ||
| | `key_val_eq` | Check that the value of the key equals the given value in the configuration. | | ||
| | `action` | Action to take when a rule doesn't match. Available options are `warn` , `exit` or `result_key`. On `warn`, a warning message is sent to the logging layer when a mismatch of the `key*` rules is found. Using `exit` makes Fluent Bit exit with status code `255`. `result_key` adds a matching result to each record. | | ||
| | `result_key` | Specify a key name of matching result. Used only when `action` is `result_key`.| | ||
esmerel marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.