Everything stays, the important parts stand out

Tail4win » Use cases » Highlighting

Download Tail4win Free Trial »     Buy Tail4win Now »

The situation

Filtering a log down to the lines that match a pattern is satisfying until the problem turns out to be the line just before the match, or the two lines that never mention the word you filtered on. What you wanted was not to remove the noise but to be able to keep reading it while your eye is drawn to what matters.

What you do

  1. While following the file, add highlight rules: a word, a level, an exception name, a request id.
  2. Follow the log with the rules on. Matching lines are marked, and the rest of the stream continues underneath them.
  3. Add several rules when different things matter - one for errors, one for the id you are tracing - so one run of the log answers more than one question.
  4. Save the rules with the file list as a session, so the view can be reopened exactly as it was.

Highlight rules marking lines in a followed log in Tail4win

Rules and filters combine usefully: a filter to drop the routine chatter, a highlight to keep the eye on the one thing being investigated - which is the practical middle ground between "too much" and "not enough context". See filtering for the other half.

What it will not do

Related

Hiding instead of marking: filtering a busy log, tail with grep. Following a file: watching a live log, two files at once. Logs that change name: rotated logs.