Tail4win » Use cases » Filter a busy log
Download Tail4win Free Trial » Buy Tail4win Now »
A production log is not a quiet document. Requests, health checks, retries and routine messages scroll past faster than anyone can read, and the one line that explains the problem is somewhere in the middle of it - if it is on screen at all before it scrolls away.
Reading it in a viewer means watching the text go by and hoping to notice. The Unix habit is to pipe the tail into grep; on Windows there is no such pipeline without a development environment.
tail -f | grep: only the lines that match are shown, and the rest of the stream is discarded.
The filter can be switched off to see the full stream again - which matters when the thing you were looking for turns out not to be the thing that was wrong. Filters and highlight rules are part of a saved session, so the same view can be opened again tomorrow.
ERR in one file and ERROR in another needs two patterns.Marking instead of hiding: highlighting. The grep comparison: Windows tail with grep, and the guide to tail and grep on Windows. Following the file first: watching a live log. Command line equivalent: Tail4win command line.