Skip to content

Commit 7e55d9e

Browse files
authored
Merge pull request #411 from daipom/1.0-fix-config-yaml-sharing-parameters
Fix wrong setting and typo
2 parents 304b410 + e508a82 commit 7e55d9e

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

configuration/config-file-yaml.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -291,29 +291,29 @@ The `!include` YAML tag can be used under sections to share the same parameters:
291291
```text
292292
# config file
293293
config:
294-
- match pattern>
295-
$type: forward
296-
# ...
297-
buffer:
298-
$type: file
299-
path: /path/to/buffer/forward
300-
<<: !include /path/to/out_buf_params.yaml
294+
- match:
295+
$type: forward
296+
# ...
297+
buffer:
298+
$type: file
299+
path: /path/to/buffer/forward
300+
<<: !include /path/to/out_buf_params.yaml
301301
302-
- match pattern>
303-
$type: elasticsearch
304-
# ...
305-
buffer:
306-
$type: file
307-
path: /path/to/buffer/es
308-
<<: !include /path/to/out_buf_params.yaml
302+
- match:
303+
$type: elasticsearch
304+
# ...
305+
buffer:
306+
$type: file
307+
path: /path/to/buffer/es
308+
<<: !include /path/to/out_buf_params.yaml
309309
310310
# /path/to/out_buf_params.yaml
311311
flush_interval: 5s
312312
total_limit_size: 100m
313313
chunk_limit_size: 1m
314314
```
315315

316-
Note that, in the middle of element case of `!include` YAML tag usage, users must use `<<` syntax to inlcude other YAML objects successfully.
316+
Note that, in the middle of element case of `!include` YAML tag usage, users must use `<<:` syntax to include other YAML objects successfully.
317317

318318
### Note on Match Order
319319

0 commit comments

Comments
 (0)