Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 Faulkner, Not Kyle stop stalking me, 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.

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
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.


share|improve this answer
You can also get a command line version of tail here: – MaQleod Feb 7 '13 at 19:30

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

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