User Guide

Everything you need to know to get the most out of the Klunk Log Viewer.

Installing and Updating

Klunk doesn't currently have an installer. Each download is a zip archive: unzip it to a folder you can write to and run Klunk from there. A lean Java runtime is included, so it runs without requiring any existing or new Java installation.

Installing

Platform Download Where to unzip it Run
Windows Klunk-windows.zip A folder you own, for example C:\Users\you\Apps\ or D:\Tools\. This creates a Klunk folder there. Avoid Program Files: Klunk keeps its settings inside its own folder, and a normal user can't write there. Klunk\Klunk.exe
macOS (Apple Silicon) Klunk-macos.zip Unzip it, then drag Klunk.app into Applications. Don't run it straight from Downloads: macOS runs apps there from a read-only copy. Klunk.app. The first time, macOS blocks it because it isn't signed. The README.txt in the zip explains how to allow it.
macOS (Intel) Klunk-macos-x64.zip
Linux Klunk-linux-x64.zip or Klunk-linux-arm64.zip Anywhere, for example ~/Apps/. It can also go somewhere read-only such as /opt (unzip with sudo), since Klunk keeps its settings in your home folder. Klunk/bin/Klunk. If it won't start, run chmod +x Klunk/bin/Klunk first.
Windows may show a SmartScreen warning, or your antivirus may flag Klunk.exe, because Klunk isn't code-signed. Click More info → Run anyway.

Updating

About → Check for Updates tells you when a new version is out and links to the download. To install it:

  1. Close Klunk, including any undocked viewer windows.
  2. Replace the program with the new download:
    • Windows: unzip the new Klunk-windows.zip into the same folder you unzipped the old one into, and choose to replace the existing files. Don't delete the old Klunk folder first: your settings are inside it, in Klunk\app\.
    • macOS: drag the new Klunk.app into Applications and choose Replace. macOS asks you to allow the new copy once, as on the first install.
    • Linux: delete the old Klunk folder and unzip the new one in its place.
  3. Start Klunk. It opens with your previous windows, settings and datasources.
Updating doesn't touch your files. The download contains only the program. Your settings (config.properties and its backups), saved datasources and patterns, session, file groups, Klunk's database and its own logs aren't in it, so replacing the program leaves them as they were. The same goes for your keys in the .logviewer folder in your home folder. Klunk never changes your log files, during an update or otherwise. On macOS and Linux, all of this is kept outside the program folder anyway. For exact locations, see Where Klunk Keeps Its Files.
The one file an update does replace is Klunk.cfg, so if you raised the memory limit, set it again after updating.

Opening Files with Klunk (Open With / Default App)

You can open a log straight from your file manager with Open With, or make Klunk the default app for a file type such as .log, so double-clicking those files opens them in Klunk. Klunk never makes itself the default; you choose that.

If Klunk is already running, the file opens in that window. If not, Klunk starts, restores your session and then opens the file. Opening several files at once gives each one its own viewer window.

Windows

  1. In File Explorer, right-click a .log file and choose Open with → Choose another app.
  2. Scroll down and click Choose an app on your PC (or More apps → Look for another app on this PC), then browse to Klunk\Klunk.exe.
  3. To make it the default, click Always (or tick Always use this app to open .log files). To open just this file, click Just once.

Repeat for other extensions you use, such as .txt, .out or .csv. You can change it later under Settings → Apps → Default apps by searching for the extension.

macOS

  1. In Finder, select a .log file and choose File → Get Info (⌘I).
  2. Under Open with, pick Klunk. Klunk is listed for logs, plain text, CSV, JSON and XML files. For other files, choose Other…, set Enable to All Applications and select Klunk.app in Applications.
  3. Click Change All… and confirm, so every .log file opens in Klunk.

To open a single file without changing the default, right-click it and choose Open With → Klunk. You can also drop files on Klunk's Dock icon.

