Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
On windows how can I easily monitor a log file and see updates to the file in real time?
Basically, same functionality like tail -f log_file on Unix systems
Platform: Windows XP/2003/2008 server
[Update] this is quite handy for a quick monitoring(thanks to Ckarras's answer)
Quick screen shot of PowerShell type -wait (type is an alias for get-content)
@dance2die — It is very frustrating to search for answers to real tech questions that I have only to find the question that could have possibly answered my question was closed by the pendants on the site for some arcane reason. It has me leaving the site with a negative feeling about the sites. And I say this as a former moderator on one of StackExchange sites. #justsaying
How is this question even remotely off-topic?! Monitoring windows log files, sounds a lot like the first two bullet points of "on-topic" items listed here serverfault.com/help/on-topic
I've been using BareTailPro for awhile, and have been very pleased. It hasn't been updated in awhile, but it still meets my needs. There's also a free version.
This is much slow for big files with long lines and the last update is from 2006 (12 years ago). The best program is pointed on this other answer Log viewer on Windows. The program glogg despite being simpler than this, handles big files with much better performance, was updated just last year, is open source (github.com/nickbnf/glogg) and has support to Windows, Linux and Max OSX.
Wow. this is quite awesome. I had no idea about that "-wait" option for "Get-Content". Thanks ckarras. I have also updated question with the screenshot.
Have an upvote for giving an answer that shows you can do this right out of the box if you know how to use OS and that you don't need to install 3rd party tools.
I use Notepad++ as my default text editor on all my systems, and it has the nice bonus of having this built-in - just go Plugins -> Document Monitor -> Start to monitor. You can also use File -> Reload from disk to manually reload it.
Because of "tail" stuff people were mentioning, I found something called "BareTail" - baremetalsoft.com/baretail So far it seems to be doing what I wanted. But I am open for more suggestions.
I have had good luck with the windows program mtail. It does a very nice job of monitoring an active log. You can configure quite a few options but in general I have found the defaults work very well.
No, the tail command will wait after printing the last line, and when the file is updated/appended it will print the new line(s) and wait again. Instead of plain tail you might try vanheusden.com/multitail.
I love the Kiwi Log Viewer. They were just bought out by Solarwinds -- I assume the product is still for sale (or maybe they're giving it away for free now? They're giving away a few other Kiwi products).
I typically do this with TextPad. It has the option to monitor that a file has been modified. It is an option to either automatically update the window or to prompt you whether or not you want to reload the file.
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.