From d7d95864e53a1db2129a05c07b89b007607935ce Mon Sep 17 00:00:00 2001 From: Marcos Diez Date: Thu, 12 May 2022 18:53:09 -0300 Subject: [PATCH 1/2] filter_grep: grep with arithmetic operators Signed-off-by: Marcos Diez --- pipeline/filters/grep.md | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/pipeline/filters/grep.md b/pipeline/filters/grep.md index 0fd3c3993..468cbc23b 100644 --- a/pipeline/filters/grep.md +++ b/pipeline/filters/grep.md @@ -10,10 +10,20 @@ The _Grep Filter_ plugin allows you to match or exclude specific records based o The plugin supports the following configuration parameters: -| Key | Value Format | Description | -| :--- | :--- | :--- | -| Regex | KEY REGEX | Keep records in which the content of KEY matches the regular expression. | -| Exclude | KEY REGEX | Exclude records in which the content of KEY matches the regular expression. | +| Key | Value Format | Record Type | Description | +| :--- | :--- | :--- | :--- | +| 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. | +| number_less_than | KEY NUMBER | number |Keep records in which the content of KEY is LESS THEN the NUMBER. | +| number_less_than_or_equal | KEY NUMBER | number |Keep records in which the content of KEY is LESS THEN or EQUAL to NUMBER. | +| number_greater_than | KEY NUMBER | number |Keep records in which the content of KEY is GREATHER THAN the NUMBER. | +| number_greater_than_or_equal | KEY NUMBER | number |Keep records in which the content of KEY is GREATHER THAN OR EQUAL to NUMBER. | + + +If you use the number compare parameters with a KEY that does not have a NUMBER as a value, it will be excluded. +Also, if you use `REGEX` or `EXCLUDE` with a number, it will never match it. #### Record Accessor Enabled From 8fe527b56e8ed3cb0925ce9796b379dced6d6ec9 Mon Sep 17 00:00:00 2001 From: Lynette Miles <6818907+esmerel@users.noreply.github.com> Date: Mon, 27 Oct 2025 10:48:48 -0700 Subject: [PATCH 2/2] Update pipeline/filters/grep.md Signed-off-by: Lynette Miles <6818907+esmerel@users.noreply.github.com> --- pipeline/filters/grep.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipeline/filters/grep.md b/pipeline/filters/grep.md index 32178f205..76cd8cf84 100644 --- a/pipeline/filters/grep.md +++ b/pipeline/filters/grep.md @@ -22,7 +22,7 @@ The plugin supports the following configuration parameters: | `number_greater_than_or_equal` | `KEY NUMBER` | number | Keep records in which the content of `KEY` is greater than or equal to `NUMBER`. | -If you use the number compare parameters with a KEY that does not have a NUMBER as a value, it will be excluded. +If you use the number compare parameters with a `KEY` that doesn't have a `NUMBER` as a value, it will be excluded. If you use `REGEX` or `EXCLUDE` with a number, it will never match it.