Link Search Menu Expand Document Documentation Menu

文件

使用 file 接收器创建平面文件输出,通常是 .log 文件。

配置选项

下表描述了您可以为 file 接收器配置的选项。

选项 必需 类型 描述
路径 字符串 输出文件的路径(例如 logs/my-transformed-log.log)。
append 布尔型 true 时,接收器文件以追加模式打开。

用法

以下示例展示了 file 接收器的基本用法

sample-pipeline:
  sink:
    - file:
        path: path/to/output-file
剩余 350 字符

有问题?

想做贡献?