Skip to content

Commit d7d9586

Browse files
committed
filter_grep: grep with arithmetic operators
Signed-off-by: Marcos Diez <[email protected]>
1 parent 398803c commit d7d9586

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

pipeline/filters/grep.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,20 @@ The _Grep Filter_ plugin allows you to match or exclude specific records based o
1010

1111
The plugin supports the following configuration parameters:
1212

13-
| Key | Value Format | Description |
14-
| :--- | :--- | :--- |
15-
| Regex | KEY REGEX | Keep records in which the content of KEY matches the regular expression. |
16-
| Exclude | KEY REGEX | Exclude records in which the content of KEY matches the regular expression. |
13+
| Key | Value Format | Record Type | Description |
14+
| :--- | :--- | :--- | :--- |
15+
| Regex | KEY REGEX | String | Keep records in which the content of KEY matches the regular expression. |
16+
| Exclude | KEY REGEX | String |Exclude records in which the content of KEY matches the regular expression. |
17+
| number_equal | KEY NUMBER | number |Keep records in which the content of KEY is EQUAL to NUMBER. |
18+
| number_not_equal | KEY NUMBER | number |Keep records in which the content of KEY is NOT EQUAL to NUMBER. |
19+
| number_less_than | KEY NUMBER | number |Keep records in which the content of KEY is LESS THEN the NUMBER. |
20+
| number_less_than_or_equal | KEY NUMBER | number |Keep records in which the content of KEY is LESS THEN or EQUAL to NUMBER. |
21+
| number_greater_than | KEY NUMBER | number |Keep records in which the content of KEY is GREATHER THAN the NUMBER. |
22+
| number_greater_than_or_equal | KEY NUMBER | number |Keep records in which the content of KEY is GREATHER THAN OR EQUAL to NUMBER. |
23+
24+
25+
If you use the number compare parameters with a KEY that does not have a NUMBER as a value, it will be excluded.
26+
Also, if you use `REGEX` or `EXCLUDE` with a number, it will never match it.
1727

1828
#### Record Accessor Enabled
1929

0 commit comments

Comments
 (0)