This commit is contained in:
2025-12-14 23:43:44 +08:00
parent 8ba472ffd3
commit c632fc1179
2 changed files with 6 additions and 9 deletions

View File

@@ -11,9 +11,6 @@
instance: prod-lessie-server05 instance: prod-lessie-server05
ip : 43.130.53.202 ip : 43.130.53.202
fields_under_root: true fields_under_root: true
# multiline.pattern: '^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2},\d{3}'
# multiline.negate: true
# multiline.match: after
ignore_older: 24h # 忽略旧日志文件(避免处理已归档的日志) ignore_older: 24h # 忽略旧日志文件(避免处理已归档的日志)
scan_frequency: 10s # 定期扫描新文件的频率 scan_frequency: 10s # 定期扫描新文件的频率
clean_inactive: 25h # 清除超过一天未更新的文件 clean_inactive: 25h # 清除超过一天未更新的文件

View File

@@ -12,12 +12,12 @@
instance: us-prod-02 # 自定义字段,标识机器名称 instance: us-prod-02 # 自定义字段,标识机器名称
fields_under_root: true fields_under_root: true
ignore_older: 24h # 忽略旧日志文件(避免处理已归档的日志) ignore_older: 24h
scan_frequency: 10s # 定期扫描新文件的频率 scan_frequency: 10s
clean_inactive: 25h # 清除超过一天未更新的文件 clean_inactive: 25h
close_inactive: 5m # 文件超过5分钟无更新则关闭 close_inactive: 5m
close_renamed: true # 处理被重命名的文件 close_renamed: true
start_position: beginning # 从文件的开头读取 start_position: beginning