The log is growing while you read it

Tail4win » Use cases » Watching a live log

Download Tail4win Free Trial »     Buy Tail4win Now »

The situation

Something is happening right now and the only account of it is a file that keeps being appended to. A request comes in, a job starts, a device reconnects - and you want to see the lines as they appear, not open the file in Notepad and press Ctrl+End every few seconds.

That is what tail -f does on Linux and macOS. Windows has no tail in the Command Prompt, and PowerShell's Get-Content -Wait prints the entire file first, which for a multi-gigabyte log is not a practical starting point.

What you do

  1. Open the log file in Tail4win. Only the end of the file is read, so the first lines appear immediately no matter how large the file is.
  2. Turn on the real-time display. New lines are shown as they are written - the file is followed rather than polled by hand.
  3. Leave it running. Highlight and filter keep working while it runs, so you can watch for one thing in a stream of everything.

A log file being followed in real time in Tail4win

Because it is a window rather than a console, the log can sit next to whatever you are using to reproduce the problem - a browser, a service manager, another log - and it does not have to be restarted when that window loses focus. The equivalent command line is described in tail -f and Tail4win's command line.

What it will not do

Related

Several files at once: two services, one screen. Narrowing the stream: find the error, highlighting. Logs that change name: rotated logs. Common cases: IIS, Apache, MySQL, Tomcat.