Filters

Filters show, hide or colour lines. They keep working while the file grows.

A search turned into a filter, shown as a chip above the log with the chosen levels

Adding a filter

The Filters tab

Each filter is a row:

Part What it does
Checkbox Turns the filter on or off
A, B, C … Its letter, for the formula. The circle has the filter’s colour
Show / Hide / Mark Show keeps matching lines, Hide removes them, Mark only colours them
Line / a column Where to look: the whole line, or one column of the log’s format. Shown when the log’s format has columns
contains / = / > / < / between For a column: how its value is compared (below)
Text, with Aa W .* What to match: match case, whole word, regular expression. A wrong regular expression gets a red outline
Colour The colour of its lines (below), or No color
Count How many lines match
▲ ▼ Previous or next matching line
Bell Alerts for new matching lines (below)
✕ Removes the filter

Up to 26 filters (A to Z). A new filter takes the colour used least; a Hide filter starts with none.

Filter colours

Name Line colour (light) Line colour (dark) Mark (chip dot, highlight bar)
Yellow
Green
Blue
Purple
Orange
Pink
Teal
Red

A filter’s colour replaces the level colour on the lines it matches.

Filters on a column

A filter can look in one column instead of the whole line: pick the column in the list after Show / Hide / Mark (it says Line for the whole line). It works for every log Logsift shows as columns: CSV files, JSON logs, the built-in layouts and your own formats.

Two filters on columns of a CSV file: Host = web-3 and User contains u1, as chips and in the Filters tab

Compare Matches rows whose value
contains contains the text. Aa, W and .* work as usual
= is the text, all of it: web-1 is not web-10
> / < is a number above or below the one you type. Units count: 1.5 s is more than 800 ms, and 2 KB more than 900
between is a number from the first to the second: 10..20 includes both, 10..<20 leaves 20 out. A click on a Profile histogram bar adds one that keeps exactly that bar’s rows

The quick ways:

A column filter shows as a chip like Show: Host = web-1. Lines that aren’t rows (stack traces, a CSV’s header row) don’t match it themselves; with Keep stack traces they go with their entry.

Combining filters

Combine says how filters work together, using their letters.

All lines or Matching only

All lines shows every line, with the lines your filters leave out grayed. Matching only (Ctrl+Shift+H, ⇧⌘H on macOS) shows only the lines that pass. Your place in the file is kept when you switch: filter down, click a line, switch back and see everything around it.

The count on the right says 65,361 of 1,832,469 lines (with context lines: … matching, … shown). It adds in the selected time range or some levels hidden when those apply.

Which tabs follow the filters

Some tabs below the log count only the lines the filters keep; the others always look at the whole log.

Tab Follows the filters
Metrics With Matching only on and filters (or a time range) set
Profile With Matching only on and filters (or a time range) set
Messages When its list says Filtered lines instead of Whole file
Find results A search run while Matching only was on finds in the filtered lines, and keeps to them (its header says in filtered lines)
Insights, Exceptions, Bookmarks Never: always the whole log (hover the tab)
Details, Request Show one entry or one request, as they are in the file

How to tell: while a tab counts only the filtered lines, a blue filter icon follows its name (hover it: Counts only the lines the filters keep), and a strip in a pale blue (dark blue in dark mode) at the top of the tab says Only the 225 of 2,099 lines the filters keep. Its link goes back to every line: Show all lines (Metrics, Profile) turns Matching only off, Count all lines (Messages) counts the whole file, Find in all lines (Find results) runs the selected search again over every line.

Find results and Metrics marked with the filter icon, and the strip at the top of Find results

Levels: E W I D T

The E W I D T buttons show only some levels, together with your other filters: errors (ERROR, FATAL, SEVERE, CRITICAL), warnings (WARN, WARNING), info (INFO, NOTICE), debug (DEBUG), trace (TRACE). All on means no level filtering. Turn off I, D and T to see just errors and warnings, stack traces included. With your own log format, its level column is used instead.

Keep stack traces and Context

Chips

Filters that are on show as chips in the log’s bar: Show: ERROR 65,529, Hide: …, Color: … (a Mark filter), Show: Host = web-1 (a filter on a column), with a dot in the filter’s colour and the number of lines.

Alerts

Click the bell on a filter to be told when new lines matching it are written (while the file grows). The bell turns amber. Logsift shows a desktop notification and a popup you can click to jump to the line, beeps, and puts a count on the tab. Bursts are combined: at most one alert per filter every 3 seconds. Lines that were already in the file don’t alert.

Clearing

Saving filters

The ⋯ menu in the Filters tab: Save Filters…, Load Filters… (.lmfilters files), Remove All Filters. Each log also remembers its own filters, formula, level buttons and Matching only for next time.