Skip to content

Commit f0a2fb4

Browse files
esmerelcnorris-cs
andauthored
Apply suggestions from code review
Co-authored-by: Craig Norris <[email protected]> Signed-off-by: Lynette Miles <[email protected]>
1 parent cb79196 commit f0a2fb4

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

pipeline/filters/modify.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ The plugin supports the following rules:
5050
| `Move_to_start` | `WILDCARD:KEY` | _none_ | Move key/value pairs with keys matching `KEY` to the start of the message. |
5151
| `Move_to_end` | `WILDCARD:KEY` | _none_ | Move key/value pairs with keys matching `KEY` to the end of the message. |
5252

53-
- Rules are case insensitive, parameters aren't.
53+
- Rules are case insensitive, but parameters aren't.
5454
- Any number of rules can be set in a filter instance.
5555
- Rules are applied in the order they appear, with each rule operating on the result of the previous rule.
5656

@@ -71,15 +71,17 @@ The plugin supports the following conditions:
7171
| `Matching_keys_have_matching_values` | `REGEXP:KEY` | `REGEXP:VALUE` | Is `true` if all keys matching `KEY` have values that match `VALUE`. |
7272
| `Matching_keys_do_not_have_matching_values` | `REGEXP:KEY` | `REGEXP:VALUE` | Is `true` if all keys matching `KEY` have values that don't match `VALUE`. |
7373

74-
- Conditions are case insensitive, parameters aren't.
74+
- Conditions are case insensitive, but parameters aren't.
7575
- Any number of conditions can be set.
7676
- Conditions apply to the whole filter instance and all its rules. _Not_ to individual rules.
77-
- All conditions have to be `true` for the rules to be applied.
77+
- All conditions must be `true` for the rules to be applied.
7878
- You can set [Record Accessor](../../administration/configuring-fluent-bit/classic-mode/record-accessor.md) as `STRING:KEY` for nested key.
7979

8080
## Example 1 - add and rename
8181

82-
To start filtering records, you can run the filter from the command line or through the configuration file. The following invokes the [Memory Usage Input Plugin](../inputs/memory-metrics.md), which outputs data similar to the following:
82+
To start filtering records, you can run the filter from the command line or through
83+
the configuration file. The following invokes the [Memory Usage Input Plugin](../inputs/memory-metrics.md),
84+
which outputs data similar to the following:
8385

8486
```text
8587
[0] memory: [1488543156, {"Mem.total"=>1016044, "Mem.used"=>841388, "Mem.free"=>174656, "Swap.total"=>2064380, "Swap.used"=>139888, "Swap.free"=>1924492}]

0 commit comments

Comments
 (0)