-
Notifications
You must be signed in to change notification settings - Fork 540
filter_grep: grep with arithmetic operators #810
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
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Marcos Diez <[email protected]>
|
@esmerel can you please review this PR, as I've nudged the owner of the corresponding code PR fluent/fluent-bit#5449 to move that forward too. |
Signed-off-by: Lynette Miles <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This adds a bunch of options, I've updated the table per our style and fixed the merge conflict
Signed-off-by: Lynette Miles <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there are some fundamental implementation concerns to resolve but we seem to have removed the logical_op key in the docs as well.
| | `Regex` | `KEY REGEX` | String | Keep records in which the content of `KEY` matches the regular expression. | | ||
| | `Exclude` | `KEY REGEX` | String | Exclude records in which the content of `KEY` matches the regular expression. | | ||
| | `number_equal` | `KEY NUMBER` | number | Keep records in which the content of `KEY` is equal to `NUMBER`. | | ||
| | `number_not_equal` | `KEY NUMBER` | number | Keep records in which the content of `KEY` is not equal to `NUMBER`. | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not a fan of this, why have we removed the logical_op as well?
I would expect us to add additional operators really rather than weird looking text strings.
It needs examples, e.g. to show precedence and conflict resolution when you define multiple rules for example.
Documentation for fluent/fluent-bit#5449