How to monitor a windows log file in real time?
Solution 1
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.
Here's some of the features:
- View files of any size (> 2GB)
- Configurable highlighting
- Monitor multiple files simultaneously
- High-performance search algorithm
- Regular expression text search
- Filter tail mode (include or exclude lines)
Solution 2
There's also an equivalent to "tail -f" under Windows, if you have PowerShell installed:
type -wait
Solution 3
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.
Solution 4
You don't mention which platform you're using, but on Unix-like systems the tail
command does this:
tail -f /var/log/messages
In fact there are implementations of tail
for Windows also (eg. unxutils).
Solution 5
Actually, Log-Expert does what you want, plus a lot of nice feature
Related videos on Youtube
![dance2die](https://i.stack.imgur.com/dWVIl.png?s=256&g=1)
dance2die
I like to read, and build(& break?) stuff. Currently helping folks out on r/reactjs & DEV#react. Reach out to me @dance2die & check out my blog on sung.codes
Updated on September 17, 2022Comments
-
dance2die almost 2 years
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 systemsPlatform: Windows XP/2003/2008 server
[Update] this is quite handy for a quick monitoring(thanks to Ckarras's answer)
Quick screen shot of PowerShelltype -wait
(type is an alias forget-content
)-
chickeninabiscuit about 15 yearsWhich IDE are you using?
-
Pacerier almost 9 years@Sung, Do you need readonly or editable?
-
MikeSchinkel over 2 yearsWhy was this question marked off-topic?!?
-
dance2die over 2 years@MikeSchinkel Folks who closed marked it as "they tend to become obsolete quickly." It's a very old question so probably so.
-
MikeSchinkel over 2 years@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
-
dance2die over 2 years@MikeSchinkel This question does have potential should I had kept it up to date. Hopefully folks w/ enough reps can reopen and reply with latest ways
-
Rory over 2 yearsHow 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
-
-
Michael Haren about 15 yearsThe advanced features feel a little buggy but for simply tailing the file, it's perfect.
-
dance2die about 15 yearsBut doesn't this mean I have to be running the command constantly?
-
user122302 about 15 yearsNo, 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.
-
dance2die about 15 yearsBecause 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.
-
Jorge Alves about 15 yearsThat one looks nice to know about too.
-
dance2die about 15 years+1 Wow, I have been using Notepad++ for awhile but didn't know about this functionality. thanks.
-
Chris Canal about 15 yearsHe also said for the Windows OS.
-
Chris Canal about 15 yearsHe edited his post to say it's for Windows OS only.
-
EricMinick about 15 yearsThere are plenty of versions of tail for Windows, including in cygwin.
-
Sophie Alpert about 15 yearsNot when I answered, he hadn't.
-
dance2die about 15 yearsWould you post link to Kiwi Log Viewer? I am not sure if this one I found is the one you are referring to: kiwisyslog.com/kiwi-log-viewer-overview
-
dance2die about 15 yearsGreat! I didn't get to run into this one.
-
dance2die about 15 yearsIt looks like TextPad has a the same capability as NotePad++'s Document Monitor plugin
-
dance2die about 15 yearsHmm. Cygwin. I haven't played around with that for years...
-
DougN about 15 yearsYeah, that's the one -- kiwisyslog.com
-
dance2die almost 15 yearsThis is what (BareTail Free version) I settled with for now. Thanks Rob
-
dance2die almost 15 yearsWow. 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.
-
Jacko over 13 yearsyeah, this solution rocks. Better than notepad++, which only updates every 3 seconds, and is a bit flaky.
-
Lior Alon about 12 years@Scott can be downloaded as a plugin sourceforge.net/projects/npp-plugins/files/DocMonitor
-
Lior Alon about 12 years+1 from me too. I love Notepad++ but didn't even think of looking for a plugin. Bye bye BareTail.
-
Ryan Ries over 11 yearsHave 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.
-
Sameer Alibhai about 9 yearsPlus its free :)
-
Pacerier almost 9 years@VonC, Any disclaimers?
-
VonC almost 9 years@Pacerier none that I can think of. But that was 6 years ago.
-
user over 6 yearsThis 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.
-
Stevoisiak almost 6 yearsFor those of us unfamiliar with
tail -f
, what doestype -wait
do? -
ckarras almost 6 yearsIt continuously watches the file for appended data and writes the new content to the console
-
montonero over 3 years+1 to this answer. LogExpert is by far the best free log monitoring tool. Much better than Baretail (which doesn't even have search in free version).
-
kapitan over 3 yearswow, i didnt knew this exists. ive been kicking my ass on the tail -f command [+1]
-
Jovylle Bermudez over 2 yearswait what is the sample use