Documentation

Logs in MagnumOpus View

MagnumOpus View opens logs of any size at once and adds tools for reading them: a timeline of the whole log, a filtered view, merging several logs by time, compressed logs without unpacking by hand and a log split into columns. This page shows how to use them. Searching, the editor and the other text tools are described on the MagnumOpus View page.

A server log in MagnumOpus View with colored levels and the timeline of the whole log above the text

Opening a log

  • One log: select it in the explorer and press Enter. Text files from 10 MB open in the viewer by default; the limit is in Settings > View: media and text > Large texts. Rotated logs (app.log.1, app.log.2...) open in the viewer like other logs.
  • A compressed log: double-click app.log.gz, app.log.2.gz, x.log.zst, a .bz2 or .xz file, or a .zip with a single log. Other .gz and .zip files stay archives you can browse.
  • Several logs as one: select two or more logs and choose Open as merged log from the menu.

The timeline, merging and compressed logs are part of Advanced log tools (beta) in Settings > View: media and text > Large texts. The option is on by default; when it is off, the viewer behaves like a plain text viewer and the menu item disappears.

The timeline

The strip above the log shows how many lines there are over time, stacked by level: ERROR red, WARN orange, INFO blue and the rest grey. Below it is a time axis, and a marker shows where the text currently is. The Log timeline button in the toolbar or T turns the strip on and off, and the choice is remembered.

ActionWhat it does
ClickJump to the first line with that time
DragSelect a period - the filtered view then shows only lines from it
Mouse wheelZoom the time axis around the mouse
Double-clickShow the whole log again
Hover over a columnIts time range and the counts per level

The timeline is counted in the background in one pass over the file and fills in as you watch - 1 GB with 11 million lines takes about 50 ms. It keeps up while you follow the end of a growing log. A file without timestamps has no timeline.

Narrowing to a period

  1. Drag across the timeline over the period you are interested in, for example the minute before an outage.
  2. The filtered view opens with only the lines from that period. Its header shows the period as a label with a cross.
  3. Type a search or click the level filters - they combine with the period.
  4. Click the cross on the label to cancel the period.

The filtered view

The Filtered view button or Ctrl+Shift+F splits the window, as in klogg: the whole file on top, only the lines matching the search below, with line numbers and highlighting.

  • Clicking a line in the bottom part moves the top part to it, so you can see what happened around it.
  • The divider between the parts can be dragged.
  • The header has quick level filters ERROR / WARN / INFO / DEBUG. They can be combined with each other and with the search.
  • The matching lines can be copied or saved to a new file. Saving the lines of a time period goes in chunks, so even a large selection does not have to fit into memory; a copy to the clipboard is limited to 256 MB.
  • While following the end of a log (L), the search only extends over the newly added lines and the list stays at the bottom.

Searching a log

Ctrl+F opens the search field with the toggles Aa (match case), W (whole words), .* (regular expression) and &| (line logic). With line logic on, terms combine on one line:

error AND NOT timeout
("disk full" OR quota) AND NOT test

The search runs on all cores; 512 MB of log takes 10-90 ms. A strip next to the scrollbar shows where in the file the matches are.

Columns and a filter by column

For a log with timestamps, the Table button shows the lines as columns Time / Level / Source / Message. The level is shown in its color and a continuation, such as the lines of an exception, stays in the Message column of its record.

The columns come from the detected format:

  • the level right after the time,
  • the source as [module],
  • the text before - (log4j, NLog) or before : (syslog, host sshd[12]: ...),
  • JSON lines such as {"ts":..,"level":..,"msg":..} by their keys.

In a search with line logic, a term can name a column and then matches only in that column:

level:ERROR AND source:db* AND NOT msg:timeout

The column names are time:, level:, source: and msg: (in Czech also cas:, uroven:, zdroj: and zprava:), * stands for anything. A column filter works in the filtered view and together with the time period from the timeline.

Merging several logs by time

A merged log shows several files as one chronological log - for example an application log next to a database log, or a log together with its rotated files.

