ilogtail源码配置参数"polling_ignore_file_modify_timeout":7200的含义 #679
-
之前遇到一个问题,A日志文件正常被ilogtail日志文件采集,ilogtail因为不可控原因宕机,此时A日志文件还不断更新,切割生成新的历史文件B、C、D。 如果再次重启ilogtail 会发现只采集不断更新的日志文件A和之前ilogtail停止时的历史文件B。C和D被忽略掉了。 |
Beta Was this translation helpful? Give feedback.
Answered by
yyuuttaaoo
Mar 13, 2023
Replies: 1 comment 1 reply
-
超过这个polling_ignore_file_modify_timeout就认为是老的历史数据文件了,如果没有更新不会采集。B会采集是因为在checkpoint的中的文件会保证采完。 DEFINE_FLAG_INT32(ignore_file_modify_timeout, "if file modify time is up to XXX seconds, ignore it", 180);
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
messixukejia
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
超过这个polling_ignore_file_modify_timeout就认为是老的历史数据文件了,如果没有更新不会采集。B会采集是因为在checkpoint的中的文件会保证采完。
DEFINE_FLAG_INT32(ignore_file_modify_timeout, "if file modify time is up to XXX seconds, ignore it", 180);