Skip to content
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

Support reopening when file is replaced (tail --follow=name) #2

Open
charles-dyfis-net opened this issue Jan 11, 2013 · 4 comments
Open

Comments

@charles-dyfis-net
Copy link

At present, pytailer does not poll for whether a file's direntry has been replaced, as during log rotation; GNU's version of the tail command does have this functonality.

Add an optional flag to the follow() call to persist in following a file even when that file has been rotated. If this flag is set and no new content is available after a sleep, the directory entry should be checked to determine whether it points to the same inode -- and if a new file replaces the old one, that new file should be opened and all lines from the very top of the file returned.

@nibalizer
Copy link

bump

@hiteshd
Copy link

hiteshd commented Aug 22, 2015

bump again. Also willing to help

@six8
Copy link
Owner

six8 commented Mar 4, 2016

Will accept pull requests. Haven't had a chance to work on this.

@niels-anders
Copy link

Exactly how I use pytailer, for following log files that rotate. Any chance this will be picked up some time?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants