Skip to content

Commit 38bd1ce

Browse files
authored
Complete the documentation of the legacy mode (#1190)
Signed-off-by: tguenneguez <[email protected]>
1 parent 3a8ea0b commit 38bd1ce

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

pipeline/filters/grep.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ pipeline:
9494
{% endtab %}
9595
{% endtabs %}
9696

97-
The filter lets you use multiple rules which are applied in order. You can have as many `Regex` and `Exclude` entries as required.
97+
The filter allows to use multiple rules which are applied in order, you can have many `Regex` and `Exclude` entries as required ([more information](#multiple-conditions).
9898

9999
### Nested fields example
100100

@@ -186,8 +186,12 @@ or is missing or empty, then it will be excluded.
186186

187187
### Multiple conditions
188188

189-
If you want to set multiple `Regex` or `Exclude`, use the `Logical_Op` property
190-
to use a logical conjunction or disjunction.
189+
If you want to set multiple `Regex` or `Exclude`, you must use the `legacy` mode. In this case, the `Exclude` must be first and you can have only one `Regex`.
190+
If `Exclude` match, the string is blocked. You can have multiple `Exclude` entry.
191+
After, if there is no `Regex`, the ligne is send to the output.
192+
if there is a `Regex` and it match, the ligne is send to the output, else, it's blocked.
193+
194+
If you want to set multiple `Regex` or `Exclude`, you can use `Logical_Op` property to use logical conjuction or disjunction.
191195

192196
If `Logical_Op` is set, setting both `Regex` and `Exclude` results in an error.
193197

0 commit comments

Comments
 (0)