rotation about log #3779
Unanswered
modric-jrc
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,I would like to ask about the in_tail plugin,Normal log rotation will first detected rotation of file, then following tail of file, but sometimes will error, it first following tail of file, then detected rotation of file, and new file will not be read.
td-agentd.log:
2022-06-10 00:00:00 +0800 [info]: #0 detected rotation of /home/logs/game/aaa/bi/bi.log; waiting 5 seconds
2022-06-10 00:00:00 +0800 [info]: #0 following tail of /home/logs/game/aaa/bi/bi.log
2022-06-10 00:00:02 +0800 [info]: #0 detected rotation of /home/logs/game/bbb/bi/bi.log; waiting 5 seconds
2022-06-10 00:00:02 +0800 [info]: #0 following tail of /home/logs/game/bbb/bi/bi.log
2022-06-10 00:00:03 +0800 [info]: #0 following tail of /home/logs/game/ccc/bi/bi.log
2022-06-10 00:00:03 +0800 [info]: #0 detected rotation of /home/logs/game/ccc/bi/bi.log; waiting 5 seconds
The last two lines cause the new file to be unreadable
Beta Was this translation helpful? Give feedback.
All reactions