tag:blogger.com,1999:blog-6006114617625504970.post5172869212225739877..comments2024-02-07T23:38:24.874-05:00Comments on Linux Blog: How to Watch Log Files in Realtime - TailfDevOpshttp://www.blogger.com/profile/02331067901785181627noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-6006114617625504970.post-5697732827991358972009-11-25T13:50:39.961-05:002009-11-25T13:50:39.961-05:00The only caveat is that tail -f is not suitable fo...The only caveat is that tail -f is not suitable for long-term use, as logrotate will rotate the watched file to log.n+1. Since the read syscall is linked to the inode and not the filename, your app will never know the file was renamed and you will be waiting patiently for new data on a stale file.<br /><br />You can use watch to periodically reiterate the tail command, or use something like xconsole to read a FIFOJodie Cunninghamhttps://www.blogger.com/profile/16600401979264170436noreply@blogger.com