Log Formats
A format tells LogRaker how a log's lines are laid out, so each part of a line gets a column of its own that you can sort, filter and hide. An access log, for example, gets Client, Status, Bytes and User Agent columns, and its bracketed time fills the Time column.
Formats LogRaker knows
These work without any setup:
- nginx / Apache Access Log - Client, User, Time, the request as the Message, Status, Bytes, Referrer and User Agent.
- nginx Error Log - Severity, Process, Connection and Message.
- Logback / Log4j - Thread, Severity, Logger and Message.
- Spring Boot - Severity, PID, Thread, Logger and Message.
- Python logging and Python logging without time - Logger, Severity and Message.
Making a format from a line
Right-click a line in a Stream and select 'New Log Format…'. The sheet shows the line with each of its parts underlined: a word, a […] group, a "…" string, or a key=value pair. Where a format already reads the line, the item opens that format instead: 'Edit Format' and its name for one of yours, or 'Duplicate Format' and its name for a built-in one, to make a copy of your own.
- Click a part and choose what it is: Time, Severity, Host, Process, Message, New Column for a column of its own, or Not a Field. The part turns into a pill. On a column's pill, the menu shows the column's name in place of New Column. Message on a word takes the rest of the line.
- Select 'Edit' to change the line: paste one that has every part you want to name, or type in the parts this one lacks. Select 'Done' or press Return to click its parts again. The line then loses a time at its start, and a syslog line's host and process, since a format reads after them.
- Fields lists what you've named, with the value each has in the line. A new column's name is selected, ready to type over. Double-click a column's name to rename it later, and use Shows As to change what a field fills.
- Preview shows the Stream's last 200 lines from the same file, split into the new columns, and how many of them fit. Lines that don't fit are dimmed, and a time LogRaker can't read shows in red.
- A new format's Name starts as Custom Format, numbered if that's taken. Change it if you like, and select 'Add'.
The format is used at once: Streams set to Automatic read their lines again, and those it fits get its columns.
Under Pattern is the regular expression the format matches, with one named group per field, such as (?<status>\d+). You can edit it by hand: the line's colors and the fields follow what you type. Clicking a part of the line writes the pattern anew. See Regular Expressions.
What a format reads
A format reads a line's message as the Message column shows it before any format splits it: after the time at the start of the line and, for syslog and journal lines, after the host and process. So a pattern starts after that time, and a time elsewhere in the line, such as an access log's [27/Nov/2026:10:15:32 +0000], is a Time field.
- Time - any time LogRaker reads at the start of a line, the bracketed Apache one, or Unix time in seconds or milliseconds.
- Severity - a keyword such as
ERRORorwarn, one letter such asE, or a number such as50, as pino and bunyan write it. - Message - the Message field; without one, the rest of the line after the last field.
A line the format doesn't fit, such as a stack trace's, shows as it did before, with the new columns empty.
A line's severity comes from its syslog priority first. Then, where the Stream has 'Infer severity from keywords' on, from your severity rules, which read a split line's Message field. Then from the format's Severity field, on or off. Then from the line's severity keyword, where that option is on.
Monitors show a line whole, as it was before a format split it.
The columns
A format's own columns sit between Process and Message, titled with their names. Like the others, they can be sorted, resized, moved and hidden, and the Filter field, Find and Copy include them. In a merged Layout, columns of the same name from different formats share one column. 'Inspect Line' lists them too.
A Stream's format
A Stream's editor has a Format menu under Columns:
- Automatic (the default) tries your formats from the top, then the built-in ones. The first that fits one of a file's first 50 lines is that file's. Once one is found, the menu shows its name, such as Automatic (nginx / Apache Access Log). Each file of a Folder finds its own.
- None reads the lines without a format.
- Or choose one format, and the Stream tries it on every line.
Formats apply to log files, Folders and journals, on this Mac and over SSH.
Settings ▸ Formats
The Formats tab of Settings lists your formats, then the built-in ones.
- 'Add Format' opens the same sheet with no line yet: paste one from the log.
- 'Edit…', or a double-click, changes one of your formats. 'Remove', or Delete, removes it.
- 'Duplicate' copies a format. The built-in ones can't be edited, so duplicate one to make it your own.
- Drag your formats up or down to change which Automatic tries first.
Every change can be undone. Your formats sync to your other Macs through iCloud, and 'Save Configuration…' keeps them with the rest of your setup.
See also the other Settings tabs.