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.
|
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:
- Close Klunk, including any undocked viewer windows.
- Replace the program with the new download:
- Windows: unzip the new
Klunk-windows.zipinto the same folder you unzipped the old one into, and choose to replace the existing files. Don't delete the oldKlunkfolder first: your settings are inside it, inKlunk\app\. - macOS: drag the new
Klunk.appinto Applications and choose Replace. macOS asks you to allow the new copy once, as on the first install. - Linux: delete the old
Klunkfolder and unzip the new one in its place.
- Windows: unzip the new
- Start Klunk. It opens with your previous windows, settings and datasources.
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.
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
- In File Explorer, right-click a
.logfile and choose Open with → Choose another app. - 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. - 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
- In Finder, select a
.logfile and choose File → Get Info (⌘I). - 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.appin Applications. - Click Change All… and confirm, so every
.logfile 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.
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:
- Save the following as
~/.local/share/applications/klunk.desktop, replacing/home/you/Apps/Klunkwith 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; - 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.
- Or set the default from a terminal:
This coversxdg-mime default klunk.desktop text/x-log.logfiles. Usingtext/plaininstead 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
.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.
- 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).
- 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.
- 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.
- Type a query in the filter bar (e.g.
level = 'ERROR') and press Enter. - Drag the time-slider thumbs (left edge of the table) to narrow to a time window.
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.
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. |
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
- Select the File tab.
- 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.
- Choose a File Type (Generic, or a specific type) and a Pattern — leave as Auto Detect to let the app pick the best match.
- 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).
- Click Import.
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.
- Look in: folders, archives or files to search. Separate several with
;, or add them with Folder… and Files…. - 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). - 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.
- 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.
- 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.
- 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:
- Whole files — every row, like a normal import.
- Matching rows ± N rows of context — only the rows that match, plus N rows before
and after each one (0 to 1000), like
grep -B N -A N. Browsed Files and the window title show the search, e.g.app.log [ERROR ±2]. Only text-pattern logs can be loaded this way; other files are imported whole.
In a Matching rows window:
- Context rows are dimmed so the matches stand out.
- A bar between rows shows how many lines were left out there. Click it to read those lines from the file and show them in place; a long gap offers the first 100, the last 100 or all of its lines. Lines you show stay shown after a reload or restart.
- The bars appear only in the plain view: with no filter, time range, bookmarks view or sorting.
- Tailing shows every new line written to the file, matching or not. Only the window's last file is tailed, and not inside an archive.
- In a merged view the rows are kept, but there are no gap bars, no dimming and no tailing of these sources.
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.
- Select the Database tab.
- Pick a saved datasource, or create one via the DB Datasource Editor (host, port, database, credentials).
- 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.
- Click Import.
Kubernetes Logs
- Select the Kubernetes tab.
- Pick a saved cluster connection (configured via the Kubernetes Datasource Editor — paste a kubeconfig or point at a config file).
- Choose a namespace and pod (or a pod-name filter for multi-pod streaming), then import.
SFTP Remote Files
- Select the SFTP tab.
- 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).
- 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
- Select the URL tab.
- Paste an HTTP or HTTPS URL that returns plain-text log data.
- 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.
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.
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:
false follows every redirect and keeps sending the headers, the behavior of
earlier versions.
|
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.
| 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:
- Query box / Filter Selected — applies one filter to every checked window (see Filtering Several Windows at Once).
- Selected: + / 🔀 / ✕ — with one or more rows checked: Merge the selected windows, Group the selected windows, or Close the selected windows.
- Watches (bottom bar) — expand to manage cross-log watch/alert rules that scan open logs for matching entries.
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.
- Check the windows to search in the Log Manager list.
- 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.
- 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:
- No filter icon: no filter is active in that window.
- Orange filter icon: a filter is active and has hits.
- Brown filter icon: a filter is active but matched no rows.
Docking and Undocking
Every new view opens as a tab inside the main Log Docker by default.
- Undock: Click Undock in the viewer header to pop the tab out into a resizable standalone window.
- Redock: Click Dock in the floating window's toolbar to return it to the tab bar.
- Undocked windows keep all filters, bookmarks, and time-slider position when redocked.
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.
- In the Log Manager, check two or more windows.
- Click the merge icon under Selected:. A new Merged View tab opens.
- Each source gets a distinct color. The Source column shows every row's origin.
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.
- Select two or more windows in the Log Manager and click the group icon under Selected: (or Ctrl+G).
- 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.
- Click Set Group, or Clear Group to remove the tag from the selected windows.
Once at least one group exists, the Log Manager shows Save Group and Analyze Group buttons:
- Save Group — pick a group and persist its currently open windows to disk for later reloading (the same action the checkbox above performs automatically).
- Analyze Group — pick a group and generate an aggregated analysis report across every log file in it.
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.
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 |
- Column resize: Drag any column edge.
- Row order: Rows stay in log order (chronological in merged views); clicking a header doesn't re-sort them.
- Column widths are saved with the session.
- Selecting: Click selects a cell; Ctrl+click adds or removes a cell and Shift+click selects a block of cells. Add Alt to work with whole rows instead: Alt+click selects just that row, Ctrl+Alt+click adds it to (or removes it from) the selection, Alt+Shift+click selects every row from the last one you clicked to this one, and Alt+Shift+↑ / Alt+Shift+↓ extend (or shrink) the selection one whole row at a time. On a Mac, use ⌘ for Ctrl and Option for Alt.
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'
- ISO-8601 with offset:
2026-06-03T04:15:48Zor2026-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.
- Click Filter Out in the toolbar, or press Ctrl+Shift+O.
- Enter exclusion rules using the same syntax as the main filter.
- Apply. Matching rows are hidden.
-- Exclude health-check and metric noise:
message LIKE '%actuator/health%' OR logger LIKE 'io.micrometer.%'
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 |
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.
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 |
- Drag a thumb to narrow or expand the time window. The table filters on mouse release.
- Click the track (not a thumb) to scroll the table to that position without filtering.
- Right-click a row → Set Time Range → Start or End to move that end of the range to the row's timestamp, without dragging. The other end stays where it is, unless it would end up on the wrong side; then it opens up to the start or end of the log.
- Hover over any marker or thumb for a tooltip showing the exact timestamp.
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.
- If a row is selected and on screen, its timestamp is the reference time. Otherwise the row in the middle of the current view is used.
- Each other log centers on the row closest to that time, or scrolls to its start or end if the time falls outside it.
- Logs without a timestamp column, or still loading, are skipped.
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:
- Remove Bookmark — clears the bookmark from the row.
- Change Color [Choose] — reassign the bookmark's color.
- Bookmark Comment… — attach a free-text note to the bookmarks of this color, useful context when reviewing or feeding an analysis to an AI prompt.
| 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.
- Right-click the row of interest → Bookmark Time…. If several rows are selected, the window runs from the earliest to the latest of them.
- Choose a Leeway window (±5 ms up to ±1 min, default ±50 ms, or a custom value).
- Pick a Bookmark color.
- If any open windows have been grouped, a Target dropdown lets you limit the bookmarks to one group instead of All Logs.
- 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 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)
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.
- Right-click a row → Annotate (or manage them via Settings → Annotations → Annotation Manager…).
- 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=%'). - Optionally restrict it to files whose name contains a given string via Filename Filter.
- 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. - 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.
- Save.
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.
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
- Click Tail (▶) in the viewer toolbar.
- New entries appear at the bottom as they arrive. The table auto-scrolls to the latest entry.
- Click anywhere in the table to pause auto-scroll; it resumes when you scroll back to the bottom.
- Click Tail again (■) to stop.
- File rotation: Detects when
app.logis replaced by a new file and restarts reading automatically. - Kubernetes tailing: Streams new pod log lines with minimal delay.
- Filters during tail: All active filters apply in real time — keep an
ERRORfilter to see only exceptions as they occur.
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.
- Summary — total entries, error/warning counts and percentages, an error/warning frequency-over-time chart, and a severity breakdown pie chart.
- Errors / Warnings — the individual matching rows.
- Frequency — a time-bucketed breakdown of activity.
- Time Gaps — stretches with no rows (at least a minute, and ten times the usual time
between rows), from the last row before each gap to the first row after it. For a log written in
bursts with regular pauses, such as a job that runs every few minutes, a gap must also be three
times its usual pause, so the pauses between runs aren't listed (
log.analysis.timeGaps.periodic). Last row before / First row after select that row in the viewer. In a merged view or a group analysis it also lists times one file went quiet while the others kept logging. Turn it off withlog.analysis.timeGapsin Settings → Advanced. - Bookmarks — the bookmarked rows, by color, each color with a note for the report.
Bookmarks can take up much of a report, and so much of an AI assistant's token budget when you
paste it in: untick Include in report to leave a color
out, or Include all bookmarks in the report to leave them all out. They stay listed
on the tab, whose title says how many rows are left out. Your choice is remembered for later
reports, in
log.analysis.report.bookmarksLeftOutin Settings → Advanced. Tip: give the bookmarks that are just for your own navigation one color and leave that color out, so the report keeps only the rows that matter.
At the bottom:
- Redact sensitive data (checked by default) — scrubs values before they're shown or exported, applying your custom Redaction find/replace rules first, then pattern-based redaction (IPs, emails, etc.).
- Unredact text — reveals the original text again (only enabled once redaction has been applied).
- Copy as markdown / Save as file — export the report, e.g. to paste into a ticket or an AI assistant.
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:
- File Type / Log Pattern — switch which pattern is used to parse the file. A database window lists only database patterns and (All table columns). For a local file, the list starts with (Auto-detect): choose it and click Reload to have the app pick the pattern again, the same way it does when a file is first opened, so you don't need to know which pattern fits. A short notice names the pattern it found, and the file opens with it next time.
- Source Timezone — the timezone the raw timestamps are written in (if not embedded in the format itself).
- Display Timezone — the timezone timestamps are rendered in in the table (independent of the source timezone). New logs start in the Default display timezone set under Settings → General Settings (UTC unless you change it).
- Encoding (local files and SFTP) — the character set the file is read in.
Auto detects it per file and shows what it found, e.g. Auto (detected: UTF-8):
a byte-order mark or valid UTF-8 is used as is, otherwise the encoding is guessed from the text
(Windows-1251, Big5, Shift_JIS, GB18030, …), and if it can't be guessed the
default for non-UTF-8 files is used. Pick or type another
encoding (any Java charset name, e.g.
ISO-8859-15) if accented or non-Latin characters show up garbled. UTF-16 files are supported too. - Append non-matching lines to previous row's last field — when a physical line doesn't match the pattern (e.g. a stack-trace continuation line), append it to the previous row instead of dropping it or creating a malformed row.
- Bookmark annotations for this file — on by default, except for files over the row limit set in Settings → Annotations (1,000,000 unless changed) or when Apply bookmark annotations on load is off in Settings. Takes effect right away: turning it off removes this file's annotation bookmarks, hides Filter Annotations and notes "Annotations: off" in the description box. The choice is remembered for the file (in the session and the recent-files list).
- Filter Annotations — (shown when Bookmark annotations is on) re-runs the annotations against this file and bookmarks the matching rows.
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:
- Delimiter — what separates the columns: pipe (default), comma, tab, semicolon,
space, or any text you type. Space-delimited output is suggested as
export.log, the others asexport.csv. - Include column headers — write the column names as the first line.
- Quote values when needed (CSV) — wrap values that contain the delimiter, quotes or line breaks in double quotes, so the file opens cleanly as CSV and imports back intact.
- Redact output — mask IP addresses, host names, emails, passwords, tokens (including
JWTs), API keys, private keys and cookie values with
placeholders like
[IP_1_LEN8], after your custom Redaction substitutions.
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.
=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:
- Click the Compare button (two arrows) in the main toolbar, next to Notepad.
- Press Ctrl+Shift+D in any window — the docker, an undocked log viewer, or a dialog.
- Right-click rows in a log viewer → Send to Compare → Left or Right (see below).
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
- A side-by-side, line-by-line diff with line numbers. Removed and changed lines are shown in red on
the left, added and changed lines in green on the right, and the characters that changed are
highlighted —
v2.3.1→v2.4.0highlights just3.1/4.0. - Lines that are edits of each other are lined up even when lines were added or removed around them, and a mostly rewritten line is highlighted as a whole.
- The heading summarises the result, e.g. 3 changed · 1 added · 1 removed lines, or Identical.
- Ignore case and Ignore whitespace compare loosely; Collapse unchanged lines (on by default) shrinks long unchanged stretches to … 42 unchanged lines …, keeping two lines of context around each change.
- Above 50,000 lines on either side the diff waits for you to click Compare.
Lists
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.
- The verdict is Identical, Same items, different order, or Different, with the item counts for each side.
- Only in Left / Only in Right list the items missing from the
other side. When an item is on both sides but repeated a different number of times, a third
column, In both, different count, lists it (e.g.
ORD-1004 (2 vs 1)); it's hidden when there are none. - Options: Trim spaces around each item, Ignore case, and Ignore blank lines (also skips empty items, e.g. from a trailing delimiter).
- Select entries and press Ctrl+C (or right-click → Copy) to copy them; Copy all copies the whole column, even past the first 10,000 entries shown.
Time
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.
Accepted formats include:
- The viewer's own display format —
2026-09-03 - 10:54:14.074, also with/or.in the date (2026/09/03 - 10:54:14.074). - ISO-8601 with or without an offset —
2026-09-03T10:54:14.074Z,2026-09-03T12:54:14+02:00. - Space-separated, including log4j's comma milliseconds —
2026-09-03 10:54:14,074. - Epoch seconds, milliseconds, microseconds or nanoseconds —
1788432854,1788432854074. - A time of day on its own —
10:54:14.074(taken as today).
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.
- The headline is the time between the rows, with the exact milliseconds and the timezone the times are shown in (the viewer's display timezone).
- Every column, the timestamp included, is shown side by side — First row is the upper row in the viewer — with the changed characters highlighted. In a merged view the source file is included.
- Show only differing columns (on by default) hides the columns that match; the count beside it says how many differ.
- Long values (a stack trace, a JSON payload) wrap, and scroll within their own cell once they're taller than about 12 lines.
- Swap reverses the two rows.
- There is only one Compare Rows window. Comparing two more rows replaces what it shows and brings it to the front. If you compare from a different log viewer, the window moves to that viewer. It closes when its log viewer closes.
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.
- Load Existing Pattern to edit one, or start fresh by filling in Pattern Name, Pattern Type, and a Sample Log Line.
- Write (or generate — see Regex Pattern Generator) a Regex Pattern with capture groups.
- Set the Time Parse Format (Java
DateTimeFormattersyntax), or click ISO for a standard ISO-8601 shortcut. - 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).
- Save Pattern. Patterns can also be Exported as files to share between installs. Import... takes a pattern file or pasted pattern text.
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.
- 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.
- 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).
- DB Column — the table column to read, e.g.
- 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.
- 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 |
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:
- In the Log Pattern Editor, click Copy AI Prompter (top right). It copies instructions that explain Klunk's pattern format to the AI.
- Paste them into a new AI chat and send. The AI asks what kind of log you have and for a sample.
- 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.
- Copy the pattern it writes (a block of JSON).
- 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.
Regex Pattern Generator
Don't want to hand-write a regex? Click Generate Regex next to the sample line in the Pattern Editor.
- 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, …).
- Unselected text between groups is kept as Literal text the regex must match exactly.
- The Generated Regex Preview builds up live as you add groups.
- 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.
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.
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.
Click Manage Drivers to register a custom JDBC driver (name and main class) beyond the built-in ones:
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.
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.
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:
- Source file paths or database/Kubernetes/SFTP connection details
- Active log pattern
- Applied text filter and filter-out rules
- Selected time range
- Bookmarked rows and their colors
- Column widths
- Window position and size (for undocked windows)
- Whether tailing was active
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):
- Windows:
Klunk\app\Klunk.cfg - macOS:
Klunk.app/Contents/app/Klunk.cfg(right-click Klunk.app → Show Package Contents) - Linux:
Klunk/lib/app/Klunk.cfg
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.
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
- Lower the threshold to around
10000–20000in Settings → Advanced. Every open viewer keeps up to that many rows in memory, so this is the setting that saves the most. Larger logs are read from disk instead, which works well on an SSD. - Lower the Java memory limit to
-Xmx1g. Going lower is not recommended if you find need to load larger logs. - Close viewers you're not using. Each viewer, including each merged view, holds its own rows.
- About Task Manager / Activity Monitor: Klunk can look bigger there than its memory
limit. Most of the difference is the session database being read through the system's file cache,
which the system takes back as soon as other programs need it. If you'd rather not see it, add
log.db.mmapin Settings → Advanced and set it tofalse, then restart (filters that scan a whole large log get slower).
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.
- In the Import window, add the file and set Pattern to CatchAll [*] instead of Auto Detect.
- Click Import.
What you give up:
- No timestamp: no time slider, time-range filters, Synch All or time-ordered merging.
- No columns or level colors: filter on the whole line instead, for example
Message LIKE '%ERROR%'. - One row per line: a multi-line entry, such as a stack trace, shows as several rows.
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.
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
| 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.
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.
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.
user-dark.cssis used with the dark theme.user-light.cssis used with the light theme.
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:
- user-dark.css: "Midnight", darker backgrounds with a slight blue tint and a teal accent
- user-light.css: "Paper", a cool paper white with slate text and a blue-teal accent
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.
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.
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:
- Click the gear icon (Log Settings) → change Log Pattern to a different pattern.
- If no built-in pattern fits, open the Pattern Editor and create a custom one.
- 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
- Check whether the file exceeded the virtualization threshold — SQLite-paged files fetch pages on demand rather than holding everything in RAM.
- If you're on a large file still in in-memory mode, lower
log.virtualization.thresholdin Settings → Advanced so paging activates earlier.
"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