Feat: add container logconfig tips (#94)

This commit is contained in:
ethfoo 2022-09-02 14:31:43 +08:00 committed by GitHub
parent 38be91857e
commit cb46381306
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 0 deletions

View File

@ -11,6 +11,9 @@ file source用于日志采集。
```
!!! tips
如果你使用logconfig/clusterlogconfig采集容器日志file source里还增加了额外的字段请参考[这里](../../discovery/kubernetes/logconfig.md#sources)。
## paths
| `字段` | `类型` | `是否必填` | `默认值` | `含义` |
| ---------- | ----------- | ----------- | --------- | -------- |
@ -41,6 +44,16 @@ file source用于日志采集。
| ------------ | ---------- | ---------- | -------- | ------------------------ |
| excludeFiles | string数组 | 非必填 | 无 | 排除采集的文件正则表达式 |
!!! example
```yaml
sources:
- type: file
paths:
- /tmp/*.log
excludeFiles:
- \.gz$
```
## ignoreOlder
| `字段` | `类型` | `是否必填` | `默认值` | `含义` |
@ -78,6 +91,7 @@ file source用于日志采集。
```
state含义解释
- pipeline: 所在的pipeline名称
- source: 所在的source名称
- filename: 采集的文件名称