You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| Set | STRING:KEY| STRING:VALUE| Add a key/value pair with key `KEY` and value `VALUE`. If `KEY` already exists, _this field is overwritten_|
40
-
| Add | STRING:KEY| STRING:VALUE| Add a key/value pair with key `KEY` and value `VALUE` if `KEY`does not exist |
41
-
| Remove | STRING:KEY|NONE| Remove a key/value pair with key `KEY` if it exists |
42
-
|Remove\_wildcard| WILDCARD:KEY|NONE| Remove all key/value pairs with key matching wildcard `KEY`|
43
-
|Remove\_regex| REGEXP:KEY|NONE| Remove all key/value pairs with key matching regexp `KEY`|
44
-
| Rename | STRING:KEY| STRING:RENAMED\_KEY| Rename a key/value pair with key `KEY` to `RENAMED_KEY` if `KEY` exists AND`RENAMED_KEY`_does not exist_|
45
-
|Hard\_rename| STRING:KEY| STRING:RENAMED\_KEY| Rename a key/value pair with key `KEY` to `RENAMED_KEY` if `KEY` exists. If `RENAMED_KEY` already exists, _this field is overwritten_|
46
-
| Copy | STRING:KEY| STRING:COPIED\_KEY| Copy a key/value pair with key `KEY` to `COPIED_KEY` if `KEY` exists AND`COPIED_KEY`_does not exist_|
47
-
|Hard\_copy| STRING:KEY| STRING:COPIED\_KEY| Copy a key/value pair with key `KEY` to `COPIED_KEY` if `KEY` exists. If `COPIED_KEY` already exists, _this field is overwritten_|
48
-
|Move\_to\_start| WILDCARD:KEY|NONE| Move key/value pairs with keys matching KEY to the start of the message |
49
-
|Move\_to\_end| WILDCARD:KEY|NONE| Move key/value pairs with keys matching KEY to the end of the message |
50
-
51
-
* Rules are case insensitive, parameters are not
52
-
* Any number of rules can be set in a filter instance.
53
-
* Rules are applied in the order they appear, with each rule operating on the result of the previous rule.
41
+
|`Set`|`STRING:KEY`|`STRING:VALUE`| Add a key/value pair with key `KEY` and value `VALUE`. If `KEY` already exists, this field is overwritten.|
42
+
|`Add`|`STRING:KEY`|`STRING:VALUE`| Add a key/value pair with key `KEY` and value `VALUE` if `KEY`doesn't exist.|
43
+
|`Remove`|`STRING:KEY`|_none_| Remove a key/value pair with key `KEY` if it exists.|
44
+
|`Remove_wildcard`|`WILDCARD:KEY`|_none_| Remove all key/value pairs with key matching wildcard `KEY`.|
45
+
|`Remove_regex`|`REGEXP:KEY`|_none_| Remove all key/value pairs with key matching regexp `KEY`.|
46
+
|`Rename`|`STRING:KEY`|`STRING:RENAMED_KEY`| Rename a key/value pair with key `KEY` to `RENAMED_KEY` if `KEY` exists and`RENAMED_KEY`doesn't exist.|
47
+
|`Hard_rename`|`STRING:KEY`|`STRING:RENAMED_KEY`| Rename a key/value pair with key `KEY` to `RENAMED_KEY` if `KEY` exists. If `RENAMED_KEY` already exists, this field is overwritten.|
48
+
|`Copy`|`STRING:KEY`|`STRING:COPIED_KEY`| Copy a key/value pair with key `KEY` to `COPIED_KEY` if `KEY` exists and`COPIED_KEY`doesn't exist.|
49
+
|`Hard_copy`|`STRING:KEY`|`STRING:COPIED_KEY`| Copy a key/value pair with key `KEY` to `COPIED_KEY` if `KEY` exists. If `COPIED_KEY` already exists, this field is overwritten.|
50
+
|`Move_to_start`|`WILDCARD:KEY`|_none_| Move key/value pairs with keys matching `KEY` to the start of the message.|
51
+
|`Move_to_end`|`WILDCARD:KEY`|_none_| Move key/value pairs with keys matching `KEY` to the end of the message.|
52
+
53
+
- Rules are case insensitive, but parameters aren't.
54
+
- Any number of rules can be set in a filter instance.
55
+
- Rules are applied in the order they appear, with each rule operating on the result of the previous rule.
| Key\_exists | STRING:KEY| NONE | Is `true` if `KEY` exists |
62
-
| Key\_does\_not\_exist | STRING:KEY| NONE | Is `true` if `KEY` does not exist |
63
-
| A\_key\_matches | REGEXP:KEY| NONE | Is `true` if a key matches regex `KEY`|
64
-
| No\_key\_matches | REGEXP:KEY| NONE | Is `true` if no key matches regex `KEY`|
65
-
| Key\_value\_equals | STRING:KEY| STRING:VALUE| Is `true` if `KEY` exists and its value is `VALUE`|
66
-
| Key\_value\_does\_not\_equal | STRING:KEY| STRING:VALUE| Is `true` if `KEY` exists and its value is not `VALUE`|
67
-
| Key\_value\_matches | STRING:KEY| REGEXP:VALUE| Is `true` if key `KEY` exists and its value matches `VALUE`|
68
-
| Key\_value\_does\_not\_match | STRING:KEY| REGEXP:VALUE| Is `true` if key `KEY` exists and its value does not match `VALUE`|
69
-
| Matching\_keys\_have\_matching\_values | REGEXP:KEY| REGEXP:VALUE| Is `true` if all keys matching `KEY` have values that match `VALUE`|
70
-
| Matching\_keys\_do\_not\_have\_matching\_values | REGEXP:KEY| REGEXP:VALUE| Is `true` if all keys matching `KEY` have values that do not match `VALUE`|
71
-
72
-
* Conditions are case insensitive, parameters are not
73
-
* Any number of conditions can be set.
74
-
* Conditions apply to the whole filter instance and all its rules. _Not_ to individual rules.
75
-
* All conditions have to be `true` for the rules to be applied.
76
-
* You can set [Record Accessor](../../administration/configuring-fluent-bit/classic-mode/record-accessor.md) as `STRING:KEY` for nested key.
77
-
78
-
## Example \#1 - Add and Rename
79
-
80
-
In order 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 the following \(example\),
63
+
|`Key_exists`|`STRING:KEY`|_none_| Is `true` if `KEY` exists. |
64
+
|`Key_does_not_exist`|`STRING:KEY`|_none_| Is `true` if `KEY` doesn't exist. |
65
+
|`A_key_matches`|`REGEXP:KEY`|_none_| Is `true` if a key matches regex `KEY`. |
66
+
|`No_key_matches`|`REGEXP:KEY`|_none_| Is `true` if no key matches regex `KEY`. |
67
+
|`Key_value_equals`|`STRING:KEY`|`STRING:VALUE`| Is `true` if `KEY` exists and its value is `VALUE`. |
68
+
|`Key_value_does_not_equal`|`STRING:KEY`|`STRING:VALUE`| Is `true` if `KEY` exists and its value isn't `VALUE`. |
69
+
|`Key_value_matches`|`STRING:KEY`|`REGEXP:VALUE`| Is `true` if key `KEY` exists and its value matches `VALUE`. |
70
+
|`Key_value_does_not_match`|`STRING:KEY`|`REGEXP:VALUE`| Is `true` if key `KEY` exists and its value doesn't match `VALUE`. |
71
+
|`Matching_keys_have_matching_values`|`REGEXP:KEY`|`REGEXP:VALUE`| Is `true` if all keys matching `KEY` have values that match `VALUE`. |
72
+
|`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`. |
73
+
74
+
- Conditions are case insensitive, but parameters aren't.
75
+
- Any number of conditions can be set.
76
+
- Conditions apply to the whole filter instance and all its rules. _Not_ to individual rules.
77
+
- All conditions must be `true` for the rules to be applied.
78
+
- You can set [Record Accessor](../../administration/configuring-fluent-bit/classic-mode/record-accessor.md) as `STRING:KEY` for nested key.
79
+
80
+
## Example 1 - add and rename
81
+
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),
0 commit comments