Move Klunk.app to Applications and open it once (allowing it as described in the zip's README.txt) before you set it as the default. Otherwise macOS keeps blocking it when you open a file, and may not list it under Open with yet.

Linux

Desktop environments find apps through .desktop files. Create one for Klunk:

  1. Save the following as ~/.local/share/applications/klunk.desktop, replacing /home/you/Apps/Klunk with the folder you unzipped Klunk into:
    [Desktop Entry]
    Type=Application
    Name=Klunk
    Comment=Log viewer
    Exec=/home/you/Apps/Klunk/bin/Klunk %F
    Icon=/home/you/Apps/Klunk/lib/Klunk.png
    Terminal=false
    Categories=Utility;Development;
    MimeType=text/x-log;text/plain;
  2. Klunk now appears under Open With in your file manager (you may need to log out and back in). Right-click a log file → Open With → Klunk, or use Properties → Open With to make it the default.
  3. Or set the default from a terminal:
    xdg-mime default klunk.desktop text/x-log
    This covers .log files. Using text/plain instead would open every plain text file in Klunk.

The %F passes the selected files to Klunk. If you move the Klunk folder, update both paths in the file.


Quick Start

New to Klunk? Try the walkthroughs. Klunk has a built-in Quick Start Guide with short, hands-on walkthroughs that use sample logs: finding the problem in a log, lining up two logs, creating a pattern, connecting a datasource, watching a log live and searching a folder of logs, plus an FAQ. It opens on first launch and after each update (with a What's New page). To open it any time, click the Help button (?) in the Log Manager toolbar and choose Quick Start.
The quickest way in: drop it or paste it. Drag one or more log files, a whole archive (.zip, .tar.gz, .gz…) or a URL onto any Klunk window and it opens straight away. Copied log text works too: click an empty part of the window and press Ctrl+V (⌘V on macOS). No dialog needed. See Drag, Drop and Paste.
  1. Launch the application — the Import Data dialog opens automatically.
    You can always get to import data dialog by clicking the Import button in the Log Manager toolbar (or pressing Ctrl+I).
  2. Pick a source type — File, SFTP, Kubernetes, Database, or URL — and load it.
    The SFTP, Kubernetes and Database tabs need a datasource first. Until you have one, the tab shows a Create … Datasource button that opens the datasource editor. You can also add datasources through the Settings dialog.
  3. The viewer attempts to auto-detect the log format (pattern) and opens in a new tab.
    If no existing pattern matches, a catchall format is used.
  4. Type a query in the filter bar (e.g. level = 'ERROR') and press Enter.
  5. Drag the time-slider thumbs (left edge of the table) to narrow to a time window.
Log viewer showing a loaded file with level colors, a query filter, and the time slider

Importing Logs

Click Import in the Log Manager toolbar (or press Ctrl+I) to open the Import Data dialog. It has one tab per source type — File, SFTP, Kubernetes, Database, and URL.

Import Data dialog with File/SFTP/Kubernetes/Database/URL tabs, browse/drag-drop area, and File Type / Pattern / Merge files options

Drag, Drop and Paste

You don't need the Import dialog to open a log. Drop it, or paste it, anywhere in Klunk's window: the Log Manager, an empty area or a log viewer. Klunk detects the format and opens it.

Drop or paste What happens
One log file Opens in a new viewer.
Several files Each opens in its own viewer. To combine them into one timeline, use Merge afterwards, or drop them on the Import dialog and tick Merge files.
An archive: .zip, .tar, .tar.gz / .tgz, .gz Opens an archive browser listing the files inside (archives inside archives too). Pick the ones you want; nothing is extracted by hand.
Log text (copied from an editor, terminal, chat or ticket) Opens as a log, just like a file. Paste with Ctrl+V (⌘V on macOS), or drag selected text onto the window.
Files copied in Explorer / Finder / your file manager Paste with Ctrl+V: same as dropping them.
Rows copied from a Klunk viewer Open as a new table with the same columns.
An http:// or https:// link Opens as a URL source.
Pasting works in the main Klunk window (the Log Manager and docked viewers); dropping works in undocked viewer windows too. Click an empty part of the window first: if a text box (such as the filter bar) has the cursor, Ctrl+V pastes into that box instead.
With the Import dialog open, dropped or pasted items are added to its list instead of opening right away, so you can choose a pattern or merge them first.

Local Files

  1. Select the File tab.
  2. Click Browse…, or drag files onto the dialog, or paste them (Ctrl+V). They're added to the list so you can pick a pattern or merge them before importing. To skip the dialog entirely, see Drag, Drop and Paste.
  3. Choose a File Type (Generic, or a specific type) and a Pattern — leave as Auto Detect to let the app pick the best match.
  4. Check Merge files to combine multiple selected files into one chronological view immediately on import (equivalent to importing them separately and then using Merge in the Log Manager).
  5. Click Import.
For CSV files, you'll be prompted to choose the delimiter (comma, tab, pipe, semicolon, or custom). You will also be able to select if first row should be treated as a header row to define the column mames

Search Files

Don't know which file has the problem, or the file is too big to open whole? Click Search files… on the File tab to search folders and archives for text, then import only the files that match — whole, or just the matching rows.

Search Files dialog: searching a folder and its archives for lines with both ERROR and orderId, four matching files listed with match counts, a preview of the matching lines, and Matching rows ±2 chosen for the import
  1. Look in: folders, archives or files to search. Separate several with ;, or add them with Folder… and Files….
  2. File names: which files to read, e.g. *.log; *.txt (blank = every file). Subfolders searches folders inside the ones you picked, and Inside archives searches the files inside zip, tar, tgz and gz archives without extracting them (archives inside archives too).
  3. Find: type the text to find. Click + Term to add more terms (up to eight). Each term has Aa (match case) and .* (regular expression) toggles.
  4. Match:
    • Any term or All terms — whether one term is enough or every term must be found.
    • Anywhere in file or On one line — with All terms, whether the terms may be on different lines or must be on the same line.
    • Stop at first match — faster on large folders: each file is read only up to its first match, so Matches shows Yes instead of a count.
  5. Click Search (Stop ends it early). Matching files are listed as they're found, with their match count, size, date and first matching line. Select a file to see its matching lines below the list.
  6. Tick the files to import (the header checkbox ticks all or none), choose how to import them, and click Add files. They're added to Browsed Files; click Import as usual, with Merge files if you want one combined view.

Import has two choices:

In a Matching rows window:

A Matching rows window: two ERROR rows, each with two dimmed context rows before and after, and bars reading 38, 41 and 31 hidden lines where lines were left out
Opening a whole file larger than 500 MB asks first, and offers Search instead…, which opens Search Files on that file with Matching rows selected.
Dimming and tailing can be turned off in Settings → Advanced (log.findInFiles.dimContextRows, log.findInFiles.tail); the 500 MB warning size is log.open.largeFileWarnMB (0 turns the warning off). Reopening a file from the recent-files list loads it whole.

External Databases

Supported drivers: MySQL, PostgreSQL, ClickHouse, Oracle, SQLite, and any custom JDBC driver registered in the Driver Editor.

  1. Select the Database tab.
  2. Pick a saved datasource, or create one via the DB Datasource Editor (host, port, database, credentials).
  3. Choose the target table and a Log Pattern: leave it empty to import every column, or pick a database pattern to rename, order or size them.
  4. Click Import.
The external table is queried once and cached in the internal SQLite store. Changes on the source side aren't reflected until you Reload.

Kubernetes Logs

  1. Select the Kubernetes tab.
  2. Pick a saved cluster connection (configured via the Kubernetes Datasource Editor — paste a kubeconfig or point at a config file).
  3. Choose a namespace and pod (or a pod-name filter for multi-pod streaming), then import.
Multi-pod imports open a Merged View automatically, with each pod color-coded.

SFTP Remote Files

  1. Select the SFTP tab.
  2. Pick a saved connection, or create one via the SFTP Datasource Editor (host, port, username, password, or an SSH private key — optionally the app-wide default key set in Settings).
  3. Browse the remote filesystem and select a file to import.

The file downloads to a local temp cache and opens in the standard viewer; large files stream page by page.

HTTP / URL Sources

  1. Select the URL tab.
  2. Paste an HTTP or HTTPS URL that returns plain-text log data.
  3. Select a log pattern and import.

Request Options — Headers & Pagination

Click Request Options… on the URL tab to add custom request headers, a POST body, and multi-page fetching for APIs that don't return everything in one response.

URL Request Options dialog with a Payload/Body text area, a Name/Value Headers table with Add/Remove buttons, and an Enable Pagination checkbox with Type and Param Name fields

Payload / Body

Only sent with POST requests (set the method on the URL tab first). A body starting with { or [ automatically gets a Content-Type: application/json header. Reference the current pagination value with ${paramName}, matching whatever you type into Param Name below:

{"query": "level:ERROR", "page": ${page}, "pageSize": 100}

Headers

Click Add to insert a row — the Name cell is focused immediately so you can type right away. Press Enter, Tab, or type : to jump from Name to Value. Headers are sent with every request, including every page of a paginated fetch:

Authorization: Bearer eyJhbGciOi...
Accept: application/x-ndjson
X-Api-Key: 3f29a1c0-...

Pagination

Check Enable Pagination and pick a Type. Param Name is the query parameter (GET) or ${placeholder} key (POST payload) that carries the page value; Page Size and Max Pages cap how far the import will keep fetching — it also stops early the moment a page comes back empty.

Type What it sends Stops when
PAGE Param Name = a page number, starting at 1 and incrementing each request A page returns no rows, or Max Pages is reached
OFFSET Param Name = a row offset, starting at 0 and increasing by Page Size each request A page returns no rows, or Max Pages is reached
CURSOR Param Name = the cursor value read out of the previous response's JSON at Cursor JSON Path (dot-separated, e.g. meta.next_cursor) The cursor path comes back empty or missing, or Max Pages is reached

Example — PAGE, GET request. URL https://api.example.com/logs, Method GET, Param Name page, Page Size 100, Max Pages 5:

GET https://api.example.com/logs?page=1
GET https://api.example.com/logs?page=2
GET https://api.example.com/logs?page=3
...

Example — OFFSET, POST request. Method POST, Param Name offset, Page Size 500, Payload:

{"query": "level:ERROR", "offset": ${offset}, "limit": 500}

sends bodies with offset equal to 0, then 500, then 1000, and so on for up to Max Pages requests.

Example — CURSOR, GET request. Param Name cursor, Cursor JSON Path meta.next_cursor. If page 1's response body is:

{"items": [...], "meta": {"next_cursor": "abc123"}}

page 2 is fetched as ...?cursor=abc123; fetching stops as soon as a response has no meta.next_cursor value.

Headers and pagination settings are saved with the URL's MRU entry, so re-importing (or double-clicking) a previously used URL reuses the same request options automatically.

Import Limits & Redirects

Klunk treats a URL's response as untrusted data, and these settings stop a slow, huge or misbehaving server from hanging the import, running the app out of memory, or receiving your credentials somewhere they weren't meant to go. All three are under Settings → Advanced and apply to the next import, no restart needed.

Property Default What it does
log.parser.url.read.timeout.seconds 180 Longest wait, in seconds, for more data from the server before the import fails with an error. It's not a limit on the whole download: a slow but steady response still completes. 0 = wait forever.
log.parser.url.max.body.mb 256 Largest response, in MB, for each request (each page, when paginated). The whole response is held in memory while it's parsed, so a bigger one fails with a Response is larger than … MB error instead of running out of memory. Raise it for a big single-file download, or use pagination. 0 = no limit.
log.parser.url.safeRedirects true When the server redirects the request elsewhere:
  • a redirect from HTTPS to plain HTTP is refused, as is one to anything other than http/https;
  • your headers (API keys, tokens) are only sent to the original server. If a redirect points to a different host, port or scheme, the request goes on without them;
  • at most 5 redirects are followed.
false follows every redirect and keeps sending the headers, the behavior of earlier versions.
If a URL that worked before now fails to authenticate, it probably redirects to another host that also needs your headers. Paste the final URL instead, or, if you trust both hosts, set log.parser.url.safeRedirects to false.

Log Manager Dashboard

The Log Manager is the central hub. It lists every open log view with its name, error/warning summary, and date range.

Log Manager with one open viewer, its info summary, and the toolbar row (query box and Filter Selected for filtering the checked windows, Selected: actions, Group)
Column Meaning
Log Window The file name or source description
Info Error/warning counts and total row count for that view
Date Range Earliest and latest timestamp in the data

Toolbar actions:

Filtering Several Windows at Once

The query box in the Log Manager toolbar runs the same filter in every checked window, so you can search several logs in one step.

  1. Check the windows to search in the Log Manager list.
  2. Type a query in the box (the same syntax as a viewer's own filter bar, see Filtering Logs), or pick a recent one from its drop-down.
  3. Press Enter or click Filter Selected.

The query is placed in each checked window's own filter bar and run there, so each window shows its own matching rows. You can change or clear it in one window without affecting the others. Unchecked windows are left alone. The ✕ next to the box clears the filter in every checked window.

Each docked window's tab shows whether a filter is active and whether it found anything:

The icon reflects any active filter in the window, including a bookmark filter, not only one sent from the Log Manager. Undocked windows have no tab, so check their filter bar instead.

Docking and Undocking

Every new view opens as a tab inside the main Log Docker by default.

Window Layouts

Option Effect
Cascade Windows Stack windows with an offset so each title bar is visible
Tile Windows Fill the screen evenly
Minimize All Windows Iconize every undocked window
Show All Windows Bring every window to the front and un-minimise it

Merging Logs

Merging lets you view entries from several sources in a single chronological stream — ideal for correlating events across microservices.

  1. In the Log Manager, check two or more windows.
  2. Click the merge icon under Selected:. A new Merged View tab opens.
  3. Each source gets a distinct color. The Source column shows every row's origin.
If you reload a source file, use Reload in the merged viewer to rebuild with fresh data.
Right-click any row in a merged view → Change Color to reassign a source's color. The time-slider markers update instantly.
Don't need a combined stream? Keep the logs in separate windows and use Synch All to scroll them all to the same time.

Grouping Windows

Groups tag a set of open windows with a shared name and color, so they can be saved and reloaded together later, or analyzed as a set.

  1. Select two or more windows in the Log Manager and click the group icon under Selected: (or Ctrl+G).
  2. In Group Windows, enter a name (or pick an existing group to reuse its color), choose a color, and leave Save group for later reloading checked to persist the group to disk immediately.
  3. Click Set Group, or Clear Group to remove the tag from the selected windows.
Group Windows dialog with a group name, color swatch, and Save group for later reloading checkbox
Leaving the checkbox checked (the default) is equivalent to also running Save Group afterwards — the group's current windows are written to disk immediately so they can be reloaded later from the Import dialog's Groups tab. Uncheck it to tag windows for the current session only, without persisting them yet.

Once at least one group exists, the Log Manager shows Save Group and Analyze Group buttons:

Analyze Group dialog with a Group dropdown and Analyze / Cancel buttons

The resulting Group Analysis report aggregates severity counts and an issue-frequency chart across every file in the group (its bars widen with the time span: 5 minutes for an hour of logs, up to a week per bar for logs spanning months; time with no issues shows as empty space), plus a per-file breakdown table (rows, errors, warnings). Additional tabs cover Issues & Clusters and Token Linkage for deeper cross-file correlation.

Group Analysis report: global severity pie chart, aggregated issues-over-time bar chart, and a per-file rows/errors/warnings table
Like the single-file Log Analysis report, group analysis can be redacted, copied as markdown, or saved to a file — handy for pasting into an AI assistant or a ticket.

The Log Viewer

Table Overview

Column Notes
Timestamp Drives the time slider
Level Color-coded: ERROR, WARN, INFO/other in the default color
Thread Originating thread
Message Full log message; wraps for multi-line entries
Source Merged views only — origin file or pod

Row Detail View

Double-click a row (or press Enter) to open the Row Detail panel. It shows every field fully wrapped, with one-click copy for individual fields or the entire entry.

Right-click a row and choose View to open the selected rows as text. Its toolbar reformats the selection, or all the text when nothing is selected: JSON and XML pretty-print, Trace splits a flattened stack trace, Decode handles Base64, JWT, hex, URL encoding, escapes and epoch times, and CSV puts each delimited item on its own line.

The CSV menu's Custom... splits on any text you type, adding a line break after each one and keeping the separator. Type \n to break a log that wrote its line breaks as the two characters \n; \t matches both a written \t and a real tab.

Filtering Logs

The filter bar at the top of every viewer accepts SQL-style WHERE expressions. Press Enter to apply; click the X next to it, press Ctrl+Shift+L, or press Escape in the field to clear (Escape first undoes an edit you haven't applied). Previously used filters appear in the dropdown, and the row count updates immediately to show how many entries match.

Plain text searches the message: you don't need to write a query. Type any text, such as timeout, and press Enter to show the rows whose message column contains it. The filter box then shows the query it ran, message like '%timeout%', which you can edit to narrow the search further. As with any LIKE filter, case doesn't matter for plain English letters (A–Z). Text that names a column the log doesn't have shows a warning first, then searches the message the same way.

Show in Full Log: while a filter or Show bookmarks only is on, right-click a row and choose Show in Full Log. The filter is cleared and that row is selected in the full log, so you can see what happened around it. Double-clicking the row does the same. If you'd rather double-click selected a word, as it does in an unfiltered view, set log.table.doubleClickLeavesFilter to false in Settings → Advanced. The menu item still works.

Filter Query Syntax

Column names match the pattern's field names: timestamp, level, message, thread, and source (merged views).

Equality and inequality

level = 'ERROR'
thread = 'http-nio-8080-exec-1'
level != 'DEBUG'

Set membership (IN / NOT IN)

level in ('ERROR','WARN')
level not in ('ERROR','WARN')

Pattern matching (LIKE / NOT LIKE)

% matches any sequence; _ matches exactly one character.

message LIKE '%NullPointerException%'
logger  LIKE 'com.example.%'
message NOT LIKE '%health%'

Comparison and range (timestamps and numbers)

timestamp >= '2026-06-01T08:00:00Z'
timestamp <  '2026-06-01T09:00:00Z'
timestamp BETWEEN '2026-06-01T08:00:00Z' AND '2026-06-01T09:00:00Z'
Accepted timestamp formats:
  • ISO-8601 with offset: 2026-06-03T04:15:48Z or 2026-06-03T04:15:48.000Z
  • ISO-8601 with offset: 2026-06-03T04:15:48+05:30
  • Display format: 2026-06-03 - 04:15:48.000
  • Display format (no separator): 2026-06-03 04:15:48

Boolean logic — AND / OR / parentheses

AND binds tighter than OR. Use parentheses to group sub-expressions.

level = 'ERROR' AND thread = 'main'

(message LIKE '%timeout%' OR message LIKE '%connection refused%') AND level = 'ERROR'

-- Slow DB calls in one package:
logger LIKE 'com.example.db.%' AND message LIKE '%ms%' AND level != 'DEBUG'

Filter-Out (Exclusion)

Use Filter Out to hide noise without changing the main filter.

  1. Click Filter Out in the toolbar, or press Ctrl+Shift+O.
  2. Enter exclusion rules using the same syntax as the main filter.
  3. Apply. Matching rows are hidden.
-- Exclude health-check and metric noise:
message LIKE '%actuator/health%' OR logger LIKE 'io.micrometer.%'
Filter-out rules persist with the session and are shown in a distinct color in the toolbar when active.

Search and Find

Find (Aa field, or Ctrl+F) highlights all occurrences of a text string within the visible rows.

Action Shortcut
Open find bar Ctrl+F
Find next F3
Find previous Shift+F3
Turn the find text into a filter Shift+Enter in the find field
Toggle case-sensitive find Click the Aa toggle next to the field
Clear Click the X next to the field
Find searches the rendered cell text, not the raw stored value — display-formatted timestamps (e.g. 2026-06-03 - 04:15:48.000) are searchable as displayed.

Turn the find text into a filter: press Shift+Enter in the find field, or click the magnifier button beside it (tooltip Add filter for find text), to build a query that matches the current find text across every column — col1 LIKE '%text%' OR col2 LIKE '%text%' … — apply it to the filter bar, and clear the find field. Where Find only highlights matches in the loaded rows, this narrows the table to matching rows and runs over the full dataset, including SQLite-paged files.

Find bar with 'Missing' typed; the magnifier button beside it is tooltipped 'Add filter for find text'
The magnifier beside the find field filters every column for the find text.

Time Slider

The vertical slider on the left edge of the table represents the full time range of the loaded (and filtered) log. It only appears for patterns that include a timestamp column.

Element Meaning
Top / bottom thumb Upper and lower bounds of the selected time range
Red bars Rows with level ERROR or FATAL
Orange bars Rows with level WARN
Colored ticks Bookmarked rows, in their bookmark color
Shaded band The currently visible portion of the table
The selected time range is saved with the session and restored on next open.

Synch All (Line Up Open Logs by Time)

When you'd rather keep logs in separate windows than merge them, Synch All in a viewer's toolbar scrolls every other open log to the moment you're looking at.

To mark the same moment in every log rather than just scroll to it, use Bookmark Time.

Bookmarks and Highlights

Bookmarks let you pin important rows for navigation, review, and later filtering.

Creating a bookmark: right-click a row → Bookmark (uses the last-used color), or Bookmark [Choose Color] to pick a color from the palette (10 colors). A colored marker appears on the row background and on the time slider.

Right-clicking an already-bookmarked row shows options to manage it:

Row context menu with Bookmark, Bookmark [Choose Color] color palette, Bookmark Time…, Copy, View, Filter, Filter Out, Annotate, Select All
Action How
Jump to next bookmark Click ↓ in the viewer header, or Alt+Down
Jump to previous Click ↑, or Alt+Up
Show bookmarks only Toggle the bookmark button — non-bookmarked rows are hidden

Bookmark Time (Time Correlation)

Bookmark Time… (on the row context menu) bookmarks every row whose timestamp falls within a configurable leeway of the selected row, in every open log (including this one) or in a chosen group. It's the fastest way to line up related events across several logs that don't share a common request ID.

  1. Right-click the row of interest → Bookmark Time…. If several rows are selected, the window runs from the earliest to the latest of them.
  2. Choose a Leeway window (±5 ms up to ±1 min, default ±50 ms, or a custom value).
  3. Pick a Bookmark color.
  4. If any open windows have been grouped, a Target dropdown lets you limit the bookmarks to one group instead of All Logs.
  5. Click Bookmark.

The chosen color gets an automatic comment recording the source row and leeway, so you can tell later where those bookmarks came from.

Bookmark time dialog with a leeway dropdown and a row of bookmark color swatches

Bookmark Filters

Toggle the bookmark button in the viewer header to switch on Show bookmarks only, which hides every non-bookmarked row. From there, use Bookmark Filters (the settings icon next to the bookmark toggle) to narrow that down further to specific bookmark colors — useful once you have several bookmark colors in play for different purposes (e.g. using distinct colors for grouping rows of interest)

Bookmark Filters dialog listing Annotations, Notes, and Color 1–10 with checkboxes, plus Select All / Deselect All

Toggle individual colors (or Annotations / Notes, the special bookmark categories) on or off, then OK to apply.

To see a bookmarked row among its neighbours, right-click it and choose Show in Full Log, or double-click it.

Annotation Bookmarks

Annotations are saved queries that are automatically applied as bookmarks whenever a matching log file is loaded — and optionally raise a watch/alert.

  1. Right-click a row → Annotate (or manage them via Settings → Annotations → Annotation Manager…).
  2. Give the annotation a description, and confirm or edit the Query Pattern (pre-filled from the row you right-clicked, e.g. Message LIKE '%Potential hang on request id=%').
  3. Optionally restrict it to files whose name contains a given string via Filename Filter.
  4. Optionally set Watch Severity (None, INFO, WARN, ERROR) to also raise a watch alert during tailing and on file open — leave it at None (annotation only) for a silent bookmark.
  5. Optionally pick a Highlight Color for the rows it matches: the default amber, or one of the palette colors after the ten bookmark colors (set them under Log Colors). In the bookmarks view's filter, every annotation color counts as Annotations.
  6. Save.
Create Annotation dialog with description text area, Query Pattern, Filename Filter, and a Watch Severity dropdown

On every load, the application runs each matching annotation in the background and marks the matching rows. Annotation bookmarks are listed as their own category in the Bookmark Filters dialog, separate from the numbered color bookmarks.

Annotations only apply on load when Apply bookmark annotations on load is enabled in Settings → Annotations, and can optionally read/write from an external database instead of the internal store.

Exporting Watch Alerts to a File

Watch alerts can also be written to a JSON file of your choosing, so other applications (a monitoring script, a dashboard, a notifier) can pick them up. Set these in Settings → Advanced:

Property Description
watch.alert.export.enabled Set to true to turn the export on (default false)
watch.alert.export.file Full path of the file to write, e.g. C:\alerts\klunk-alerts.json
watch.alert.export.max.entries Keep only the newest N alerts in the file (default 1000)

The file is rewritten each time the alert list changes (new hits, cleared alerts, or a closed log), so it always mirrors the current list. It holds a JSON array with one object per alert:

[ {
  "watchName" : "Potential hang",
  "severity" : "WARN",
  "query" : "Message LIKE '%Potential hang on request id=%'",
  "windowName" : "server.log",
  "logTimestamp" : "2026-10-18 09:14:02.317",
  "detectedAt" : "2026-10-18T09:14:05.112-04:00",
  "messagePreview" : "Potential hang on request id=4711 ..."
} ]

Live Tailing

  1. Click Tail (▶) in the viewer toolbar.
  2. New entries appear at the bottom as they arrive. The table auto-scrolls to the latest entry.
  3. Click anywhere in the table to pause auto-scroll; it resumes when you scroll back to the bottom.
  4. Click Tail again (■) to stop.

Log Analysis

Click the bar-chart icon (Analyze Currently Displayed Log Rows) in the viewer toolbar to generate a report over whatever is currently shown — the full file, or the result of your active filter and time range.

Log Analysis dialog: Summary tab with an error/warning frequency chart, a severity breakdown pie chart, and totals; Errors/Warnings/Frequency tabs; Redact sensitive data checkbox

At the bottom:

Reloading and Load Settings

Click Reload to re-read the source with its current pattern and settings, or click the gear icon (Log Settings) to change how it's loaded before reloading:

Load Settings dialog: File Type, Log Pattern, Source Timezone, Display Timezone, an Append non-matching lines checkbox, and Filter Annotations / Cancel / Reload buttons

Click Reload to apply the changes.

Exporting a Log

Click the export icon in the viewer toolbar or press Ctrl+E to save the log to a file. Choose how it's written:

Then pick Filtered view to export exactly the rows on screen (current filter, time range and bookmark filter), or All data for every row of the log. Timestamps are written as ISO-8601 with an offset (e.g. 2026-10-19T09:30:00.123-04:00) in the viewer's display timezone, so an exported file re-imports with a working time column.

Spreadsheet safety. Log text can come from anyone, and a value such as =HYPERLINK("http://…") would run as a formula when the export is opened in Excel, LibreOffice or Google Sheets. So values starting with =, +, - or @ (other than plain numbers like -5) are written with a leading ', which makes the spreadsheet show them as text. The ' stays in the file, so it also appears if you re-import the export here. For an exact copy, set log.export.formulaSafe to false in Settings → Advanced (default true; applies to the next export).

Comparing

Two tools answer "what's different?" without leaving the application: the Compare window for anything you paste or send to it (text, lists, timestamps), and Compare Rows for two rows of a log.

The Compare Window

Open it any of these ways:

There is one Compare window for the whole application. It isn't tied to the log view that opened it, so you can keep it beside your logs as a scratch tool and paste or send text into it from any window; opening it again just brings it to the front.

Paste into Left and Right — the result updates as you type. Swap exchanges the two sides and Clear empties both. Choose what kind of comparison you want with the Text / Lists / Time buttons:

Text

Compare window in Text mode: two pasted log excerpts above a side-by-side diff with removed lines in red, added lines in green and the changed characters highlighted

Lists

Compare window in Lists mode with Comma auto-picked: comma-separated order-ID lists with Only in Left, Only in Right and In both, different count columns below a 'Different' verdict

Answers "are these the same list, ignoring order?". Each side is split into items and compared as a whole, counting duplicates — a, a, b and a, b, b hold the same values but are different lists.

Split on chooses what separates the items: Lines (one item per line), Whitespace (any run of spaces, tabs or line breaks), one of the same delimiters offered for CSV patterns — Comma, Semicolon, Colon, Pipe, Tab — or type your own (any length, taken literally). With a delimiter, line breaks still separate items too, so a delimited list spread over several lines compares correctly.

Picked for you: the delimiter is chosen automatically — whichever CSV delimiter appears most in the two sides, if it clearly beats the others (otherwise Lines). Colons inside times of day such as 10:54 don't count, and Whitespace is never picked automatically. auto next to Split on shows it was picked for you; choose one yourself and it stays until you press Clear.

Time

Compare window in Time mode: three timestamps on each side and a table with each pair's difference and the gaps between consecutive timestamps

Paste one timestamp on each side to get the time between them (Right − Left), e.g. +2m 14.381s and the exact 134,381 ms. Paste several, one per line, and the table pairs them up line by line and also shows the gap between consecutive timestamps on each side — handy for latency questions.

To look at the gaps in a single list of times, paste it into Left only (or Right only): the table shows each timestamp and the gap before it, and the heading gives the count, the total span, the average gap and the largest gap with where it occurs.

Compare window in Time mode with only Left filled: five timestamps with the gap before each, and a heading with the span, average gap and the largest gap (+7.589s before #4)

Accepted formats include:

Timestamps without a timezone are read in your system timezone, or — when they were sent from a log viewer — in that viewer's display timezone. The result line says which zone was assumed.

Send to Compare

Right-click in a log viewer → Send to Compare → Left or Right puts the text into that side of the Compare window (opening it if needed) and leaves the other side as it is. It sends exactly what Copy would copy: text you've selected inside a cell, otherwise the selected cells or rows, otherwise the row you right-clicked. Several selected rows arrive one per line, ready for Lists mode.

Send Left from one viewer and Right from another to compare across windows — for example a merged view against one of its source logs.

Compare Rows

Select exactly two rows in a log viewer, right-click → Compare Rows. To select the two rows, click the first, then Ctrl+click the second (it can be anywhere in the view). If they're next to each other, you can also Shift+click or drag over the two. Any cells will do, as long as they're in exactly two rows; the menu item only appears then.

Compare Rows window: Swap at the top right, +2m 14.381s between the rows below it, and the timestamp, level, thread and message columns side by side with the changed characters highlighted

Selecting and Copying

All the compared text can be selected: drag to select, double-click for a word, triple-click for the whole value, then Ctrl+C. Right-click offers Copy, Select All and Copy All. In the Lists and Time tables, select rows and press Ctrl+C.


Log Patterns

A Log Pattern tells the application how to split each log line into structured columns. The correct pattern is essential for filtering, the time slider, and merging.

Auto-Detection

When you open a file, the application scans the first several hundred lines and tries every known pattern in order of specificity. If a pattern matches, it is selected automatically.

Patterns you created yourself are tried before the built-in ones, so a built-in pattern that also fits the file can't take it from yours. To try the built-in patterns first instead, set log.detect.userPatternsFirst to false in Settings → Advanced.

If auto-detection fails, the file is opened with the Catchall pattern, which loads every line as a single unstructured message column with no timestamp.

To run detection again on a file that's already open, for example after opening it with Catchall or after adding a pattern that fits it, choose (Auto-detect) in Load Settings and click Reload.

Built-in Pattern Types

Type Description Example source
Text / Log4j Regex-based; covers Log4j, Logback, and custom text formats app.log
CSV Delimiter-separated columns; first row is header access.log, exported data
JSON Newline-delimited JSON objects Structured logging, Fluentd
XML Element-per-entry XML Some application servers
Catchall One column per line, no parsing, no timestamp Any unknown format; very large files (loads faster)
Database All the table's columns, or the ones a database pattern lists External DB tables
Kubernetes Kubernetes API log format kubectl logs output
SFTP Delegates to one of the above after download Remote servers

Pattern Editor

Open the Log Pattern Editor from Settings → Patterns → Log Pattern Editor…, or, in a log that loaded as a single Message column, right-click a row and choose Create Pattern from This Row... to start from that line.

  1. Load Existing Pattern to edit one, or start fresh by filling in Pattern Name, Pattern Type, and a Sample Log Line.
  2. Write (or generate — see Regex Pattern Generator) a Regex Pattern with capture groups.
  3. Set the Time Parse Format (Java DateTimeFormatter syntax), or click ISO for a standard ISO-8601 shortcut.
  4. Click Apply Regex to Sample to populate Column Mappings from the sample line, then adjust each column's Column Name, Column Type, and Column Size (see Column types and sizes).
  5. Save Pattern. Patterns can also be Exported as files to share between installs. Import... takes a pattern file or pasted pattern text.
Log Pattern Editor with a loaded FILE pattern, its regex, ISO timestamp format, and a populated Column Mappings table

Example pattern for a typical Logback line:

^(\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}\.\d{3})\s+(\w+)\s+\[([^\]]+)\]\s+([\w.$]+)\s+-\s+(.*)$
Format string Matches
yyyy-MM-dd HH:mm:ss,SSS 2026-06-03 04:15:48,123
yyyy-MM-dd'T'HH:mm:ss.SSSXXX 2026-06-03T04:15:48.123+00:00
dd/MMM/yyyy:HH:mm:ss Z 03/Jun/2026:04:15:48 +0000 (Apache)
EEE MMM dd HH:mm:ss zzz yyyy Wed Jun 03 04:15:48 UTC 2026 (syslog)

Column types and sizes

Each row in Column Mappings sets how one captured value is stored and shown. Column Type controls what Klunk does with it:

Type Use it for
datetime The timestamp. Drives the time slider, time ordering, merging and Synch All. One per pattern.
level The severity (ERROR, WARN, INFO...). Colors the rows and counts errors and warnings. One per pattern.
number Numeric values such as durations, counts or status codes.
string Everything else.

Column Size sets how wide the column starts in the viewer. New columns start at MEDIUM; you can always drag column edges afterwards.

Size Typical column
EXTRA_SMALL, VERY_SMALL Short values: level, thread, a job or host id (about 10 characters at VERY_SMALL)
SMALL Class or component names (about 18 characters)
MEDIUM_SMALL Timestamps
MEDIUM, MEDIUM_LARGE URLs, paths, longer identifiers
LARGE, VERY_LARGE, EXTRA_LARGE Long text that isn't the main message
FILL Takes whatever width is left over. Give it to the message and keep that column last.

Database Patterns

Without a pattern, a database import shows every column of the table under its own name. A Database pattern lets you choose which columns come first, rename them, set their type and width, and leave columns out.

  1. In the Log Pattern Editor, set Pattern Type to DB and give the pattern a name. There's no sample line or regex for a database.
  2. Click + Add Column for each column you want, in the order you want them, and fill in:
    • DB Column — the table column to read, e.g. created_at. Upper/lower case doesn't matter.
    • Column Name — the header to show. Leave it empty to use the DB column's name.
    • Column Type and Column Size — as for any pattern (see Column types and sizes).
  3. Keep Also import the table's other columns ticked to show the remaining columns after yours, with default widths. Untick it to show only the columns you listed.
  4. Save Pattern, then pick it as the Log Pattern on the Import window's Database tab.
DB Column Column Name Column Type Result
created_at timestamp datetime The time column: enables the time slider and time-range import
severity level level Rows colored by severity, errors and warnings counted
host (empty) string Shown as host
msg Message string Shown as Message; give it the FILL size
The time column must be named timestamp (any case), and its values must be ISO-8601 times with an offset, e.g. 2026-01-15T10:23:45Z. Only the columns shown are fetched from the database. If a DB Column isn't in the table, the import stops and names it.

To change the pattern of a database window that's already open, open Log Settings (the gear icon). Its File Type is Database, and Log Pattern lists your database patterns plus (All table columns). Pick one and click Reload.

Writing a Pattern with an AI Assistant

An AI chat (ChatGPT, Claude, Copilot...) can write a pattern for you from a few lines of your log:

  1. In the Log Pattern Editor, click Copy AI Prompter (top right). It copies instructions that explain Klunk's pattern format to the AI.
  2. Paste them into a new AI chat and send. The AI asks what kind of log you have and for a sample.
  3. Paste 3–5 real lines of your log (for JSON or XML, one or two complete records; for a database, the table's column names and types). Include unusual lines such as stack traces.
  4. Copy the pattern it writes (a block of JSON).
  5. In the Log Pattern Editor, click Import..., keep Paste pattern selected, paste, and click Import. Text around the JSON, such as the AI's explanation, is ignored. Check the result with Apply Configuration, then Save Pattern.
Log lines can hold user names, hosts or tokens. Remove anything sensitive from the sample before pasting it into an online AI.

Regex Pattern Generator

Don't want to hand-write a regex? Click Generate Regex next to the sample line in the Pattern Editor.

  1. Working left to right along the Sample Log Line, select the portion you want as a capture group and click Add Selected as Group. Repeat for each field (timestamp, level, thread, message, …).
  2. Unselected text between groups is kept as Literal text the regex must match exactly.
  3. The Generated Regex Preview builds up live as you add groups.
  4. Click Apply to copy the generated regex back into the Pattern Editor's Regex Pattern field, then map each group to a column as usual.
Regex Pattern Generator with a sample log line, a Regex Components table, and a live Generated Regex Preview
Reset clears all selected groups and starts over from the plain sample line.

Changing a Pattern After Load

You can switch patterns on an already-loaded file without closing and re-opening it: click the gear icon in the viewer toolbar to open Load Settings, change Log Pattern, and click Reload. If you don't know which pattern fits a local file, choose (Auto-detect) and let the app pick it.

Switching from Catchall (no timestamp) to a pattern with timestamps adds the timestamp column and enables the time slider.

Managing Datasources

Beyond the one-off Import dialog, connection details for databases, Kubernetes clusters, and SFTP servers can be saved as reusable datasources so you don't have to re-enter credentials each time. Manage them from Settings → Datasource: Database / Kubernetes / SFTP, or directly from the Import Data dialog's respective tab.

DB Datasource Editor — create, edit, test, and delete saved database connections (name, DB type, driver, host, port, database, username, password, or a raw JDBC URL). Passwords are stored encrypted unless Save password is unchecked.

DB Datasource Editor with connection fields and New / Save / Delete / Test Connection / Manage Drivers buttons

Click Manage Drivers to register a custom JDBC driver (name and main class) beyond the built-in ones:

Driver Editor listing registered JDBC drivers by Name and Main Class, with Add / Delete buttons

Kubernetes Datasource Editor — save a named cluster connection, either by pasting a kubeconfig directly or pointing at a config file on disk, then Test Connection before saving.

Kubernetes Datasource Editor with a Name field, Paste config / Config file radio buttons, and a Config text area

SFTP Datasource Editor — save host, port, username, and either a password or an SSH private-key path (with optional passphrase). If a default SSH key is configured in Settings → Datasource: SFTP, individual connections can rely on it instead of specifying their own key.

SFTP Datasource Editor with host/port/username/password fields and Private Key Path / Passphrase fields

Session Persistence

Klunk - Log Viewer can save your workspace when you close it and restore it on next launch — toggle Save Session on Close in the Log Manager toolbar.

What is saved per viewer:


Performance and Virtualization

Klunk - Log Viewer handles very large log files through adaptive storage: smaller logs are held fully in memory, and larger ones switch to SQLite-backed paging. The switch-over point is log.virtualization.threshold (default 50,000 rows).

Dataset size Mode Behaviour
Up to the threshold In-memory All rows held in RAM
Above the threshold SQLite-paged Pages fetched on demand; never switches back to in-memory

In SQLite-paged mode, filtering uses SQL WHERE clauses executed in SQLite — no memory overhead.

Tuning virtualization — raw properties editable under Settings → Advanced:

Property Effect
log.virtualization.threshold Row count above which SQLite paging is used (default 50,000). Set it to 0 to always page, even for small logs.
log.virtualization.pagesize Rows fetched per page in SQLite mode
log.tail.interval.seconds How often a tailed source is polled for new lines
log.file.check.enabled / log.file.check.interval.secs Whether — and how often — open files are checked for external changes (the reload indicator)

Raise the threshold if you have ample RAM and prefer the faster in-memory experience. Lower it if you see high memory usage with large files.

Memory Tuning Tips

Two settings decide how much memory Klunk uses: the virtualization threshold above, and the Java memory limit (how much RAM the app may grow to). Change them together — a high threshold needs a high limit, and a low limit needs a low threshold.

Changing the Java memory limit — open Klunk.cfg in a text editor and edit the -Xmx value on the java-options line under [JavaOptions] (the default is -Xmx2g, i.e. up to 2 GB):

Restart required: the Java memory limit is only read when Klunk starts, so after saving Klunk.cfg, close all Klunk windows (including undocked viewers) and start it again. The virtualization threshold doesn't need a restart; it applies to logs you open or reload afterward.
Installing an update replaces Klunk.cfg, so make the change again after upgrading. (will fix this) Leave the -Xms value (the starting size) as it is; the memory limit is only a ceiling, and Klunk hands unused memory back to the system.

Machines with little memory (8 GB or less), or when you want Klunk to use less memory

Keep the session database on a fast drive

Large logs are written to Klunk's session database (logviewer.db) as they load, and scrolling and filtering them reads from it. If Klunk's data folder is on a hard disk, moving the database to an SSD can make large loads, scrolling and filtering noticeably faster. Set log.database.location in Settings → Advanced to a folder, for example D:\klunk-db, then restart Klunk. Leave it empty to use the data folder. The database only holds loaded rows, so the new location starts empty and your logs load again from their files. "Matching rows" imports from Search Files write few rows, so they mostly depend on the drive the log files are on.

Faster Loads with the Catchall Pattern

For a very large file you mainly want to search, open it with the CatchAll [*] pattern to load it faster. Catchall stores each line as it is, in a single Message column. It doesn't split the line into columns, read a timestamp or build a timestamp index, so each line takes less work to load, which can greatly reduce the loading time of a very large file.

  1. In the Import window, add the file and set Pattern to CatchAll [*] instead of Auto Detect.
  2. Click Import.

What you give up:

When you've found the part you need, select those rows, copy them (Ctrl+C) and paste (Ctrl+V) in the app: the pasted lines open in a new viewer window of their own. If you only need the lines that match a search, a Search Files "matching rows" import is often faster still.

To get the columns and timestamps back later, choose (Auto-detect) in Load Settings and click Reload: the file is loaded again with the pattern that fits it.


Application Settings

Open Settings from the Log Manager toolbar. It's a collapsible accordion — click a section header to expand it.

Application Settings accordion listing Appearance, Patterns, Datasource: SFTP, Datasource: Kubernetes, Datasource: Database, Annotations, General Settings, Redaction, and Advanced

Appearance

Setting Description
Font Settings… Opens the font-family / size picker for the log table
Row height pixels tweak Nudge row height by −8 to +8 px
Maximum height of rows with wrapped lines Cap on how tall a wrapped multi-line row can grow (-1 disables the cap)
Enable Dark Mode Toggle the Light/Dark theme

Patterns

Opens the Log Pattern Editor.

Datasource: SFTP / Kubernetes / Database

Each opens the corresponding datasource editor. The SFTP section also lets you Browse… to or Generate New… a default SSH private key used automatically by SFTP connections that don't specify their own.

Annotations

Setting Description
Annotation Manager… Create, edit, and delete annotation rules
Apply bookmark annotations on load Whether annotations are auto-applied when a matching file is opened (override per file in Load Settings)
Skip files with more than … rows Files with more rows than this (default 1,000,000) start with annotations off; 0 skips every file. Only used while Apply bookmark annotations on load is on
Use external database for annotations Store/read annotations from an external database instead of the internal SQLite store

General Settings

General Settings panel: external editor path, Force purge database on close and Scroll to last row checkboxes, Default display timezone, and Encoding of non-UTF-8 files
Setting Description
External editor path Application used to open raw log files from the launch icon
Force purge database on close Applies when Save Session on Close is disabled — clears the internal database on exit instead of leaving it for next launch
Scroll to the last row when a log file/source is initially opened Jump straight to the newest entry on open
Follow new rows from tailing when the last row is showing When you're scrolled to the bottom, tailing (or a reload that tails) moves you down to the newest row. Scrolled anywhere else, you stay where you are. On by default
Default display timezone Timezone newly opened logs show timestamps in (UTC unless you change it). Logs already open, restored sessions, and logs whose Display Timezone you set keep theirs
Encoding of non-UTF-8 files Used for files that aren't UTF-8 and whose encoding can't be guessed from the text (Windows-1252 unless you change it). Applies to files opened or reloaded from then on; a log's own Encoding setting overrides it

Redaction

Literal find/replace substitutions (case-insensitive) applied before pattern-based redaction when generating Log Analysis or Group Analysis reports — e.g. replacing a real company or hostname with a generic placeholder before pasting a report into an AI assistant. Replace with fills in as you type the find text, with a placeholder like [REDACT_1_LEN9] (a number for the row, and the length of the text it hides). Overwrite it with your own text if you prefer. Leaving it empty removes the text, and Unredact text can't bring it back.

Redaction panel with a Find text / Replace with table and Add / Remove buttons

Advanced

Directly edit raw configuration properties not exposed elsewhere in the UI — useful for the virtualization tuning properties and the watch.alert.* alert export settings, and the URL import limits. (TODO: create full list of available properties) Some changes may require a restart.

Advanced settings: a Property/Value table showing log.file.check.enabled, log.file.check.interval.secs, log.virtualization.threshold, log.virtualization.pagesize, log.tail.interval.seconds, and watch.alert.* properties

Custom Colors (user-dark.css / user-light.css)

You can recolor Klunk without changing the program. Every color it draws (backgrounds, text, borders, buttons, selection, log-level rows, menus, tooltips and popups) comes from a set of named color variables, and a small style sheet of your own can redefine any of them.

You can have one, both or neither. Klunk loads the file after its own theme, so your values win. Any color you leave out keeps its normal value.

1. Get a sample file

Start from a sample. Each one lists every color variable for its theme, with a comment saying where the color is used:

If your browser opens the file instead of saving it, right-click the link and choose Save link as…. Keep the file name exactly user-dark.css or user-light.css.

2. Put it next to config.properties

Save the file in Klunk's data folder, the same folder as config.properties. Its location depends on your platform; see Where Klunk Keeps Its Files. Klunk looks for the file only there.

3. Edit the colors

Open the file in any text editor and change the values. Colors can be hex (#1f6f94), rgb(…) / rgba(…) (use alpha for tints and shadows) or color names. For example:

.root,
.tooltip,
.context-menu,
.combo-box-popup,
.date-picker-popup,
.annotation-popup-container,
.toast {
    -user-color-bg: #101318;        /* windows and panes */
    -user-color-table-bg: #0b0d10;  /* the log table */
    -user-color-selection: #145a7a; /* selected rows */
}

Delete lines you don't want to change, and Klunk keeps its own color for those.

Keep the selector list at the top as it is. Tooltips, menus, drop-down lists, date pickers, the annotation popup and the short notices that fade out are drawn in their own small windows. They only see colors set on their own name in that list. If you shorten the list, those popups keep the theme's colors.

4. See the result

Klunk reads the file when it applies the theme. To see your changes, restart Klunk, or turn Enable Dark Mode off and on again in Settings → Appearance. If something looks wrong, check Klunk's log (About → View Log). A mistyped value shows up there as a CSS warning, and that color stays at the theme's value.

To go back to the normal colors, delete or rename the file and restart Klunk.

Only colors are supported. Rules in the file that change sizes, fonts or layout may break with a future Klunk version. New versions can add color variables; anything your file doesn't set uses the new default, so an older file keeps working.

Keyboard Shortcuts

Any Window

Shortcut Action
Ctrl+Shift+D Open the Compare window (or bring it to the front)

Log Manager

Shortcut Action
Ctrl+I Open the Import dialog
Ctrl+F Focus the window-search filter
Ctrl+V Open copied files or log text (outside a text box). Rows copied from a viewer open as CSV, with their column names as headers
Space Check or uncheck the highlighted rows
Ctrl+W Close selected windows
Ctrl+M Merge selected windows
Ctrl+G Group selected windows
Ctrl+Shift+G Save a group's windows for later reloading
Ctrl+Alt+A Analyze a group

Import Window

Shortcut Action
Ctrl+O Browse for files to import
Ctrl+Shift+F Search files
Ctrl+Enter Import
Escape Close the Import window
Ctrl+1 File tab
Ctrl+2 SFTP tab
Ctrl+3 Kubernetes tab
Ctrl+4 Database tab
Ctrl+5 URL tab
Ctrl+6 Groups tab (once a group is saved)

Log Viewer

Shortcut Action
Ctrl+R Reload the log from its source
Ctrl+F Open / focus the Find box
F3 Find next
Shift+F3 Find previous
Shift+Enter In the Find box: turn the find text into a filter
Ctrl+L Focus the filter box
Ctrl+Shift+L Clear the filter
Ctrl+Shift+O Open Filter Out (hide matching rows)
Escape In the filter box: undo an edit you haven't applied, or clear the filter
Ctrl+T Start / stop tailing
Ctrl+S Log Settings
Ctrl+G Set the time range
Space Bookmark the selected rows, or remove their bookmark
Alt+↑ Jump to previous bookmark
Alt+↓ Jump to next bookmark
Ctrl+B Show only bookmarked rows (press again to show all)
Enter Open Row Detail for the selected row
Ctrl+C Copy the selected rows, with a line of column names first
Ctrl+A Select all rows
Ctrl+Shift+A Analyze
Tab / Shift+Tab Move the selected cell right / left
↑ / ↓ Move selection one row
Alt+click Select just that whole row
Ctrl+Alt+click Add or remove a whole row, keeping the rest of the selection
Alt+Shift+click Select whole rows from the last clicked row to this one
Alt+Shift+↑ / ↓ Select whole rows, extending one row at a time
Page Up/Down Scroll one screen
Ctrl+E Export Log…
Ctrl+H Show the Log Manager

Troubleshooting

Where are the log file and config file?

Click the About button in the main toolbar, then click View Log to open Klunk's own log. For where the log, config.properties, the session, keys and temporary files are kept on each platform, see Where Klunk Keeps Its Files.

"No content available" after opening a file

The log pattern did not match any lines. Try:

  1. Click the gear icon (Log Settings) → change Log Pattern to a different pattern.
  2. If no built-in pattern fits, open the Pattern Editor and create a custom one.
  3. As a last resort, use the Catchall pattern — it loads every line as a raw message.

Time slider is not visible

The time slider only appears for patterns that include a timestamp column. Add a timestamp field in the Pattern Editor to enable it.

Filter returns no results for a valid timestamp

Both 2026-06-03T04:15:48Z and 2026-06-03T04:15:48.000Z are equivalent and both accepted. Display-format queries like 2026-06-03 - 04:15:48.000 also work.

Application is slow when scrolling a large file

"Parsing and inserting log entries" progress never clears

A background query (e.g. an annotation lookup) may be holding a read lock when the reload starts. The lock releases automatically. If it happens frequently, try disabling Apply bookmark annotations on load in Settings → Annotations while working with very large files.

Session does not restore a window

If a source file has moved or is unavailable at startup, that viewer is skipped during session restore. Re-open the file from its new location and the saved filters and bookmarks are picked up on the next close.

↑ Back to top