Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

This question already has an answer here:

My servers hung, and after a restart it showed me that my hard drive was full (Windows Server 2008). I looked into the problem and it was a 189 GB Tomcat log file!

To find out the cause for the crash, seeing the last 100 lines of the file would be enough.

Is there a quick way to do this?

share|improve this question

marked as duplicate by Karan, Dave M, Tanner, Kyle, 8088 Feb 8 '13 at 17:21

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

2  
Which version of Windows? Do the solution suggested in Windows XP equivalent of “tail -f”? help? –  Dennis Feb 7 '13 at 17:35
    
if it is that big I imagine it is being written to quite frequently. Just delete it then read what it writes new. –  EBGreen Feb 7 '13 at 17:44
    
tailforwin32 did the trick. Dennis please post as answer so I can accept it –  Kossel Feb 7 '13 at 18:09
add comment

2 Answers

up vote 2 down vote accepted

Tail for Win32 is a GUI tool that can be used to monitor changes to a log file in real time.

screenshot

share|improve this answer
    
You can also get a command line version of tail here: gnuwin32.sourceforge.net/packages/coreutils.htm –  MaQleod Feb 7 '13 at 19:30
add comment

You need to set up the log to rotate. As of right now, your log is just constantly appending to the end, which is causing it to grow constantly. There is a solution on the Stack Overflow website which you might want to try.

share|improve this answer
    
I do have log file rotation per day, but for somehow, only that day the file goes huge (usually 300k) –  Kossel Feb 7 '13 at 17:49
    
did you examine the log file to see what was causing it to fill up? –  Keltari Feb 7 '13 at 17:55
    
that's what I want to do :) –  Kossel Feb 7 '13 at 17:57
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.