原始数据

简介

processor_default插件不对数据任何操作,只是简单的数据透传。源代码

支持的Event类型

LogGroup(v1)EventTypeLoggingEventTypeMetricEventTypeSpan

版本

Stable

配置参数

参数类型,默认值说明

Type

String,无默认值(必填)

插件类型,固定为processor_default

样例

采集/home/test-log/路径下的default.log文件,提取文件的原始数据。

  • 输入

echo "2022/07/14/11:32:47 test log" >> /home/test-log/default.log
  • 采集配置

enable: true
inputs:
  - Type: input_file
    FilePaths: 
      - /home/test-log/*.log
processors:
  - Type: processor_default
    SourceKey: content
flushers:
  - Type: flusher_stdout
    OnlyStdout: true
  • 输出

{
    "__tag__:__path__":"/home/test-log/default.log",
    "content":"2022/07/14/11:32:47 test log",
    "__time__":"1657769827"}
}

Last updated