diff --git a/docs/reference/pipelines/interceptor/jsonDecode.md b/docs/reference/pipelines/interceptor/jsonDecode.md deleted file mode 100644 index abc0e7a..0000000 --- a/docs/reference/pipelines/interceptor/jsonDecode.md +++ /dev/null @@ -1 +0,0 @@ -# jsonDecode \ No newline at end of file diff --git a/docs/reference/pipelines/interceptor/normalize.md b/docs/reference/pipelines/interceptor/normalize.md new file mode 100644 index 0000000..bb960f9 --- /dev/null +++ b/docs/reference/pipelines/interceptor/normalize.md @@ -0,0 +1,229 @@ +# normalize + +## 功能 +用于日志切分处理。 +属于source interceptor。可指定只被某些source使用。 + +## 具体参数 + +### processors + +| `类型` | `是否必填` | `默认值` | `含义` | +| ------- | ----------- | --------- | ------- | +| map数组 | 必填 | 无 | 所有的处理processor数组 | + +配置的processor将按照顺序依次执行。包括以下: +#### regex +将指定字段进行正则提取。 + +| `字段` | `类型` | `是否必填` | `默认值` | `含义` | +| ---------- | ----------- | ----------- | --------- | -------- | +| regex.pattern | string | 必填 | 无 | 正则解析规则 | +| regex.target | string | 非必填 | body | 正则解析的目标字段 | + +!!! example + ```yaml + interceptors: + - type: normalize + processors: + - regex: + pattern: '(?\S+) (?\S+) (?\S+) (?