How to open one:

  • in the explorer, select two or more logs and choose Open as merged log,
  • drag another log into a viewer window that already shows a log,
  • from the command line: mo-view.exe --merge a.log b.log c.log,
  • next to an open app.log, the status line offers +N rotated - merge for its rotated files (app.log.1, app.1.log, app-2026-10-09.log); merging starts only when you click it.

What you see:

  • Records go in order of time. A record is a line with a time plus the lines without one after it, so a multi-line exception stays in one piece.
  • A colored stripe next to the line numbers shows which file a line comes from, the status line names the file of the top line and the legend on the right lists the files.
  • Search, the filtered view, the timeline and jumping to a time work over the whole merged log.
  • Each file may have its own time format and encoding. Files in different encodings are shown in UTF-8.

Nothing is copied to disk and the first screen is there at once; the rest is merged in the background. Rotated files whose times do not overlap are simply joined one after another.

Following the end (L) watches all the files. Lines appended to any of them are merged in by time; a line that is still being written waits until it is complete. When a file is rotated, everything is merged again in the background, and the search and time period stay.

A merged log is read-only.

Compressed logs

.gz, .zst, .bz2, .xz and a .zip with a single log open without unpacking by hand. They are unpacked in the background into a temporary file, and the first screen is there after the first 64 kB. The status line shows the progress and the rest of the text fills in as it comes. An unpacked log stays in a cache, so opening it again is instant.

Unpacking is protected against broken and malicious archives:

  • only decoders written in Rust are used,
  • the unpacked log may have at most 32 GB and must fit into the free disk space,
  • when the content gets over 200 times larger than the archive, unpacking pauses and offers Continue unpacking,
  • a damaged end of the file leaves the part unpacked so far to read.

An unpacked log is read-only: neither saving nor an encoding conversion overwrites the archive. Viewing the text in another encoding works. Times without a date take the day of the archive. Rotated files such as app.log.2.gz count as rotated logs and merge with the others.

Jumping to a time

The go-to-line field (Ctrl+G) also takes a time:

12:30
12:30:15.250
2026-10-08 12:30

The text jumps to the first line with that time or later. Lines without a time are skipped. The viewer recognizes these formats:

FormatExample
ISO 8601, also with T, Z and a zone (converted to local time)2026-10-08T12:30:15+02:00
Day, month, year08.10.2026 12:30:15
syslogOct 8 12:30:15
Apache / nginx08/Oct/2026:12:30:15 +0200
Unix time at the start of a line1791455415

The format of a log is detected once from its first lines; the times are then read directly, without a regular expression.

Marks and highlight rules

Line marks keep track of the places you want to come back to:

  • click a line number or press Ctrl+F2 - the line gets an orange stripe, also in the strip by the scrollbar and in the filtered view,
  • F2 / Shift+F2 jumps to the next / previous mark,
  • the file remembers its marks for next time.

Highlight rules tint whole lines by their text:

  1. Click Line highlight rules in the toolbar. The editor is prefilled from the current search.
  2. Enter a text, choose match case, whole words or a regular expression, pick a color and click Add.
  3. Clicking a rule loads it for editing, the cross removes it.

The rules apply to all text files. When several match one line, the first one from the top wins.

Measured

Measured on 2026-10-10 on one PC with the files in the system cache, on a 2.5 GB log with 30.2 million records, the same log split into two interleaved files of 1.25 GB, and the log compressed with gzip. MagnumOpus View was measured inside the viewer, klogg 22.06 from the process start, lnav 0.14.1 as a whole run without a user interface (searching and counting with SQL after loading the log). The methods differ, so the numbers show the order of magnitude, not an exact race.

Task (2.5 GB)MagnumOpus Viewklogglnav
Line index / loading0.26-0.31 s2.7-3.0 s10.9 s
Search for a word with 5 million matches0.12-0.14 snot measurable321 s
Counts per level / timeline0.12-0.13 snot available25 s
Merging two interleaved logs4-5 ms first screen, 0.74-0.81 s completenot available22.6 s
gzip log4 ms first screen, 2.85 s complete-18.5 s

klogg has no way to be controlled without a real user at the keyboard, so its search time could not be measured.

Something wrong or missing? Open an issue