28 lines
968 B
YAML
28 lines
968 B
YAML
|
|
- type: filestream
|
||
|
|
id: input_fly-moon-email_v2-outtest-nohup
|
||
|
|
enabled: true
|
||
|
|
paths:
|
||
|
|
- /data/webapps/test/fly_moon_email_v2/nohup.out
|
||
|
|
fields:
|
||
|
|
application: fly-moon-email_v2 # 自定义字段,标识应用名称
|
||
|
|
log_type: out-test-email_nohup.out # 自定义字段,标识日志类型
|
||
|
|
environment: test # 自定义字段,标识机器环境名称
|
||
|
|
|
||
|
|
fields_under_root: true
|
||
|
|
tail_files: true
|
||
|
|
start_position: end # 从文件末尾开始读取
|
||
|
|
ignore_older: 24h # 忽略旧日志文件(避免处理已归档的日志)
|
||
|
|
scan_frequency: 10s # 定期扫描新文件的频率
|
||
|
|
clean_inactive: 25h # 清除超过一天未更新的文件
|
||
|
|
close_inactive: 5m # 文件超过5分钟无更新则关闭
|
||
|
|
close_renamed: true # 处理被重命名的文件
|
||
|
|
clean_inactive: 48h
|
||
|
|
|
||
|
|
parsers:
|
||
|
|
- multiline:
|
||
|
|
type: pattern
|
||
|
|
pattern: '^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}'
|
||
|
|
negate: true
|
||
|
|
match: after
|
||
|
|
|