LoongCollector 把流水线分为两类:
- Continuous(持续采集):常驻运行,持续发现并采集新增内容,例如
input_file。 - OneTime(一次性采集):启动后只执行一次,完成后结束,例如
input_static_file_onetime。
判定逻辑:
- 客户端识别 OneTime 的 "开关" 是
global.ExcutionTimeout,存在该字段时识别为 OneTime 并计算过期时间。 - 同时 inputs 必须为一次性输入插件(通常以
_onetime结尾),否则配置不生效。
OneTime 配置示例片段:
enable: true
global:
ExcutionTimeout: 3600
inputs:
- Type: input_static_file_onetime
FilePaths:
- /var/log/history/*.log




