LoongCollector
processor_default插件不对数据任何操作,只是简单的数据透传。源代码
processor_default
Stable
采集/home/test-log/路径下的default.log文件,提取文件的原始数据。
/home/test-log/
default.log
echo "2022/07/14/11:32:47 test log" >> /home/test-log/default.log
enable: trueinputs: - Type: input_file FilePaths: - /home/test-log/*.logprocessors: - Type: processor_default SourceKey: contentflushers: - Type: flusher_stdout OnlyStdout: true
{ "__tag__:__path__":"/home/test-log/default.log", "content":"2022/07/14/11:32:47 test log", "__time__":"1657769827"}}