-
Notifications
You must be signed in to change notification settings - Fork 374
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reread a log file from the beginning #834
Comments
I am not sure what you want to do here. The simple answer is no, A slightly more complex answer is, yes, if the log file it is reading gets truncated and is restarted by the log writer, If you are experimenting, then the |
I was considering using |
It'll half-work, I think. When Depending on how the file is rewritten it might work well or go badly:
If you append your data to the file it'll just work because that's how logs tend to go. We could add a new flag that says this is not a log file, but a status file, and change the reader behaviour to cope with this mechanism. |
Great, thank you for the information. Should I contribute to the development of this feature, or is it already planned for a future release? |
This is not planned. You may send me some PRs if you like. |
Is there a way to have
mtail
start reading from the beginning of a log file again? For instance, if the seeker is currently at line234
, is there a way to reset the seeker to0
so that it starts reading from the beginning of the file?The text was updated successfully, but these errors were encountered: