Skip to content

Commit

Permalink
yaml: update syntax for 2.0. (fluent#987)
Browse files Browse the repository at this point in the history
Signed-off-by: Phillip Whelan <phil@calyptia.com>

Signed-off-by: Phillip Whelan <phil@calyptia.com>
  • Loading branch information
pwhelan authored Nov 25, 2022
1 parent 8d40d1a commit aa32557
Showing 1 changed file with 11 additions and 16 deletions.
27 changes: 11 additions & 16 deletions administration/configuring-fluent-bit/yaml/configuration-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,8 @@ The following is an example of an _input_ section for the _cpu_ plugin.
```yaml
pipeline:
inputs:
- cpu:
- name: cpu
tag: my_cpu
- name: cpu
tag: my_cpu
```

### Filter <a href="config_filter" id="config_filter"></a>
Expand All @@ -129,10 +128,9 @@ The following is an example of a _filter_ section for the grep plugin:
```yaml
pipeline:
filters:
- grep:
- name: grep
match: *
regex: log aa
- name: grep
match: '*'
regex: log aa
```

### Output <a href="config_output" id="config_output"></a>
Expand All @@ -153,9 +151,8 @@ The following is an example of an _output_ section:
```yaml
pipeline:
outputs:
- stdout:
- name: stdout
match: my*cpu
- name: stdout
match: 'my*cpu'
```

#### Example: collecting CPU metrics
Expand All @@ -170,11 +167,9 @@ service:
pipeline:
inputs:
- cpu:
- name: cpu
tag: my_cpu
- name: cpu
tag: my_cpu
outputs:
- stdout:
- name: stdout
match: my*cpu
- name: stdout
match: 'my*cpu'
```

0 comments on commit aa32557

Please sign in to comment.