Skip to content

Commit fe6b2b7

Browse files
Apply suggestions from code review
Co-authored-by: Alexa Kreizinger <[email protected]> Signed-off-by: Lynette Miles <[email protected]>
1 parent 2e9af2f commit fe6b2b7

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

pipeline/filters/nest.md

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -74,19 +74,17 @@ The plugin supports the following configuration parameters:
7474

7575
## Get started
7676

77-
To start filtering records, run the filter from the command line or through the configuration file. The following example invokes the
78-
[Memory Usage Input Plugin](../inputs/memory-metrics.md), which outputs the following:
77+
To start filtering records, run the filter from the command line or through the configuration file. The following example invokes the [Memory Usage input plugin](../inputs/memory-metrics.md), which outputs the following:
7978

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

8483
## Example 1 - nest
8584

86-
### Use `nest` from the command Line
85+
### Use `nest` from the command line
8786

88-
Using command line mode requires quotes to parse the wildcard properly. The use
89-
of a configuration file is recommended.
87+
Using the command line mode requires quotes to parse the wildcard properly. The use of a configuration file is recommended.
9088

9189
The following command loads the _mem_ plugin. Then the _nest_ filter matches the
9290
wildcard rule to the keys and nests the keys matching `Mem.*` under the new key
@@ -154,8 +152,7 @@ The output of both the command line and configuration invocations should be iden
154152
155153
## Example 2 - `nest` and `lift` undo
156154

157-
This example nests all `Mem.*` and `Swap.*` items under the `Stats` key and then
158-
reverses these actions with a `lift` operation. The output appears unchanged.
155+
This example nests all `Mem.*` and `Swap.*` items under the `Stats` key and then reverses these actions with a `lift` operation. The output appears unchanged.
159156

160157
### `nest` and `lift` undo configuration file
161158

@@ -322,10 +319,7 @@ pipeline:
322319

323320
## Example 4 - multiple `nest` and `lift` filters with prefix
324321

325-
This example uses the 3-level deep nesting of Example 2 and applies the
326-
`lift` filter three times to reverse the operations. The end result is that all
327-
records are at the top level, without nesting, again. One prefix is added for each
328-
level that's lifted.
322+
This example uses the 3-level deep nesting of Example 2 and applies the `lift` filter three times to reverse the operations. The end result is that all records are at the top level, without nesting, again. One prefix is added for each level that's lifted.
329323

330324
### `nest` and `lift` prefix configuration file
331325

0 commit comments

Comments
 (0)