【急】Ilogtail重复采集问题 #1117
-
硬件资源:CPU: 0.5C 内存:1G |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 14 replies
-
业务运行日志:平均每天20T |
Beta Was this translation helpful? Give feedback.
-
附上Ilogtail采集配置 |
Beta Was this translation helpful? Give feedback.
-
附上Ilogtail.log |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
看了下aiops-server-test-1G相关的日志,offset 重置为 0是因为文件inode变化了,属于正常的行为。你这些日志看上去并没有复现第一次发的日志场景,是否可以在第一次的现场打开debug日志呢 |
Beta Was this translation helpful? Give feedback.
目前怀疑是 TailSizeKB: 10485760这个配置导致的,如果ilogtail没有持久化checkpoint的话,每次重启都会设置文件offset为当前文件大小-10485760,所以会有重复采集的现象。建议把checkpoint持久化一下,然后如果数据量过大,是需要分配更多的cpu和内存的