Does vector continue reading from rotated files if rotation happens while it's not running? #18841
Answered
by
jszwedko
precisionconage
asked this question in
Q&A
-
I see in the docs that vector continues reading until EOF for any files that rotate while it's running. But will it do this even if the file rotates while it's not running? E.g. with this config,
what would happen in this scenario?
Will vector read any logs that it missed from application.1.log on startup? |
Beta Was this translation helpful? Give feedback.
Answered by
jszwedko
Oct 16, 2023
Replies: 1 comment 1 reply
-
Hi @precisionconage , In this case, no, because the file is excluded from the scan patterns. If you want to continue reading the file if the file is rotated when Vector is stopped, you should remove the |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
precisionconage
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @precisionconage ,
In this case, no, because the file is excluded from the scan patterns. If you want to continue reading the file if the file is rotated when Vector is stopped, you should remove the
exclude
block.