diff --git a/docs/user-guide/logs/pipeline-config.md b/docs/user-guide/logs/pipeline-config.md index b3e2014b7..eda7ff611 100644 --- a/docs/user-guide/logs/pipeline-config.md +++ b/docs/user-guide/logs/pipeline-config.md @@ -1024,7 +1024,8 @@ processors: transform: - field: input_str, ts - type: time + type: time, ms + index: timestamp ``` Simply add a `version: 2` line at the top of the config file, and the pipeline engine will run the transform in combined mode: @@ -1032,7 +1033,7 @@ Simply add a `version: 2` line at the top of the config file, and the pipeline e 2. Write all fields of the pipeline context to the final table. Note: -- If the transform section is explicitly written, it must contain a time index field. Otherwise the time-index field will be inferred by the pipeline engine just like the auto-transform mode. +- If the transform section is explicitly written, **it must contain a time index field**. Otherwise the time-index field will be inferred by the pipeline engine just like the auto-transform mode. - The transform process in the version 2 will consume the original field in the pipeline context, so you can't transform the same field twice. ## Dispatcher diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/logs/pipeline-config.md b/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/logs/pipeline-config.md index 136998a39..f12097e6d 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/logs/pipeline-config.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/logs/pipeline-config.md @@ -1042,7 +1042,8 @@ processors: transform: - field: input_str, ts - type: time + type: time, ms + index: timestamp ``` 只需要在配置文件的开头加上 `version: 2`,pipeline 引擎就会以新的 transform 模式来处理数据: @@ -1050,7 +1051,7 @@ transform: 2. 将 pipeline 上下文中的所有字段保存到最终的结果表中 注意: -- 如果明确配置了 transform 规则,那么它必须要包含时间索引列。否则时间索引列会由 pipeline 引擎进行推导,该行为和 auto-transform 模式一致 +- 如果明确配置了 transform 规则,**那么它必须要包含时间索引列**。否则时间索引列会由 pipeline 引擎进行推导,该行为和 auto-transform 模式一致 - 版本 2 中的 transform 规则执行会将原始字段从 pipeline 上下文中移除,故你无法在 transform 规则对同一个字段引用多次 ## Dispatcher diff --git a/i18n/zh/docusaurus-plugin-content-docs/version-0.15/user-guide/logs/pipeline-config.md b/i18n/zh/docusaurus-plugin-content-docs/version-0.15/user-guide/logs/pipeline-config.md index 8eaac7226..f94275394 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/version-0.15/user-guide/logs/pipeline-config.md +++ b/i18n/zh/docusaurus-plugin-content-docs/version-0.15/user-guide/logs/pipeline-config.md @@ -1038,7 +1038,8 @@ processors: transform: - field: input_str, ts - type: time + type: time, ms + index: timestamp ``` 只需要在配置文件的开头加上 `version: 2`,pipeline 引擎就会以新的 transform 模式来处理数据: @@ -1046,7 +1047,7 @@ transform: 2. 将 pipeline 上下文中的所有字段保存到最终的结果表中 注意: -- 如果明确配置了 transform 规则,那么它必须要包含时间索引列。否则时间索引列会由 pipeline 引擎进行推导,该行为和 auto-transform 模式一致 +- 如果明确配置了 transform 规则,**那么它必须要包含时间索引列**。否则时间索引列会由 pipeline 引擎进行推导,该行为和 auto-transform 模式一致 - 版本 2 中的 transform 规则执行会将原始字段从 pipeline 上下文中移除,故你无法在 transform 规则对同一个字段引用多次 ## Dispatcher diff --git a/versioned_docs/version-0.15/user-guide/logs/pipeline-config.md b/versioned_docs/version-0.15/user-guide/logs/pipeline-config.md index 6d2176822..9fcfa3cf7 100644 --- a/versioned_docs/version-0.15/user-guide/logs/pipeline-config.md +++ b/versioned_docs/version-0.15/user-guide/logs/pipeline-config.md @@ -1020,7 +1020,8 @@ processors: transform: - field: input_str, ts - type: time + type: time, ms + index: timestamp ``` Simply add a `version: 2` line at the top of the config file, and the pipeline engine will run the transform in combined mode: @@ -1028,7 +1029,7 @@ Simply add a `version: 2` line at the top of the config file, and the pipeline e 2. Write all fields of the pipeline context to the final table. Note: -- If the transform section is explicitly written, it must contain a time index field. Otherwise the time-index field will be inferred by the pipeline engine just like the auto-transform mode. +- If the transform section is explicitly written, **it must contain a time index field**. Otherwise the time-index field will be inferred by the pipeline engine just like the auto-transform mode. - The transform process in the version 2 will consume the original field in the pipeline context, so you can't transform the same field twice. ## Dispatcher