Follow, Timeline & Columns

Watch a log grow, see where the errors cluster, and read a CSV as a table.

Marlin 2.2.0 added three tools to the streamed view for big files, and 2.2.2 brought them to Linux. Each one has a button in the search bar and an item in the Go menu.

Follow a Growing File

Go > Follow File (Option Command T), or the Follow button, watches a file that another program is writing to, such as a server log. Marlin checks the file every half second and reads only the new bytes, so following a 2 GB log costs no more than following a small one.

The view sticks to the last line. Scroll up and it stays where you are, and the search bar shows how many new lines have arrived. Click that count to jump back to the end. If the log is rotated or truncated, Marlin indexes it again from the start and keeps following.

A followed file is read-only. If the document has unsaved edits, Marlin asks you to save or revert them first.

Pipelines on a Followed File

When the pipeline reads from the followed file, it updates as the file grows. A chain of Match and Extract steps processes only the new lines and keeps the newest 1,000 rows. A chain with Sort, Unique, Bucket or Time Range waits, and the pipeline header shows how many lines the source grew by, with Re-run.

The Timeline Strip

Go > Show Timeline (Option Command G), or the Timeline button, shows a strip of bars under the search bar. Each bar counts the lines in a slice of the file, with warning lines in amber and error lines in red, so you can see at a glance where a log went wrong.

Marlin reads timestamps in ISO 8601, Common Log Format, syslog and epoch form. When most of the file has them, the strip runs on a time axis; otherwise it runs by line number. Hover a bar to read its counts, and click it to jump to the first line in it.

Drag across bars to select a range. The strip then offers Add Time Range Step, Ask Assistant when the assistant is on, and Clear. Escape clears the selection.

The Time Range Step

Time Range keeps lines with a timestamp inside the range. A line with no timestamp of its own, such as a stack trace, stays with the line above it. When Time Range is the first step, Marlin seeks straight to that part of the file and reads only that slice.

Columns

For CSV, TSV and JSON Lines files, and for files whose first lines share a delimiter, the search bar offers Lines and Columns. Go > Show as Columns (Option Command K) switches between them.

Columns shows the file as a table. Quoted fields follow the CSV rules, and for JSON Lines each top-level key becomes a column. The first row is used as the header for CSV and TSV; the header menu turns that off, hides a column, or shows them all again. The table is read-only. Double-click a row to go back to Lines with that line selected.

Header Actions Build Pipeline Steps

Click a column header for Sort Ascending, Sort Descending, the two numeric sorts, Filter…, Unique Values and Count by Value. Each one builds the pipeline steps for you, starting with an Extract step that splits the rows into fields, then opens the Pipeline view and runs it on the whole file. The result headers use your column names.

Move Column First and Remove Column are in the same menu. They add or change one Select step after the Extract step, so the result keeps the columns you want, in the order you want.