Update normalize.md (#51)

This commit is contained in:
ethfoo 2022-05-09 17:03:09 +08:00 committed by GitHub
parent 0033175646
commit 022ac16ee2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 6 deletions

View File

@ -39,7 +39,7 @@
- type: normalize
name: global
processors:
addMeta: ~
- addMeta: ~
```
@ -115,8 +115,8 @@
- type: normalize
processors:
- split:
separator: '|'
keys: ["time", "order", "service", "price"]
separator: '|'
keys: ["time", "order", "service", "price"]
```
使用以上split配置可以将日志
```
@ -137,9 +137,9 @@
- type: normalize
processors:
- split:
separator: ' '
max: 2
keys: ["time", "content"]
separator: ' '
max: 2
keys: ["time", "content"]
```
通过增加`max`参数,可以控制最多分割的字段。
比如以下日志: