Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

TKTail user guide

TKTail shows huge and growing log files on Windows: it follows new lines as they are written, finds text in gigabytes without loading them into memory, explains structured records field by field and warns you when something you care about appears.

Contents

Start

PageWhat it covers
Getting startedOpening files, one TKTail for many requests, closing the window, safe mode
Viewing logsLIVE and PAUSED, moving around, records and time, selecting and copying, exporting, encodings, record formats (View As), tabs and splits, themes, the status bar
Rotating dated log filesLogs whose file name carries the date, time or a number (app_2026-10-14.log, then app_2026-10-15.log) followed as one log: what is recognized, Auto / On / Off, previous files, alerts, restarts
SearchFind in a file, Find in All Open Files, Advanced Search, sequences, folder searches, regular expressions
Huge files and network sharesFiles of many gigabytes; following logs on network shares (refresh modes, offline and back)
Keyboard shortcutsAll shortcuts

Sources and formats

PageWhat it covers
ExplorerThe left panel: Files (folders, file list, filter, favorites, searching folders) and Windows Event Logs
Windows Event LogApplication, System and other event logs: history + LIVE, floods and gaps, filters, find, copy, export
MetricsWindows Performance Counters beside your logs: the Metrics View, Show Metrics Around This Time, the METRICS panel
Folder formats (.tktail)Tell TKTail which format the logs of a folder (or one file) are
Your own log formatsCustom format profiles and the Custom Format Studio

Investigating

PageWhat it covers
InspectorThe right panel: file facts and the fields of the current record
Bottom panelRecord, Search Results, Advanced Search, Output, Problems, Alerts, Incidents, Terminal, System, Jobs
Alerts and monitoringAlerts, notifications, incidents and their evidence, background monitoring
AI integration (MCP)Let an AI assistant (e.g. Claude Code) investigate with you - read-only, opt-in
MCP tool referenceEvery tool an AI client sees, with its arguments and bounds

Windows and settings

PageWhat it covers
Linked windowsMore windows of one TKTail for more monitors
SettingsThe Settings window: every page and option
Windows integrationStarting with Windows, the notification area, Explorer’s right-click menu, shortcuts, the Jump List
Where TKTail stores dataThe data folder (and choosing another), what is kept, privacy, cleanup, removing TKTail

Reference

PageWhat it covers
Command lineEveryday tktail commands and scripting
LicenseThe license badge, entering a license code, Free / Trial / Pro
Testing with generated logsTKTail Log Generator: live load, huge files, alerts and rotation
TroubleshootingCommon questions and what to check

The window at a glance

 File  Edit  View  Layout  Tools  Help                                      (menu bar)
 [Open] [Folder] | [Explorer] [Inspector] [Panel] | LIVE | [Split] [Alert]   [Open Files v][Search all open files...]
+---- Explorer -----+---------- workspace (tabs, splits) ----------+-- Inspector --+
| Files, Windows    | demo-app.log                                  | file facts    |
| Event Logs        |  19967 2026-10-03 09:12:18.779 [ERROR] ...    | current record|
|-------------------|  ...                                          |               |
| filter            |                                     [LIVE]    |               |
| files             |                                               |               |
+-------------------+-----------------------------------------------+---------------+
| status bar: LIVE | line and position | size | encoding | format | line endings | alerts |
  • The toolbar below the menu holds the most used actions: open a file or folder, show or hide the Explorer, the Inspector and the bottom panel (right-click the panel button for its views), LIVE / PAUSED of the current file (green / amber, click to switch), split the view (right-click for more) and add an alert. On its right is the global search: choose Open Files, Folder (the Explorer’s folder) or File Names, type and press Enter - results appear in the bottom panel; Ctrl+Shift+F jumps there. (Ctrl+F searches only the current file.) Hide the toolbar with View > Toolbar; everything stays reachable from the menus and shortcuts. In a narrow window the less used buttons move into ….

  • The workspace in the middle is always there. It holds tabs and can be split.

  • The Explorer (left, Ctrl+B) and the Inspector (right, Ctrl+Shift+I) can be shown, hidden or collapsed to a narrow rail with the buttons in their headers.

  • The bottom panel (Ctrl+J) below the documents holds tool views: search results, alerts, incidents, the record, output, a terminal.

  • The status bar shows the state of the active tab; its segments are clickable.

About this guide

This guide is TKTail’s Help: Help > TKTail Help (or F1, which opens the page of what you are working in) shows it in your web browser, from the help folder that comes with TKTail. It describes the version it came with and is updated together with the application. Where a feature is not available yet, the page says so.

Getting started

What you need

  • Windows 10 or 11 (x64).
  • No administrator rights. TKTail never asks for elevation during normal use.
  • No installer: TKTail.exe is a single file. Until binary releases exist, build it from source as described in the README.

Opening files

HowNotes
File > Open… (Ctrl+O)Select one or more files.
Drag and dropDrag a tab by its header to reorder it, move it to another pane, split it off near an edge - or out of the window (Move tabs). Drop files onto a pane to open them there - near an edge for a new split. Files, event logs and metrics dragged from TKTail’s own panels too: see Drag sources into the workspace. Dropping a folder shows it in the Explorer.
Explorer panelDouble-click a file, or press Enter. See Explorer. Event logs open there too: see Windows Event Log.
File > Recent FilesThe last opened files (and Recent Folders).
Command lineTKTail.exe C:\Logs\app.log or tktail open *.log --paused. See Command line.
Windows ExplorerOptional: Settings > Windows Integration adds Open with TKTail to Explorer’s right-click menu - for one file or many (per user; see Windows integration).

A file opens at its end in LIVE mode: new lines appear as they are written. Use --paused (or View > Pause) to stay at the top instead. Opening a file that is already open activates its tab.

One TKTail, many requests

TKTail runs as a single instance. Starting it again - from a shortcut, the command line, Windows Explorer or a script - passes the request (open a file, show a folder, …) to the running window and exits. For more windows of the same investigation (another monitor), use File > New Linked Window - see Linked windows. --new-instance starts a separate, unrelated TKTail when you really need one.

Closing the window

By default, closing the window asks one question - What should TKTail do? - and lists what is running (for example 3 monitored files, 2 terminal sessions, 4 alert rules):

  • Minimize to Tray - the window hides; files stay monitored, alerts keep working, terminals and running jobs go on. The TKTail icon in the notification area opens the window again.
  • Exit TKTail - monitoring and alerts stop, terminals (and the programs started in them) end, running jobs are cancelled, and TKTail closes.
  • Cancel - nothing happens.

Tick Remember my choice to stop asking. File > When Closing the Window shows the remembered choice and changes it at any time (Ask Every Time, Minimize to Notification Area, Exit TKTail); it is the setting general.closeAction. Even with Exit TKTail remembered, closing asks once when exiting would end running terminals or an export still writing its file. File > Hide to Notification Area hides the window without asking. File > Exit (and Exit TKTail in the tray menu) always exits - it only asks when terminals or an export are still running, in one question, never a series of them. Running searches are simply cancelled: exiting never asks about them.

Settings and Help

Tools > Settings… (Ctrl+,) holds every option - the theme and font, how files are followed, alerts and their retention, AI access, starting with Windows, Explorer integration, where data is kept - see Settings. Help > TKTail Help (F1) opens this guide in your browser, at the page of what you are working in.

Where TKTail keeps its data

Settings, alerts, incidents and the rest are in %LOCALAPPDATA%\TKTail (per Windows user), in a folder you choose, or - in portable mode, when a file named TKTail.portable is beside TKTail.exe - in a data folder beside the EXE. TKTail contacts nothing over the network and has no telemetry. See Where TKTail stores data for every file, privacy and cleanup.

Starting with Windows

Settings > Startup starts TKTail when you sign in - hidden in the notification area, minimized or with the window shown (per user, no administrator rights). See Windows integration.

Safe mode

If TKTail misbehaves after a change, start it with --safe-mode: it ignores the saved workspace, monitored files, alert rules, custom formats and folder formats (.tktail files) for that session.

Next steps

Viewing logs

LIVE and PAUSED

A file opens in LIVE mode: the view stays at the end and new lines appear as they are written. The green LIVE marker in the bottom-right corner of the pane and the status bar show the mode.

  • Scrolling up (wheel, Up, PgUp, Home, dragging the scroll bar) switches to PAUSED so the text you are reading stops moving. A banner counts the lines that arrived since you paused.
  • F5 (View > Go Live) follows the end again; Shift+F5 (View > Pause) pauses; the Pause key toggles.
  • Ctrl+Home / Ctrl+End jump to the beginning / end of the file.

While a file grows, LIVE follows it smoothly - up to 60 frames a second, each showing the newest lines. A fast writer (hundreds or thousands of lines per second) is still read, indexed and checked by your alerts line by line; the view simply skips the states that came and went between two frames. Pausing stops the movement at once; Go Live jumps straight to the current end. The Line and Inspector panels follow a fast stream a few times a second and update at once when you move the caret yourself. To save CPU on a laptop, lower the frame rate: view.liveFrameRate=30 in settings.ini (10-60; see Getting started for where it is), while TKTail is closed.

TKTail notices when a log is rotated (renamed, truncated or re-created by the writing program). By default it follows the file name, like tail -F: when a new file appears under the same name, it continues with the new file. The rotation is recorded in the alert history.

Logs whose name carries the date (app_2026-10-14.log, then app_2026-10-15.log) are one log for TKTail too: when the next file appears it becomes LIVE beside the current tab, and the status bar says SERIES → app_2026-10-15.log - see Rotating dated log files.

Large files and network shares

A file of any size opens at once, and a log on a network share is followed with checks you can tune - see Huge files and network shares.

Moving around

ActionHow
Move the caretClick, or Left/Right (Ctrl: by word), Up/Down, PgUp/PgDn
Start / end of the lineHome / End (with Word Wrap: of the row you see)
Beginning / end of the fileCtrl+Home / Ctrl+End
Select with the keyboardHold Shift with any of the keys above
Scroll without moving the caretWheel, Ctrl+Up / Ctrl+Down, the scroll bars
Scroll sidewaysShift+wheel, horizontal wheel
Go to a line or byte offsetCtrl+G (also from the Inspector’s Line / Byte offset values); sizes such as 64KB or 8GB work for offsets; a number outside the file is explained in the dialog. From the command line: tktail open app.log --line 150000, --offset 8GB
Next / previous recordAlt+Down / Alt+Up - by log entry, not by line: a stack trace or a payload is skipped as one (below)
Go to a date and timeCtrl+Shift+G (Edit > Go To Time) - the record whose time is nearest (below)
ZoomCtrl+wheel, Ctrl+Plus / Ctrl+Minus, Ctrl+0 resets

The file viewer has a caret like an editor, but it never changes the file. The status bar shows its position as Ln 1,234, Col 56: the line number and the character in that line (characters, not bytes - ż or 日 count as one). Hover it for the exact byte offset; click it for Go To, right-click it to copy the line number or the byte offset, copy the line or show it in full. On a gigantic line the column may show ? for a moment while TKTail counts in the background - the window never waits for it. Very long lines are shown in rows of 16 KB, and the caret moves through them row by row.

The line with the caret has a faint background; View > Highlight Current Line turns it off.

View > Word Wrap (Alt+Z, also on the right-click menu) wraps long lines to the window width - at spaces and punctuation where possible. It is off by default, because columns, JSON and protocol messages are easier to scan one line per row; the choice applies to the active view and becomes the default for new ones. Wrapping changes only the display: the line number appears on the first row of a line, the status bar keeps showing the line and the character column in that line, and selecting, copying (also Copy Full Selected Lines), Find, alerts and Go To work on the real lines. Wrap works for any text - also lines without a single space (Base64, long number lists, URLs), Chinese / Japanese text and emoji: every character stays inside the window. Long lines stay one line: a record of tens or hundreds of kilobytes (a JSON payload, a trading message) wraps as one continuous paragraph, and with wrap off it is one row you scroll sideways. Only lines longer than 1 MB continue on a new row every megabyte (marked with the continuation arrow). The caret, clicks and selections stay exactly on the characters, also after Chinese / Japanese text and emoji. With Word Wrap on, Up / Down move by the rows you see and Home / End go to the start / end of the row; there is no horizontal scrolling (the previous position comes back when you turn wrapping off).

While a file is LIVE, a caret at the end of the file stays at the end as new lines arrive. Moving the caret away with the keyboard pauses the view (like scrolling up does); clicking into the text does not. Search results, alerts and Go To put the caret on the target and scroll sideways when the target is far to the right.

The scroll bar maps to the position in bytes, so it works the same for a 1 KB and a 100 GB file. Line numbers in the gutter are exact; for very large files they appear once the background line index has reached that part of the file (View > Build Full Line Index builds it completely). View > Line Numbers (Ctrl+Shift+L) and View > Observation Time (Ctrl+Shift+T, the time TKTail saw each line arrive) toggle the gutter columns.

Records and time

Lines describe storage; records describe meaning. A log entry - a record - is often one line, but an ERROR with its stack trace, a JSON payload written over several lines or a block of a Qlik trace are one record of several source lines. TKTail frames records the way the file’s format defines them (the same framing as the RECORD view, the Inspector and Search); plain text has one record per line.

Previous / Next Record - Alt+Up / Alt+Down (View > Previous Record / Next Record, also on the right-click menu) move the caret to the start of the previous / next record. From a continuation line - a frame of a stack trace - Next goes to the next entry and Previous to the entry before this one (not its first line). At the first record Previous does nothing, at the last one Next does nothing (nothing wraps around); in a LIVE file, a new entry becomes the next one as it arrives. Like any keyboard move, the selection goes, a LIVE view pauses when the caret leaves the end, and the status bar, the RECORD view and the Inspector follow. In an event tab the keys move to the previous / next event.

Go To Time - Ctrl+Shift+G (Edit > Go To Time; or Ctrl+G and Date and time; or click the time range in the status bar) goes to the record whose time is nearest the date and time you type - not the first one at or after it: in a file with 04:49:08.000 and 04:49:11.1064, 04:49:10 goes to 04:49:11.1064 (1.1 s away, the other is 2 s). Two records equally near: the earlier time. Type 2026-10-06 04:49:10 - fractions as precise as you like (.125, .1064, .1234567), they need not match the file’s - or an ISO time with a zone (2026-10-06T02:49:10Z). The dialog shows the file’s time range when it is known.

  • The time is the record’s own time, as its format reads it (an application log’s timestamp, an IIS log’s date and time, a JSON field with the timestamp role, a custom format’s timestamp) - the same times Search’s time ranges use. A multiline record is found by its first line’s time and the caret goes to that line; the RECORD view shows the whole entry. Timestamp-looking text inside a stack trace or a message is never used.
  • Times are compared as the file has them: times written without a zone are your wall-clock times, compared as typed; UTC times (IIS, ISO with Z) are compared with the moment you typed in this computer’s time zone. A time of day without a date (a Qlik trace) is never given one: Go To Time needs a date and says so. A file without record times (plain text) says so too - nothing is searched as text.
  • The order of the file does not matter: records whose times jump back and forth are compared by time, not by position.
  • The status bar then shows the result: nearest record 2026-10-06 04:49:11.1064 (+1.1064 s from 2026-10-06 04:49:10.000).
  • The first Go To Time in a large file reads its record times (in the background - the window stays usable; the status bar shows the progress); after that the answer is immediate, and a growing file only adds what is new.

Show Metrics Around This Time (right-click a record; Trial / Pro) opens a Metrics View beside the log, paused at the record’s time - what the CPU, memory, disk or a process did then. See Metrics.

The file’s time range - the smallest and the largest record time in the file, not the time of its first and last line (a file can be out of order). The status bar shows it as TS 02:11:17.552 → 07:42:08.6266 (with the dates when they differ; a narrow window shortens it or leaves it out - hover it for the full values), the Inspector’s Time range section shows From, To, the span and how many records have a time. Until every record has been read it is never shown as the whole file’s range: TS reading 34 % while the times are read, TS partial 04:49 → 06:12 for a part, TS not read for a file larger than 256 MB whose times are read only when you ask (click it, View > Read the File’s Times, or Go To Time). Files up to 256 MB are read in the background when you look at them; opening a file never waits for it. A LIVE file’s range grows with it - also backwards, when an older time is appended. A file without record times shows no range (the Inspector says Not available). When the file is replaced, rotated, truncated or read as another format, its times are read again - nothing of the old file is used.

Selecting and copying

  • Drag to select, Shift+click or Shift with the caret keys to extend, double-click selects a word. Esc clears the selection and the search highlight.
  • Edit > Copy (Ctrl+C) copies exactly what is selected; Copy with Line Numbers (Ctrl+Shift+C), Copy Visible Lines, Copy File Path, Select All (Ctrl+A).
  • Whole lines, without selecting them first (right-click in the text, or the Edit menu):
    • Copy Current Line (Copy Full Line when part of one line is selected) copies the complete line the caret is on - also the part that is scrolled off to the right.
    • Copy Full Selected Lines copies every line the selection touches, complete, even if the selection starts or ends in the middle of a line; also with Line Numbers.
    • Copy Line Start to Caret and Copy Caret to Line End copy one part of the line.
    • Select Line and Expand Selection to Full Lines change the selection itself, so a normal Copy then copies whole lines.
    • For structured files (FIX, JSON lines, CSV, IIS, syslog, …) and logs whose records span several lines (an error with its stack trace, a request with a JSON payload): Copy Current Record copies the complete record exactly as in the file - whichever of its lines the caret is on - and Export Current Record… saves it to a file.
    • Copied lines are separated by Windows line breaks; no line break is added after the last line. Line numbers are only included when you choose a with Line Numbers command.
  • Copying more than 16 MB asks first: Copy anyway, Export instead… (the Export dialog with exactly that text chosen - see Exporting below) or Cancel. Above 128 MB only Export is offered: the clipboard cannot hold that much reasonably.
  • Lines longer than 16 MB in one direction from the caret are too long for the line commands; select the part you need, or export it.

Exporting

File > Export… (Ctrl+Shift+S) saves part of the file - or all of it - to a new file. The Save dialog has two choices besides the name:

  • Export: what to save - the Selection, the Current line, the Current record (logs whose records span several lines), the Whole file, or the Lines matching the current find (with Ctrl+F) - each with its size.
  • Save as type: Original bytes (exactly as in the file), Text (decoded and saved as UTF-8 - see export.encoding / export.lineEndings in the settings), and for structured formats CSV, TSV or JSON Lines with one row or object per record.

Exports run in the background (the Jobs view shows the progress and can cancel them); the file appears under its name only when it is complete. A Lines matching export whose regular expression is too complex for some line fails instead of saving a file with that line left out. A growing log is exported up to where it was when you started. Export Current Record… (right-click in the text) and the Export button of the RECORD view open the same dialog with the current record or line chosen.

Find

Ctrl+F opens the find bar below the tabs of the pane you work in and searches the current file; F3 / Shift+F3 go to the next / previous match. Everything about it - and about searching several files, folders, event logs and time sequences - is on Search.

Encodings

TKTail detects UTF-8, UTF-16 LE/BE (with or without BOM) and falls back to the system code page. View > Encoding overrides the detection for the active file: UTF-8, UTF-16 LE, UTF-16 BE, ANSI, OEM, Windows-1250, Windows-1252. The status bar shows the encoding in use.

Record formats (View As)

Many logs are records rather than plain lines. TKTail detects the format from small samples of the start and the end of the file (never the whole file) and colours the important parts (timestamp, level, fields); the Inspector shows the fields of the current record. Detection looks at the whole record: a log line such as [2026-10-04T21:33:35.2593298Z] [TRACE] [MarketClient] [RESTSYSTEM] MessageReceived ... {"MESSAGE":"..."} is an application log (time, level, component, context, message) even though its message holds JSON - a file is JSON only when its records really are JSON. The file name’s extension is only a hint: a structured log named .txt is still detected. The Inspector’s Format row says how sure the detection is (for example detected, high confidence), with the evidence and the other candidates it ruled out below it. A detected format never changes while the file grows; View > View As > Auto (Effective Configuration) decides again.

Delimited files. Comma-separated (CSV), semicolon-separated (CSV, as Qlik and many European exports write them - 12500,50 stays one value), TAB-separated (TSV) and pipe-separated files are recognized from their content: TKTail splits a sample of the file with each separator - text inside quotes counts as one value - and picks the one that gives the same number of columns on every line. A .csv file can be either comma or semicolon. When a file fits two separators equally, the Inspector shows both candidates as ambiguous; choose with View > View As > Delimited > CSV (comma), CSV (semicolon), TSV (tab) or Delimited (pipe) - your choice stays. The first line names the columns when none of its values is a number; a file with such a line opens as a table even when its rows start with a time and a level (a column named time or level still works as the record’s time and severity). A quoted value that contains a line break is not joined into one record (each line is shown as its own record).

View > View As chooses a format by hand: plain text, JSON / JSON Lines, CSV (comma or semicolon), TSV, pipe-delimited, logfmt, INI and properties, syslog (RFC 3164 and 5424), IIS W3C Extended Log, Apache, Nginx, Docker and Kubernetes (CRI) logs, Serilog CLEF, PostgreSQL logs, CEF, LEEF, MySQL logs, application logs with stack traces, FIX, HL7, X12, EDIFACT and more. Formats marked (partial) work for common files but not for every variant. tktail formats list prints the full list and tktail formats detect <file> shows what the content detection sees in a file, how confident it is and why (the evidence and the rejected candidates).

Favorite formats. The formats you choose most can be favorites: View > View As > Add <format> to Favorites marks the current file’s format (built-in or your own), and the Custom Format Studio’s Use For > Favorite Format marks the profile you are editing. Favorites are listed first - with a star - in View As, the RECORD view’s Format menu and the format lists of Set Format for This File / Folder… and Edit Local Configuration…, so one click sets them; each is also still listed in its usual place (the star marks the shortcut). View As > Manage Favorite Formats… puts them in your order (Move Up / Move Down), removes one, adds any other format, and opens one of your own profiles in the Custom Format Studio (Edit…). At most 16; a favorite custom profile that is not installed any more stays in the list, disabled, until it is back.

The Format button. The RECORD view’s header always says how TKTail reads the current file: Format: Auto (FIX) when the configuration or the detection decided (its tooltip says which, and names the .tktail that did), Format: FIX when you chose it for this session. A click opens the same View As menu - choosing there is the same session choice, and Auto (Effective Configuration) goes back to the configuration and detection. Nothing is written to a .tktail until you pick one of the Set Format for This File / Folder… items. Event tabs show Format: Windows Event Log: Windows defines their structure, there is nothing to choose.

Which format a file gets. A format you choose with View As wins for this session. Otherwise a .tktail file in the log’s folder (or a folder above it) decides - for example “the logs in this folder are Qlik traces” - then a custom profile that names such files, then detection. View > View As > Set Format for This File / Folder… writes that .tktail for you; see Folder formats. The Inspector’s Resolution row says which step decided, and View As > Explain Format Resolution… shows every step.

If TKTail picked the wrong format:

  1. Look at the Inspector’s Format and Resolution rows: a configured format comes from a .tktail (the Configuration row says which); a detected one shows how sure the detection was, the Evidence, and the Other candidates with why they were ruled out. If the Format tooltip says Content detector disagrees (the Inspector: a Content detector row marked differs), a .tktail or a custom profile’s detection rules (Profile association) chose the format although the content looks like another one: change that rule or the profile’s Detection in the Custom Format Studio.
  2. View > View As chooses the right format by hand for this session; it always wins. Set Format for This File / Folder… keeps the choice for next time.
  3. View > View As > Auto (Effective Configuration) decides again, for example after the file was replaced.
  4. tktail formats resolve <file> explains the choice on the command line; tktail formats detect <file> shows the content evidence.

Built-in formats in short:

  • Application logs have fields, not fixed columns. log4net, log4j, NLog and similar libraries let each application choose the order of the time, the level, the logger and the thread; TKTail recognises the common orders and gives every one the same fields (timestamp, level, component, thread, message) - in RECORD, the Inspector, Search and field conditions alike:

    2026-10-03 22:31:01.123 [ERROR] RestApi.Service.Orders - message
    [2026-10-03 22:31:01.123] [ERROR] [Orders] [req-42] message
    DEBUG - 2026-10-06 15:55:23,484 [RCloud.Import.Service.DomainImportService] - message
    2026-08-15 16:30:10,175 [RCloud.Import.Service.SftpFailoverConnector] - ERROR - message
    2026-10-06 15:55:23,484 INFO  [main] com.example.Orders - message
    

    The order is learned from the first lines of the file; a level or a date inside the message stays message text. A layout TKTail does not recognise is a job for a custom format.

  • One line is not always one log entry. In an application log a record starts at a line with a time and a level in the file’s layout; the lines after it - an exception, stack frames, a JSON payload, text - belong to it until the next such line. With the caret on any of them, the Inspector and the RECORD view show the whole entry, and its message includes those lines. Search and alerts still work line by line: a hit on a stack frame takes you to that line.

  • A JSON object inside a message does not make the file “JSON”: it stays part of the message.

  • IIS logs (u_ex261003.log, View As > Logs > IIS W3C Extended Log) are read by their own #Fields: line - no custom format needed. The request 2026-10-03 20:37:46 203.0.113.10 GET /api/customers - 443 - 198.51.100.46 curl/8.4.0 - 500 0 0 705 becomes:

    FieldValue
    timestamp2026-10-03 20:37:46 (UTC - IIS writes W3C times in UTC)
    cs-methodGET
    cs-uri-stem/api/customers
    sc-status500
    c-ip198.51.100.46
    time-taken705

    and RECORD’s Summary reads 500 Internal Server Error - GET /api/customers with the time, duration, client and server. - means “no value”. Find with the field condition button searches the fields directly: sc-status >= 500, cs-method = POST.

  • The details of every format are in FORMATS.md.

Qlik Script Trace

TKTail reads the trace of a Qlik script reload (Qlik Script Trace). In it, a line holding only a time - 09:49:02 - starts a time block, and the lines after it belong to that block until the next time line. With the caret on any line of a block, the Inspector and the RECORD view show the whole block:

  • Summary: Qlik · 09:49:02, the number of entries in the block and, when the block holds exactly one load, the target table (Orders << ...), the source and the rows fetched (Lines fetched: 23 916 is read as 23916). MESSAGE is the block exactly as written.
  • A script error such as Found an END IF statement, but there is no open IF statement.: ENDIF makes its block ERROR · Qlik Script, coloured as an error. Nothing else gets a severity: the trace has none.
  • The trace has no date, so TKTail shows the time only.
  • Lines before the first time line form a block of their own; the last block grows while the reload writes.

Search, alerts and Copy work as everywhere: search lands on the line, the Inspector shows its block, Copy Current Record copies the time line and the block. Detection needs the time lines together with Qlik’s own lines (loads and Lines fetched). Only the script reload trace is supported - other Qlik logs are not “Qlik Script Trace”. Details: FORMATS.md.

Your own formats

When your log format is not built in, describe it in a custom format profile - with the Custom Format Studio (Tools > Custom Format Studio…) and its live preview, or as a small JSON file. View > View As > Create Format for This Log… opens the Studio on a new profile with up to 50 records of the current log (from the record you are on) as its sample, so the preview shows at once how the draft reads them. TKTail then detects, parses, colours, searches and alerts on it like a built-in format. A profile is data only - patterns and field names; nothing in it is ever run. The full guide, with a walkthrough: Your own log formats.

Tabs and splits

  • Each opened file gets a tab; opening it again activates the tab.

  • Layout > Split Right (Ctrl+\) and Split Down (Ctrl+Shift+\) show the active file in a second pane - for example the beginning and the end of the same log. Close Split merges the panes again.

  • Ctrl+Tab / Ctrl+Shift+Tab (or Ctrl+PgDn / Ctrl+PgUp) switch tabs; Ctrl+W closes the active tab; middle-click on a tab closes it, and so does its x (shown on the active tab and the one under the mouse).

  • What a tab shows: the file name (with its folder when two open files have the same name), a green dot when the tab is LIVE or an amber dot when it is PAUSED; a blue ring around the dot means the file is also monitored in the background (alerts keep working when the tab is closed); a small red dot after the name means unread alerts for that file. Hover a tab for its full path, size, encoding, format and state.

  • Right-click a tab for Close, Close Others, Close Tabs to the Right, Split Right / Below, the Move commands (next section), Pause or Go Live, Monitor in Background, Add Alert, Reveal in Explorer, Open Containing Folder and Copy File Name / Full Path.

  • With many files, use the < > buttons or the mouse wheel over the tabs, or the list button at the right end to pick any open file.

  • In a split, the pane you work in is marked by the blue line on its active tab.

  • Drop a file on a pane to open it there - see Drag sources into the workspace.

Move tabs

A tab is not tied to the pane it was opened in. Drag a tab by its header - a log, an event log, a Metrics View - and drop it:

Drop itWhat happens
between two tabs of a pane (also its own)it moves there - a marker shows the place
in the middle of another paneit joins that pane, after its tabs
near an edge of a pane (its outer quarter)a new split on that side, with only this tab: this tab | what was there
outside the TKTail windowa new linked window with only this tab (Trial and Pro)
on another TKTail windowit moves to that window - the same middle / edges there

The middle joins, the edges split. While you drag, the pane under the mouse shows its zones - the frame around the middle is the split zones - the place a drop takes is filled in, and the status bar says what the drop will do. A pane that is left with no tab closes, so dragging the last tab of a split into the other pane merges the two panes again. Esc cancels: nothing moves.

A moved tab is the same tab: the file stays open, its position, LIVE / PAUSED, word wrap, selection and find text stay as they were, an event log keeps reading, a Metrics View keeps its history - nothing is opened again. The tab you moved becomes the active one.

The same moves without dragging (right-click a tab, or Layout for the active tab):

  • Move to New Split > Left / Right / Top / Bottom - the tab alone beside its pane (only when other tabs stay in the pane);
  • Move to Pane > another pane (named by the tab it shows);
  • Move to New Window and Move to Window > a window - see Linked windows.

Moving tabs within a window works with every license.

When TKTail starts again

TKTail reopens your workspace as you left it: the same tabs in the same panes and splits, the same tab in front, and in each tab what you were looking at - a paused log at the same place (selection, word wrap and find text too), a LIVE one following the end again, an event log with its history and filter (paused ones with the selected event selected again once read), a Metrics View with its metrics, colours, names and lanes (still marked changed * if it differed from its Metric Set). The window shows first; the tabs open a moment later, without reading whole files.

  • A file that changed since (rotated, rewritten) opens at the record nearest the time you were at, not at a byte position that means something else now; the status bar says so.
  • A file that is gone, an event log you can no longer read, or a Metrics View your license does not include is skipped - the rest opens, the status bar counts what is missing and Problems lists the files (with Open to try again).
  • A file on a network share that does not answer at once opens a moment later, when the share answers - TKTail does not wait for it. If the share cannot be reached, Problems says so (with Open to try again). Opening a file on such a share from the Open dialog or a dropped file works the same way. Until the share has answered, the saved workspace keeps the tab.
  • Not reopened: running searches, exports and terminals (the SEARCH RESULTS list shows the last searches as not run; run them again when you need them) and linked windows.
  • Metrics Views start their graphs again: samples are not saved.
  • File > Reopen Workspace at Start turns it off (TKTail then starts empty and saves nothing). The workspace is saved in workspace.json in the TKTail data folder - a few seconds after changes and when you exit; after a crash the state of about a minute before is reopened. If the window was on a monitor that is no longer there, it opens on the nearest one.

Drag sources into the workspace

Anything TKTail can investigate can be dragged to where you want to investigate it - the same gesture for every kind of source:

DragfromOpens
one or several files (Ctrl / Shift selection)the Explorer’s file list, or Windows Explorera log tab each (a saved .evtx: its events)
an event log (System, Application, …)the Explorer’s Windows Event Logsits event tab
one or several metricsthe METRICS panela Metrics View - or into one (below)
a folderthe Explorer’s tree, or Windows Explorerthe folder in the Explorer (never every file in it)

Where you drop decides where it opens - a translucent highlight shows it, and the status bar says what the drop will do:

  • the middle of a pane, or its tabs: new tabs in that pane;
  • near an edge of a pane (its outer quarter): a new split on that side - the dragged sources side by side with what you were looking at (current view | payment.log);
  • metrics onto a Metrics View: they join that view (below).

Several files open as tabs of the same pane, in the order they were selected; at most 64 at a time (the rest are named in the status bar). A source that is open already is shown, not opened twice - as when you open it from a menu - and a source that cannot be opened (a file that is gone, an event log you may not read) is reported the usual way while the others open. Nothing is read while you drag: the files open when you drop them. Every drag has a menu equivalent (Open, Split Right / Below, Open in New Split, Add to Metrics View). Drop sources into the window you dragged them from; to take an open tab to another window, move the tab.

Themes and fonts

View > Theme: Follow Windows, Light or Dark. The change applies immediately to the whole window - menus, toolbar, tabs, panels, scroll bars - and Follow Windows also follows a change of the Windows setting while TKTail runs. Only the Windows Context Menu of a file in the Explorer keeps the look Windows gives it. View > Bigger Font / Smaller Font / Reset Font Size change the text size (also Ctrl+wheel).

Status bar

From left to right: messages, Monitoring paused (only when all monitoring is paused), LIVE/PAUSED (with new lines while paused), line and position (%), file size and growth, encoding, record format, line endings (CRLF / LF / Mixed), the file’s time range (TS ..., above), line index state and alerts.

While a file grows, the size shows how much data and how many lines arrive, for example 58.3 MB +7.40 KB/s · +128 lines/s. Lines/s counts complete new lines of the file (a line that is still being written counts once it ends; word wrap makes no difference), so a log of huge records can show +1.5 MB/s · 2 lines/s. It keeps measuring while the view is PAUSED and disappears about two seconds after the writer stops. In a narrow window it shortens to +7.40 KB/s · 128 ln/s; hover it for the full numbers.

The last segment shows the license in short: FREE · Non-commercial, TRIAL · 18 days left, or PRO PERSONAL / PRO BUSINESS with the owner’s name - the badge in the toolbar shows the same, larger (see License). Hover it for the details, click it for the license details, right-click it to enter a license code, copy the license information or hide the owner’s name (handy for screenshots). Hover a segment for a short explanation. Segments with a hand cursor are buttons - they run the same commands as the menus:

SegmentClick to
Monitoring pausedResume all monitoring
LIVE / PAUSEDPause / Go Live
Ln / Offset / SelGo to a line or offset (Ctrl+G)
SizeShow the Inspector
EncodingChoose an encoding (the View > Encoding menu)
FormatView as another record format (the View > View As menu)
TS (time range)Go To Time; partial / not read: read the file’s times
Index: tailBuild the full line index
AlertsAdd Alert, Mark All Alerts as Read, Pause All Monitoring

Rotating dated log files

Many applications start a new log file every day, hour or minute and put the date in its name: app_2026-10-14.log, then app_2026-10-15.log. TKTail treats these files as one log. When the next file appears, TKTail opens it beside the current tab and keeps it LIVE. You do not have to find and open the new file yourself.

How it works

  • Open the newest file of such a series. File > Open, Explorer’s “Open with TKTail”, drag and drop, Recent and tktail open all work the same way. TKTail reads the name and compares it with the other names in the folder. It reads names only and opens no other file.
  • When a newer file of the series appears, it opens in a tab next to the current one, in the same pane, and becomes LIVE. These choices carry over to the new tab:
    • View As (also a custom format)
    • encoding
    • refresh mode
    • word wrap, line numbers and observation times
  • The status bar says SERIES → app_2026-10-15.log. While a tab follows its series, its LIVE marker reads LIVE · SERIES.
  • The format carries on. A format you chose with View As (a custom format too) carries to the next file. A format TKTail detected carries too while the new file - often empty when it becomes LIVE - has too little content to tell (the Inspector says Previous file of the series); once it has, its content decides. A custom format associated by extensions looks at the last extension of each name (.001 for app.log.20261014.001): for such names, associate it by file names (app.log.*).
  • Who comes to the front: the new file does, if the series tab was in front and LIVE. Otherwise nothing takes the focus. If you paused the old file to read it, it stays where you are, and the new file is LIVE in the next tab.
  • The previous file:
    • In Free, the previous file closes once nothing has been written to it for a few seconds.
    • Trial and Pro keep previous files open next to the LIVE one, oldest on the left. Set how many in Settings > Monitoring > Previous files of the series kept open (default 2).
    • TKTail only closes tabs it opened for the series. A tab you opened yourself is never closed.
  • Opening an older file of the series (yesterday’s while today’s exists) means you want to read yesterday, so TKTail stays on it. The Inspector names the newer file. Choose On (see below) to follow the series from there.
  • Order comes from what the name means: date, then time, then number. _9 comes before _10, and 31-10-2026 before 01-11-2026. TKTail never uses alphabetical order or file times. Some cases are handled specially:
    • A file with an older date copied into the folder never moves LIVE backwards.
    • A file dated more than two days after today is ignored and noted in the application log.
    • When several new files appear at once (for example a share that was away overnight), TKTail goes straight to the newest one.
  • After a restart, a tab that was following its series opens the newest file of the series.

Names TKTail recognizes

TKTail reads the whole file name, not a name plus a fixed extension. The date, the time and the number can be anywhere - at the start (2026-10-14-api.log), in the middle (api-2026-10-14-part.log), before the extension, or in what Windows calls the extension:

FilesOne series, in this order
app.log.20261014, app.log.20261015by date
app.log.20261014.001, app.log.20261014.002, app.log.20261015.001by date, then the number - which starts again the next day
app.20261014.log.001, app.20261014.log.002the date before .log, the number after it
app_2026-10-14.log.9, app_2026-10-14.log.1010 after 9: numbers are compared as numbers
app.log.20261014.235959.001date, time and number, all after .log
001.app.log.2026-10-14, 002.app.log.2026-10-14a number before the name, the date at the end
PartForms
DateYYYYMMDD, YYYY-MM-DD, YYYY_MM_DD, YYYY.MM.DD, DD-MM-YYYY, DD_MM_YYYY, DD.MM.YYYY. Month and day may have one digit (2026-9-9). Each date is checked against the calendar: 2026-02-29 and 2026-19-44 are not dates.
Time (optional, right after the date)HHmmss, HHmm, HH, HH-mm-ss, HH_mm_ss, HH.mm.ss, HH-mm, HH_mm, HH.mm. Joined to the date by -, _, ., T or a space, or written straight after it (20261014235959). Hours, minutes and seconds are checked. Windows file names cannot contain :.
Number (optional)A number on its own, between _, -, ., spaces or brackets, or at the start or end of the name. Also a number after part, seq, segment, chunk or roll. Examples: app_2026-10-14_1.log, 001_app_2026-10-14.log, app_2026-10-14.0001.log, app_2026-10-14_part2.log, app.log.20261014.009. Leading zeros do not matter. The number can start again from 1 each day.

A number counts as the rotation number only once the folder shows it changing between files of the same date. Until then it is part of the name: app_2026-10-14_123.log alone could be a shard or a process id. A number attached to a word, such as server01, port1433 or node2, is always part of the name.

Everything else in the name must stay the same - also the text around a dated suffix:

  • app_debug_2026-10-15.log, database_2026-10-15.log and app_2026-10-15.zip are not the next file of app_2026-10-14.log; app.zip.20261014.002 and backup.log.20261014.002 are not the next file of app.log.20261014.001.
  • Letters compare as Windows compares file names: case does not matter. Names in any language work (zamówienia_2026-10-14_łódź.log).

When TKTail does not follow by itself

TKTail would rather not follow than follow the wrong file. These names are not followed automatically:

  • Two-digit years and six-digit dates (14-10-26, 261014) are not read as dates.
  • Month-first dates (10-14-2026): TKTail reads day-first. If the folder holds names that only make sense month-first, the series is reported as ambiguous.
  • Two dates in one name, or two numbers that both change, when the folder does not show which one rotates. Choose the reading yourself: Inspector > Dated rotation > Pattern lists every reading of the name.
  • Names with a number and no date (app.1.log, 001_app.log): logging libraries number such files both ways (app.1.log is the newest for one and the oldest for another). The usual case, a fixed name like app.log that is replaced, is covered by ordinary rotation.
  • A name that only sometimes has a number (app_2026-10-14.log, then app_2026-10-14_1.log): TKTail follows files shaped like the one you opened.
  • Numbered files written at the same time (shards such as app_2026-10-14_01.log and _02.log, both growing) look like a sequence. Set the file to Off, or choose the reading without the number.

Per file: Auto, On, Off

Click Dated rotation in the Inspector’s TKTail section, or the Dated Series section’s rows:

ChoiceWhat it does
AutoFollows when the name is clearly dated and you opened the newest file, while Settings > Monitoring > Follow dated file rotation automatically is on (it is by default).
OnFollows this file’s series, even with that setting off, and moves to the newest file now.
OffStays on this file.
PatternDetected automatically, or one of the readings of the name, shown like app_{YYYY-MM-DD}_{N}.log.
Previous files kept openTrial / Pro: Default, or 0, 1, 2, 3, 5 or 10 for this file.

The choice stays with the tab, also after a restart.

The Dated Series section shows:

  • Mode and State, and Why when the file is not followed.
  • Pattern, with where it came from: from the name only, confirmed by the files in the folder, or chosen by you.
  • Current: the date, time and number of the LIVE file.
  • Next file: Waiting, or the file being opened. TKTail retries while the writing application still holds the file.
  • Previous files kept, Last switch, and Folder (how the folder is watched).

A previous file TKTail keeps open says so and names the LIVE file.

Free and paid editions

Following the series works in every edition. Keeping previous files open beside the LIVE one needs a Trial or Pro license. In Free the previous file closes when the next one is LIVE, and the setting is shown as unavailable.

Alerts, incidents and monitoring

  • An alert follows the series. An alert made on app_2026-10-14.log watches app_2026-10-15.log once that file is LIVE, so you do not have to edit it every day. Incidents name the file the line was really written to.
  • Evidence across a switch: records after the trigger continue in the next file of the series, and records before it come from the previous one. Each file is kept as its own part of the evidence, with its name. Positions are never mixed between files.
  • A monitored file (Monitor in Background, tktail monitor add) follows its series without a tab. From then on the monitored entry names the current file.

Files on network shares

A series on a share is watched like the share’s files:

  • TKTail uses notifications where the share sends them. Otherwise it checks the folder at the file’s refresh mode, at most every 2 seconds.
  • While the share is away, nothing waits for it.
  • When the share answers again, TKTail goes to the newest file of the series.

See Huge files and network shares.

Settings

Settings > Monitoring > Dated file names:

  • Follow dated file rotation automatically (default: on).
  • Previous files of the series kept open (default: 2, from 0 to 50; Trial and Pro).

Search

TKTail searches without loading files into memory and without freezing the window - also a file of many gigabytes. Which search to use:

You wantUse
The next place in this fileFind - Ctrl+F (below)
Every match in all open files and event logsFind in All Open Files - Ctrl+Shift+F, or the search box on the right of the toolbar
Text, a field condition, a time range - in chosen files, folders or event logsAdvanced Search - Ctrl+Alt+F (Advanced Search)
Only among the results of a searchSearch Within These Results (Search Results)
One thing, then another within a time window (“a WARN, then an ERROR within 30 s”)a sequence in Advanced Search (Sequences)
Files by name or content in a folder - without opening themthe Explorer’s Search Files… / Search Contents… (Searching folders)
Events in an event logFind in an event tab (Finding events)
The same question again latera Saved Search (Save the question, save the answer)
An AI assistant to search for youAI integration - its searches show in Search Results too

Every search except Find keeps its results as a search session in the bottom panel’s Search Results: you can open each result, refine, export or save it, and run it again later. A search says exactly what it searched and whether everything was searched (Completed, Incomplete with the reason, Cancelled).

Find in a file

Ctrl+F opens the find bar directly below the tabs of the pane you are working in; it searches only the current file (the toolbar’s search box searches open files or folders).

  • Type and press Enter (next) or Shift+Enter (previous), or use the up / down arrows; F3 / Shift+F3 work from the pane too. Esc or x closes the bar - the search stays with the file.
  • Options (the small buttons): Aa match case, .* regular expression, the funnel for a field condition such as level = ERROR in structured records, and the circular arrows for wrapping around at the end of the file.
  • Next to the query the bar shows where you are, for example 3 / 864 (the third of 864 matches). The total is counted in the background after the first match is found (“counting 42%” meanwhile), so even huge files never freeze. With more than 100,000 matches the bar shows only the total. No matches means the file does not contain it.
  • Every tab keeps its own search: switching tabs shows that tab’s query and result; a tab without a search keeps what you typed, so Enter repeats it there. In a split, the bar moves to the pane you click into.
  • The search runs in the background in slices, so it never freezes the window, even on huge files; the result is highlighted and scrolled into view (the view pauses).
  • Previous searches are kept in the find history.

Regular expressions

With .* on, the query is a regular expression - the same rules everywhere TKTail searches: the find bar, Find in All Open Files, Advanced Search, event tabs, alert rules and the export filter.

  • Any language. Letters, digits and case work for every script: with Aa off, zamówienie finds ZAMÓWIENIE and Zamówienie; . is one whole character, an emoji too; \d, \w and \s include non-Latin digits, letters and spaces (use [0-9] for ASCII digits only).
  • One line at a time. A match never runs across lines; ^ and $ are the start and the end of the line. In a log whose entries span several lines (a stack trace), the line that matches is found and the Inspector / RECORD show the whole entry.
  • Useful additions: look behind (?<=\$)\d+ (a number after $), named groups (?<year>\d{4}), Unicode classes \p{L} (any letter), (?i) for case-insensitive, \x{F3} for a character by its code. Older patterns with \u and four hex digits (\u00F3) still work.
  • Patterns that would run away ((a+)+$ on a long line) stop at once at that line. TKTail has two safety layers: each line has a fixed limit, and a whole search has a breaker. In the find bar, Find Next ends with Regex complexity limit exceeded on a line - simplify the pattern, and a count that stopped there says so - 1 / 2 · incomplete (point at it for the reason). A search over sources (Find in All Open Files, Advanced Search) skips such a line, keeps going and says Incomplete - 1 line skipped; a pattern that keeps hitting the limit is stopped - This regular expression is too expensive for the data searched - simplify the pattern - and what it found stays. That is not a syntax error: the same pattern may be fine on other data. Exporting the lines matching such a pattern fails rather than leave lines out. A mistake in the pattern says where it is: Invalid regular expression at position 4: missing closing parenthesis. When the find bar cuts a message short, point at it to read all of it.
  • Searching for text that is not a regular expression is faster with .* off.

Recipes

Search across several files - open them (or drop them into TKTail), press Ctrl+Shift+F, type the text and press Enter. The results list each match with its file, line and time; double-click one to go there.

Errors of one request across logs - Advanced Search (Ctrl+Alt+F): add the files, a field condition requestId = ABC123 (or the text), a time range if you know it; Search.

What happened right before an error - a sequence: step 1 WARN, step 2 ERROR within 30 seconds after it - see Sequences.

A folder of old logs - in the Explorer, right-click the folder > Search Contents… - the files are read without being opened as tabs.

Huge files and network shares

Huge files

TKTail is made for logs of many gigabytes. It never reads a whole file into memory: what you see is read when you look at it, and memory stays small whatever the size.

  • Opening is instant - a 100 GB file shows its end (LIVE) or its start (--paused) at once.
  • The scroll bar maps to the position in bytes, so it works the same for 1 KB and 100 GB. Ctrl+G goes to a line or a byte offset (8GB works); tktail open huge.log --offset 8GB from the command line.
  • Line numbers are exact. For a very large file they appear once the background line index has reached that part of the file. Files up to 16 GB are indexed automatically (Settings > Monitoring > Build the full line index automatically for files up to); View > Build Full Line Index indexes any file on request. The status bar shows the index’s progress.
  • Search runs in the background in slices - the window never freezes, and Find shows counting 42% while it counts. Esc cancels a search; what it found stays.
  • Record times: Go To Time and the Inspector use the times of the records already read; View > Read the File’s Times reads the rest of the file’s times in the background (Records and time).
  • Long lines stay one line: a record of hundreds of kilobytes wraps as one paragraph; only lines longer than 1 MB continue on a new row every megabyte.

Files on network shares

A local file tells TKTail when it changes (Windows sends a notification), and TKTail also checks it four times a second - that is LIVE. A file on a network share (a \\server\share\... path or a mapped drive letter) often does not: shares deliver notifications late, merge them or send none, and a server may report the new size only after its write cache is flushed. So TKTail checks network files. A check asks only for the file’s size; nothing is read until the file has grown, and then only the new bytes.

How a file is followed is its refresh mode - in the Inspector, Monitoring > Refresh (click the value, or … > Change Refresh Mode…):

ModeWhat TKTail doesStatus bar
Auto (default)A local file: notifications and a check every 250 ms (every 2 s while TKTail is hidden in the tray). A network file: notifications where the share sends them, and checks every second after a change, slowing down step by step (2, 5, 10 s) to every 30 s while nothing changesLIVE (local), AUTO 1 s … AUTO 30 s (network)
EventNotifications only - the file itself is never checked; the lowest cost. Windows may report a change only when the writer’s data reaches the disk, and some shares accept the request but never report a change; there new lines do not appear on their own (choose Auto or Poll). When notifications stop working (the share went away, the folder is gone), the status bar says NO EVENTS: TKTail only checks whether the folder can be reached again (after 1, 2, 5 … s, at most every minute), restores the notifications and then catches upLIVE, NO EVENTS
PollChecks at the interval you choose - 500 ms, 1, 2, 5, 10, 20 or 30 s, 1, 2, 5, 10, 15 or 30 min, 1 h - and no notifications. New lines appear within about that intervalPOLL 5 s

The Inspector also shows how changes are detected now, whether the file is on a network share, the connection, and when TKTail last checked and last saw a change. Your choice is remembered for the file’s tab when TKTail restores your workspace, and for a file monitored in the background (Alerts and monitoring). PAUSED stops only the view: the file is still checked, its new lines are read and your alerts see them.

When the share cannot be reached (the server is down, the VPN dropped, the drive was disconnected), the status bar shows OFFLINE and the tab says so; the lines already shown stay. TKTail tries again after 1, 2, 5, 10 and 30 seconds and then every minute (RECONNECTING while a try is under way). When the share is back, TKTail continues where it was and reads only what was added meanwhile; a file that was replaced or deleted in the meantime is handled like a rotation or a missing file; a log with the date in its name goes on to the newest file of its series (Rotating dated log files). A file deleted on a share that can be reached is shown as missing, not offline. One slow or dead server never holds up your other files.

Keyboard shortcuts

Shortcuts are also shown next to the menu items. Help > Keyboard Shortcuts opens this page.

Files and tabs

ShortcutAction
Ctrl+OOpen file(s)
Ctrl+Shift+OOpen folder in the Explorer
Ctrl+Shift+NNew Linked Window (another window of this TKTail - Linked windows)
Ctrl+W, Ctrl+F4Close the active tab
Ctrl+Shift+WClose all tabs
Ctrl+Tab, Ctrl+PgDnNext tab
Ctrl+Shift+Tab, Ctrl+PgUpPrevious tab
Ctrl+\Split right
Ctrl+Shift+\Split down
Ctrl+Shift+SExport: the selection, the line, the record, the whole file or the matching lines, to a file

Following and moving

ShortcutAction
F5Go Live (follow the end)
Shift+F5Pause
PauseToggle LIVE / PAUSED
Ctrl+Home / Ctrl+EndBeginning / end of the file
Up, Down, PgUp, PgDn, Home, EndScroll in the pane (scrolling up pauses)
Left, Right (Ctrl: faster)Scroll sideways
Ctrl+GGo to a line or byte offset
Ctrl+Shift+GGo To Time - the record nearest a date and time
Alt+Down / Alt+UpNext / previous record (a log entry - a stack trace is skipped as one; in an event tab the next / previous event); in a drop-down list Alt+Down opens it as usual
EscClear selection and search highlight

Selecting, copying, finding

ShortcutAction
Ctrl+C, Ctrl+InsertCopy - what has the focus: the file view’s selection, the RECORD text, the selected Inspector value, or the selected rows of a bottom-panel list
Ctrl+Shift+CCopy with line numbers
Ctrl+ASelect all - in the file view the whole file; in the RECORD view this line or record; in a list every row
Ctrl+FFind
F3 / Shift+F3Find next / previous
Enter / Shift+Enter (in the find bar)Find next / previous
Ctrl+Shift+FGlobal search: the toolbar’s search box (open files, a folder or file names); results in the bottom panel
Ctrl+Alt+FAdvanced Search (the bottom panel’s builder: several sources, conditions, time, sequences)
Ctrl+Shift+AAdd alert for the selection
F8 / Shift+F8Next / previous alert in the current file (from the caret)

View

ShortcutAction
Ctrl+Shift+LLine numbers
Alt+ZWord wrap (wrap long lines to the window)
Ctrl+Shift+TObservation time
Ctrl+Plus, Ctrl+Minus, Ctrl+wheel (also Ctrl+Num + / Ctrl+Num -)Bigger / smaller font
Ctrl+0, Ctrl+Num 0Reset the font size
Ctrl+BShow / hide the Explorer
Ctrl+Shift+EFocus the Explorer
Ctrl+Shift+IShow / hide the Inspector
Ctrl+JShow / hide the bottom panel
Ctrl+Shift+`New terminal (bottom panel)
F6 / Shift+F6Next / previous pane (Explorer, viewer, bottom panel, Inspector)
Ctrl+,Settings (Settings)
F1TKTail Help - the page of what you are working in (the Explorer, the Inspector, a tool view, an event tab, a dialog)

In the terminal

Every key goes to the program running in the terminal, except:

ShortcutAction
F6 / Shift+F6Next / previous pane
Ctrl+JShow / hide the bottom panel
Ctrl+Tab / Ctrl+Shift+TabNext / previous document tab
Ctrl+V, Ctrl+Shift+V, Shift+InsertPaste (asks first for several lines without bracketed paste)
Shift+PgUp / Shift+PgDn, mouse wheelScroll back / forward through the last 10,000 lines
Enter (after the shell ended)Restart it in the same folder
Ctrl+Shift+` / Ctrl+Shift+WNew terminal / close this terminal
Ctrl+Shift+PgUp / Ctrl+Shift+PgDnPrevious / next terminal tab
Ctrl+CSent to the program (interrupts it) - it does not copy
Ctrl+Shift+CCopy the selection
Ctrl+Shift+FFind in the terminal’s text (Enter: older, Shift+Enter: newer, Esc: close)

In an event tab

ShortcutAction
Up / Down, Page Up / Page Down, HomeMove the current event (Shift extends the selection; moving away from the newest pauses)
End, F5The newest event, LIVE again
Shift+F5Pause (new events keep arriving)
Left / RightScroll sideways
Ctrl+A, Ctrl+CSelect all events, copy the selected events (complete messages)
Ctrl+F, F3, Shift+F3Find in the events (message, provider, event ID, level); next / previous
Enter, double-clickThe event in RECORD (Summary / Fields / XML)

In a Metrics View

ShortcutAction
SpacePause / go live (collection continues while paused)
End, F5 / Shift+F5Go live / pause
Left / Right (Ctrl: further), mouse wheelMove in time (wheel up: older)
HomeThe oldest time kept
+ / -, Ctrl+wheelZoom in / out
Up / Down, Shift+wheelSelect the previous / next series; scroll the lanes
Click, dragTime cursor; select a range
EscClear the cursor and the range
Ctrl+CCopy the values at the cursor, or the range’s statistics

In the METRICS panel

ShortcutAction
Ctrl / Shift + click, Ctrl+ASelect several metrics, a range, all of them
DeleteRemove the selected metrics (a metric a Metrics View collects stays for that view)
Enter, double-clickOpen the selected metrics in a Metrics View
Ctrl+CCopy the selected rows (all of them when none is selected)

In the counter picker (View > Metrics…)

ShortcutAction
Double-click a counter or an instanceAdd it to Selected
Delete (in Selected)Remove the selected counters from the selection (never from a saved set)
Click a swatch in Selected, right-click a rowSeries Color: Auto, a preset color, Custom…
Ctrl / Shift + clickSeveral counters, instances or selected rows
EnterOpen (or Add): the selection, else what the lists show, else the chosen Metric Set

In the Explorer

ShortcutAction
Alt+Left / Alt+RightBack / Forward
Alt+Up, BackspaceUp one level
F5Refresh
EnterOpen the selected files / open an event log / expand a folder / go to the typed path
Ctrl+EnterOpen in a split to the right
Ctrl+A, Ctrl+CSelect all files, copy their paths
Shift+right-clickWindows context menu

Explorer

The Explorer is the left panel: one place for every source TKTail opens. Its tree has two roots:

  • Files - Favorites, Recent Folders and This PC: browse log folders and open files without leaving TKTail. It is not a file manager (no delete, rename or move).
  • Windows Event Logs - Application, System, Security and the Applications and Services Logs of this computer. See Windows Event Log.

Show or hide it with View > Explorer (Ctrl+B), or move the keyboard focus to it with Ctrl+Shift+E (F6 cycles through the panes). The ‹ button in the header collapses the panel to a narrow rail (click the rail to expand it again); × hides it. Hiding or collapsing keeps the current folder, history and selection. Drag the panel’s edge to change its width.

Parts of the panel

  1. Navigation bar - Back, Forward, Up, Refresh on the left; the star adds or removes the current folder from Favorites; … opens more options.
  2. Address box - the current folder. Type or paste a path and press Enter (UNC paths such as \\server\logs, long paths and %VARIABLES% work; folder names are completed while you type). Typing a file path opens the file. The dropdown lists the folders you visited, your recent folders and favorites. The folder button next to it opens the folder picker.
  3. Tree - under Files: Favorites, Recent Folders and This PC (drives). Only folders are shown here; click a folder to show its files in the list below. Folders are read when you expand them, so the tree stays fast on slow or network drives. Under Windows Event Logs: the event logs (double-click one to open it) - read when you first expand the root.
  4. Splitter - drag the line between the tree and the list to give either more room; double-click it to restore the default. The position is remembered.
  5. Filter - shows only matching files of the current folder, e.g. *.log, *.log;*.json, app* (a word without wildcards matches anywhere in the name). The dropdown offers presets (all files, logs, structured logs, text files, protocols); × clears the filter.
  6. File list - the files of the current folder with their icon, size and modification time (time only for today). Click a column header to sort (again to reverse). Files that are open in TKTail are shown in bold. Hover a name for details.
  7. Status line - number of files, how many the filter hides, errors.

The list updates by itself when files appear, disappear or grow in the current folder.

Opening files

  • Double-click or Enter opens the selected file(s). If a file is already open, its tab is activated.
  • Ctrl+Enter opens in a new split to the right.
  • Drag the selected file(s) onto a pane to open them there, or near a pane’s edge for a new split on that side (Drag sources into the workspace). A folder dragged from the tree shows in the Explorer.
  • Select several files with Ctrl/Shift+click (or Ctrl+A) to open them together.
  • Opening a file from the list adds it to Recent Files and updates the Inspector, exactly like File > Open.

Context menus

Right-click a file (or a selection of files):

ItemWhat it does
Open / Open SelectedOpen in tabs (LIVE)
Open in Split Right / BelowOpen in a new pane next to / below the current one
Open and Go LiveOpen and follow the end
Monitor in Background / Stop MonitoringKeep watching the file (alerts) even without a tab - see Alerts and monitoring
Add Alert…Open the file and create an alert rule for it
Search in File…Open the file paused and show the find bar
Copy Full Path / Copy File NameCopy to the clipboard (one line per file)
Open Containing FolderShow the file in Windows File Explorer
Open Terminal HereA terminal in the bottom panel, in the file’s folder
Windows Context Menu >The usual Windows menu for the file(s) - see below
PropertiesThe Windows Properties dialog

Right-click a folder or drive in the tree: Browse Here (for a favorite: Open), Search Files…, Search Contents…, Open Terminal Here, Add to / Remove from Favorites, Copy Path, Open in Windows Explorer, Windows Context Menu, Properties, Refresh. The Favorites root offers Add Current Folder to Favorites, Recent Folders offers Clear Recent Folders, This PC offers Refresh (e.g. after plugging in a drive).

The Windows context menu

Windows Context Menu > shows the same menu Windows File Explorer would show (Open with, Send to, your archiver, version control, …). TKTail asks Windows for it only when you open that submenu, because programs that add items to it run inside TKTail while the menu is built. Shift+right-click opens the Windows menu directly.

Favorites and recent folders

  • Favorites are folders you choose; they stay until you remove them. Use the star button, the folder context menu or tktail favorites add <folder>.
  • Recent Folders fill themselves: the folders of files you open and folders you go to from the address box or the command line. File > Recent Folders shows the same list; tktail recent folders prints it.

Windows Event Logs

Expand Windows Event Logs to see the logs of this computer: Application, Security, Setup, System, Forwarded Events and, under Applications and Services Logs, the logs of Windows components and programs grouped like Event Viewer groups them (Microsoft > Windows > PowerShell > Operational). Double-click a log, or select it and press Enter, to open it in a tab; right-click it for LIVE Only, Open with Filter… and Properties. Nothing of the Event Log is read until you expand the root. Details: Windows Event Log.

Reveal Current File

View > Reveal Current File in Explorer (also in the tab’s context menu) shows the panel, opens the folder of the active document in the tree and selects the file in the list.

The tree stops at the closest folder it shows if part of the path is hidden (for example AppData while hidden items are not shown); the file list still shows the file’s folder.

The … menu has Follow Active Document: when it is on, the panel moves to the folder of whichever tab you activate. It is off by default.

Searching folders

… > Search Files in This Folder (or Search Files… on a folder) finds files by name, Search Contents of Files finds text inside the files. Both open Advanced Search with the folder as its scope (type the text, choose a regular expression or match case, Enter); the results appear in the bottom panel’s Search Results, which has room for the file, line and match; the Explorer keeps showing the folder’s files. The Explorer’s filter (for example *.log) limits which files a content search reads.

More options (…)

  • Show Hidden Items - include hidden and system files and folders.
  • Follow Active Document - see above.
  • Collapse All Folders, Refresh (F5), Copy Folder Path, Open in Windows Explorer.

Keyboard

KeyIn the Explorer
Alt+Left / Alt+RightBack / Forward
Alt+Up or BackspaceUp one level
F5Refresh
EnterOpen the selected files (list), open an event log or expand/collapse (tree), go (address box)
Ctrl+EnterOpen in a split to the right
Ctrl+A / Ctrl+CSelect all files / copy their paths
Typing a nameJumps to the first matching file or folder

Windows Event Log

TKTail shows the Windows Event Log next to your log files: Application, System, Security and the Applications and Services Logs of this computer, and saved .evtx files. Open a log and you see its recent events at once, then the new ones as Windows writes them (LIVE), one row per event. Select an event to read its message, its fields and its XML.

TKTail only reads the Event Log. It never clears a log, never deletes or changes events, never enables a disabled log and never asks for administrator rights. (The Event Log is not ETW: these are the persistent logs Event Viewer shows, not high-rate trace sessions.)

Opening an event log

In the Explorer, expand Windows Event Logs:

Windows Event Logs
  Application
  Security
  Setup
  System
  Forwarded Events
  Applications and Services Logs
    Microsoft
      Windows
        PowerShell
          Operational
        ...

Saved .evtx files are files: they appear in folders under Files, like any other file, and open from there. Windows Event Logs holds the logs of this computer.

  • Double-click a log (or select it and press Enter) to open it: the newest 1,000 events, then LIVE. A log that is already open just gets its tab back.
  • Right-click a log for Open (Recent + LIVE), LIVE Only (no history: only events from now on), Open with Filter… (see Choosing what to see) and Properties (type, enabled, log file, size, number of events, last write).
  • Drag a log onto a pane to open it there, or near a pane’s edge to open it in a new split beside what you look at; right-click > Open in New Split does the same next to the active pane (Drag sources into the workspace). A log that is open already is shown, not opened twice.
  • The list of logs is read when you first expand Windows Event Logs - TKTail does nothing with the Event Log until then. Refresh in the right-click menu reads it again.
  • Analytic and Debug logs are hidden; right-click > Show Analytic and Debug Logs lists them. A disabled log is shown dim: TKTail does not enable logs.
  • A log this account may not read is marked access denied (see Permissions).

You can also open a log from the command line (tktail eventlog open System), and a saved .evtx file with File > Open (choose Saved event logs), by dragging it onto TKTail or with tktail eventlog open C:\Logs\saved.evtx. A saved file shows its events; it has no LIVE part.

The event tab

The tab is named after the log (System, PowerShell/Operational); its tooltip shows the full name, the computer and the filter.

Time                     Level        Provider                  Event ID  Message
2026-10-05 20:17:31.115  Information  Service Control Manager   7036      The Demo Service entered the running state.
2026-10-05 20:17:33.412  Error        Service Control Manager   7031      The Demo Service terminated unexpectedly...

  • One row per event, oldest at the top, the newest at the bottom, where LIVE events arrive. Times are local times (the Summary shows the UTC time too).
  • Critical and Error are drawn in the error colour, Warning in the warning colour, Verbose dim - the same colours as levels in log files.
  • The message column shows the first part of the message on one line. Messages are prepared in the background, newest first: for a moment a row may show … instead.
  • Rows can scroll sideways when the window is narrow (Shift+wheel, the horizontal scroll bar, Left / Right).

LIVE and PAUSED

Like a log file, an event tab is LIVE (following the newest event) or PAUSED.

  • Clicking a row, moving up with the keyboard or scrolling up pauses the view. New events keep arriving: the badge and the status bar count them (PAUSED · +37 events).
  • End, F5 or Go Live return to the newest event.
  • Stop Monitoring (right-click) stops receiving new events; the rows stay. Start Monitoring continues right after the last event shown - nothing in between is skipped.
  • A paused tab keeps receiving events, and it still keeps only its newest 100,000. When a busy log pushes out rows the paused view held, the badge and the status bar say so (PAUSED · +12,400 events · 2,400 older left the tab), the Inspector shows While paused, and a search says those rows were not searched. They are still in Windows; Go Live shows the newest events.

The status bar shows the state (LIVE, PAUSED +n, STOPPED, LOADING HISTORY, RECONNECTING, ACCESS DENIED; when LIVE cannot keep up also catching up or overloaded - see below), the current event (Event 1,002 / 1,002), the number of events in the tab and the LIVE rate in events/s (events, not lines), and the filter (click it to change it).

Rows that are not events

The tab says when something happened to the log itself, in a dim row:

RowMeaning
Event log was cleared or resetThe log was cleared while the tab was open (record numbers started again). Rows above are from before.
LIVE reconnected - no events missingThe connection to the Event Log service was lost and restored; TKTail continued after the last event it had.
LIVE resumed without a bookmark - events may be missing hereIt could not continue after the last event (the log was cleared or overwritten in between).
LIVE skipped ahead to stay current · 94,812 events (records …)The log wrote faster than TKTail could read for a while; TKTail continued from the newest events. The row names the records it passed over - they are still in the Windows log (see below).
Monitoring stopped / started againYou stopped or started monitoring.

How much a tab keeps

A tab keeps the newest 100,000 events (about 64 MB at most); older ones leave the tab - they stay in Windows, of course. The Inspector shows how many rows the tab has and how many left it.

When a log writes faster than TKTail reads

A tab reads every event as long as it can keep up - thousands per second. When a log writes faster for a long time (a program or script in a loop), TKTail stays responsive and says what happened:

  • The status bar says it in words: LIVE · catching up (4 s behind) while TKTail works through waiting events, LIVE · overloaded, 12,400 skipped after it had to continue from the newest events (and LIVE · 12,400 skipped later). Its tooltip and the Inspector (Keeping up, Skipped, Source gaps) give the numbers.
  • After about 10 seconds behind, LIVE skips ahead to the newest events. A row says exactly what was passed over - the number of events, their record numbers and when they were written. They are still in the Windows log. With a filter the number is an upper bound (“up to”): not every record in the range matches the filter.
  • During a flood, messages are prepared for the rows on screen (and for searches and exports), not for every event that arrives - and while LIVE moves faster than they can be prepared, its rows show …; pause the tab to read them.
  • A full log overwrites its oldest events. If it overwrote events before TKTail read them, the tab shows LIVE resumed without a bookmark - events may be missing here - those events are gone from Windows too. The Inspector counts them as Source gaps.
  • A search over a tab with such rows says so: Find adds the tab has 1 gap; Find in All Open Files and Advanced Search report the search as Incomplete. The same when a flooded tab let events go (its 100,000 rows) before the search reached them - n events left the tab before the search reached them: pause the tab or stop monitoring to search a fixed set of events.
  • Evidence an alert keeps of an event log is Partial when the log no longer holds the start of its time window.

The selected event: Summary, Fields, XML

Select an event and open the RECORD view in the bottom panel (Enter, or double-click a row). It shows the event in the same panes it uses for log records:

  • Summary (the default): the level and provider, the time (local and UTC), channel, provider, event ID, task, computer, user, process and thread, record ID, the message and the first fields of the event’s data.
  • Fields: every field Windows recorded - TimeCreated, Level (with the provider’s own name of the level - names of levels, tasks, opcodes and keywords come from Windows, in its display language), Provider, EventID, Task, Opcode, Keywords, EventRecordID, Channel, Computer, UserID, ProcessID, ThreadID, ActivityID, Version, the message and the event’s data (EventData with its names; unnamed values as Data[1], Data[2] …; UserData as paths such as LogFileCleared.SubjectUserName). Fields Windows did not record are not shown.
  • XML: the event exactly as Windows renders it, indented for reading.

The Inspector shows the same event’s fields, and above them the source (channel, computer, history, filter, state) and the tab’s numbers (rate, delivery time, how LIVE keeps up, retention, skipped events and gaps, memory).

No message? Some events have no message text on this computer: the program that wrote them is not installed here, its message resources are missing, or the log comes from another computer. TKTail then shows the event’s own data as the message (“Event data”); the event is complete otherwise.

Choosing what to see

Filter Events chooses which events the tab shows. Open it with right-click > Filter…, by clicking the filter in the status bar (All events when there is none), or from the Explorer: right-click a log > Open with Filter….

FieldShows only events …
Levelsof the checked levels: Critical, Error, Warning, Information (includes LogAlways, as in Event Viewer), Verbose. None checked: every level.
Providerof these providers - pick one of the tab’s providers from the list or type names; several are separated by ;
Event IDswith these IDs: 7031, ranges 7034-7036, several separated by commas; a leading - excludes (-1000)
Textwhose message, provider or event ID contains the text (not case-sensitive)
Advancedthat match your own Event Log XPath query, which replaces levels, providers and IDs

Below the fields the dialog shows the query Windows runs for them, as you type. A mistake (an ID above 65535, a reversed range) is shown there in red and OK keeps the dialog open. Clear empties every field.

Levels, providers and event IDs are filtered by Windows itself, so a filter on a big log does not read every event. The text is matched by TKTail while the events are read: their messages are formatted for it, which is slower on a big log - combine it with a level or provider when you can.

Advanced: tick it to edit the XPath yourself - it starts with the query of the fields above. Write one XPath expression, as in Event Viewer’s XML tab between <Select ...> and </Select>. Two examples for the System log:

*[System[(Level=1 or Level=2) and TimeCreated[timediff(@SystemTime) <= 86400000]]]
*[System[Provider[@Name='Service Control Manager']] and EventData[Data[@Name='param4']='BITS']]

The first shows critical and error events of the last 24 hours; the second the events of the Service Control Manager about the BITS service (field param4 holds the service’s name - the Fields view shows the names of an event’s data).

A whole <QueryList> is not accepted: it can name other logs, and a tab shows exactly one. Windows checks the XPath when the tab runs it; if it is not valid the tab says so (The query is not valid Event Log XPath: …) - open Filter Events again to correct it.

Changing the filter starts the tab again with the new query; rows of the old filter never mix with the new ones. The current filter is in the status bar, the tab’s tooltip and the Inspector.

Right-click an event for quick filters and the history:

ItemWhat it does
Show Only Provider “…”Only events of this provider
Show Only Event ID …Only events with this ID
Show Only Level …Only events of this level
Clear FilterAll events again
History > LIVE only / Last 100 / Last 1,000 / Last 10,000 / Available historyHow much history the tab reads
RefreshRead the history again
Show Metrics Around This EventA Metrics View beside the tab, paused at the event’s time - CPU, memory, disk or a process then (Trial / Pro; Metrics)

Finding events

Ctrl+F in an event tab opens the find bar. A search looks at each event’s message, its provider, its event ID and its level (Match case, regular expressions and Wrap as for files); the first event that matches is selected, the tab pauses and the match is highlighted in its row. The find bar says where the match is (Found in the message, in the provider …). F3 / Enter finds the next event, Shift+F3 the previous one. Without a selected event the search starts at the events on screen (in LIVE: the newest).

  • A search covers the events the tab holds (up to 100,000) and up to the first 8,192 characters of each message (what the tab keeps of it). To search the whole log on the computer, use Filter Events or tktail eventlog query --text.
  • Messages that are still being prepared are prepared first - a search never skips a message. If Windows does not provide a message within 15 seconds, the search continues without it and says how many events were searched without their message.
  • Field conditions (level = ERROR) are for log records; for events use Filter Events.

Find in All Open Files (Ctrl+Shift+F, or the search box in the toolbar) and Advanced Search search the open event tabs too - in the background, so a large tab never holds up the window, with a time range if you set one (an event’s time is its TimeCreated). Their results show the log’s name, the event (time, level, provider, ID and the message around the match) and the log (eventlog://local/System) where a file shows its path - an event has no line number. Double-click a result (or press Enter) to go to its tab with the event selected; if the event has left the tab in the meantime, the status bar says so. Copy Match copies the matched text, Copy Source URI the log’s address.

Copying

CommandCopies
Copy Event / Copy n Events (Ctrl+C)The selected events, one per line, with their complete messages
Copy MessageThe selected event’s complete message
Copy FieldsIts fields, one per line (name, value, meaning)
Copy XMLIts XML
Copy Event ID / Copy ProviderThe value alone

Select several events with Shift+click, Shift+arrows or Ctrl+A. When some messages are still being prepared, Copy waits for them (the status bar says so) - copies never contain “…”.

Exporting

Right-click > Export Events… (or File > Export while an event tab is active) writes the events to a file: TSV, CSV or JSON Lines, all events of the tab or only the selected ones. Each event is one row with the columns Time (local), TimeUtc, Level, Provider, EventID, RecordID, Task, Opcode, Keywords, ProcessID, ThreadID, Log (the channel, or the saved file’s path) and Message.

Messages are complete: the export first prepares every message the tab has not prepared yet (the status bar counts them down). A message longer than the 8,192 characters a tab keeps, an event the log no longer holds and a message Windows did not provide in time are marked in the file ([message continues: ...], [message not formatted in time]) - never cut silently. Rows such as Event log was cleared are exported too (-- Event log was cleared or reset), so a gap in the events stays visible. TSV has no room for a tab or a line break inside a value: there they become spaces (CSV and JSON Lines keep the message exactly). Saving events as a native .evtx file is not available.

Keyboard

Up / Down, Page Up / Page Down, Home move the current event (Shift extends the selection); End returns to LIVE; Left / Right scroll sideways; Ctrl+A selects all events; Ctrl+C copies them; Ctrl+F / F3 / Shift+F3 find; Enter opens the event in RECORD; Ctrl+wheel zooms like the file viewer.

Permissions

Application, System and most Applications and Services Logs can be read by every user. The Security log can only be read by administrators and members of the Event Log Readers group. Without that right TKTail shows Access denied in the tab and in the tree; nothing else is affected. TKTail never elevates itself: to read Security, run TKTail as a member of Event Log Readers (an administrator can add your account), or as administrator if your organization allows it.

Command line

tktail eventlog list                                    the logs of this computer (--all: Analytic and Debug too)
tktail eventlog open System                             open a tab: the newest 1,000 events, then LIVE
tktail eventlog open Application --last 100 --level error,warning
tktail eventlog open System --live                      only new events
tktail eventlog open System --since 2h --provider "Service Control Manager"
tktail eventlog open C:\Logs\saved.evtx                 a saved log (history only)
tktail eventlog query System --last 20 --level error    print events (no window)
tktail eventlog query Application --id 1000 --output json

eventlog query prints the newest matching events, oldest first; it exits with 1 when no event matches and 4 when access is denied. Details: docs/CLI.md.

Troubleshooting

What you seeWhat to do
Access deniedSee Permissions.
A log is missing in the treeIt may be Analytic or Debug (right-click > Show Analytic and Debug Logs), or installed after the tree was read (Refresh).
RECONNECTINGThe Event Log service did not answer (restarting, very busy). TKTail retries after 1, 2, 5, 10 s and then every 30 s, and continues after the last event it had.
LIVE · overloaded, n skippedThe log writes faster than TKTail can read; TKTail continued from the newest events. See When a log writes faster than TKTail reads. A filter on level or provider lets TKTail read fewer events.
Event data instead of a messageThe program that wrote the event has no message text on this computer (see above).
Rows show …Messages are prepared in the background, visible rows first; they appear within moments.
A saved .evtx shows some events without a message, or their details as no longer in the logThe file combines events of several logs. TKTail finds an event in a saved file by its position, which needs record numbers that rise through the file - as in every file Windows saves from one log. Open the original logs, or files saved from one log each.

Not available yet

Event logs of other computers, saving events as .evtx, and alerts on events (alerts watch log files).

Metrics (Windows Performance Counters)

Logs say what an application reported; metrics show what the machine and its processes were doing at the same time - CPU, memory, disk, a process’s private bytes, threads or handles. TKTail reads them from Windows Performance Counters and shows them beside your logs on the same clock, so an ERROR at 14:32:07 can be compared with the CPU and memory of 14:32:07.

  • Nothing is collected until you choose counters. Browsing the list of counters samples nothing.
  • History is kept in memory only - the last 15 minutes by default (5, 15, 30 or 60) - and starts when a counter is first collected: there are no metrics for earlier times. Nothing is written to disk.
  • Metrics need a Trial, Pro or Developer license. Without one the commands stay in the menus, marked (Pro), and explain this when chosen; the log viewer works as before.

Opening metrics

View > Metrics… opens the counter picker (Metrics - Windows Performance Counters). The quickest way is a Metric Set - a saved selection of counters, built once and reopened in seconds:

  1. Choose a set in Metric Set at the top - a built-in one or one of yours.
  2. Load puts its counters into Selected (nothing is collected yet). A set that observes a process, a disk or a network interface asks which one first.
  3. Adjust the selection (and the colors) if you like, then Open (or Add - see below).

With nothing selected, Open applies the chosen set at once. Host Basics and Process Diagnostics… at the bottom do the same in one click.

Built-in Metric Sets (shipped with TKTail; they cannot be changed or deleted - Save As makes your own copy):

SetCountersAsks for
Host BasicsCPU (total), available memory, committed memory, disk throughput-
System PressureCPU (total), processor queue length, available memory, committed memory, paging (pages/s), context switches-
Process Diagnosticsthe process’s CPU (a share of the machine, as Task Manager shows it), private bytes, working set, threads, handles, I/O throughputa process
Disk & I/Oread / write throughput, reads / writes per second, read / write latency, queue lengtha disk (all disks preselected)
Networkbytes total / received / sent per second, packets per seconda network interface

Choosing the process (Process Diagnostics, Choose Process): the running processes are listed; type to filter. Follow by name continues the series when the process restarts (the restart is marked); Pin this process watches exactly that PID - the series ends when it exits. A name you type that is not running yet is followed by name and collected when it starts.

Picking counters yourself: an Object (Processor Information, Memory, Process, …), one or more Counters and, where the object has them, Instances (Ctrl / Shift for several). Names appear in this Windows’s language, in English or both (Show names - see Counter names below); Find matches either, whichever is shown - Private Bytes finds Bajty prywatne on a Polish Windows. Add to Selection (or double-click a counter or an instance) puts them into Selected; with nothing in Selected, Open takes what the lists show.

Selected lists every counter with its Color (a swatch: Auto or yours - click it to change it) and its State: available, not running now (a process followed by name - collected when it starts), unresolved (pinned to a PID that is gone - select it and use Choose Process to bind it to a running process), or not on this computer (the counter, its object or its instance does not exist here - another computer may have it; it stays in the set and is simply not collected). Remove (Delete) and Clear Selection change the selection only, never a saved set.

Your own Metric Sets:

  • Save As… keeps the selection as a new set with a name and an optional description - for example Qlik Server Diagnostics: CPU, available memory, disk throughput and the engine process’s CPU, private bytes and threads. Next time: View > Metrics…, choose it, Open.
  • Save writes the changed selection and its colors back into the loaded set (a set with unsaved changes shows * after its name above the selection). A built-in set is never saved over.
  • Manage…: Revert to Saved (the loaded set’s counters and colors again), Rename, Duplicate, Delete (with a confirmation), Open Metric Sets Folder.
  • Your sets are listed under My Metric Sets, below the built-in ones. They are stored by their English counter names, so they work on another computer and in another Windows language (see Counter names); a process, disk or interface that does not exist there shows as unavailable or unresolved.

The picker can be resized and maximized - the three lists share the extra width, the selection the extra height - and a name that does not fit shows in full in a tooltip. TKTail remembers its size and position (on a monitor that still exists).

The counters open in a new Metrics View tab named after the set (Metrics: Host Basics, Metrics: PaymentService, Metrics: Qlik Server Diagnostics). If a Metrics View is the active tab, the picker’s button says Add and adds to it instead. The same entries are in Tools > Metrics (Open Metrics: Host Basics, Open Metrics: Process Diagnostics…, Add Counters…), and the SYSTEM panel has a Metrics button. Tools > Metrics > Open Metric Set… lists the built-in sets and yours and opens one directly.

Counter names

Windows names its counters in its own language: Bajty prywatne on a Polish Windows is Private Bytes on an English one. TKTail shows them the way you choose - System language (the default), English, or System language + English (Bajty prywatne [Private Bytes], handy when you follow English documentation). Choose it in the picker (Show names), in Tools > Metrics > Counter Names, or from the right-click menu of a Metrics View or the METRICS panel; every open view follows at once. It changes only the names you see - the counters, their history and your sets stay as they are.

Hover a series name in a Metrics View, a row of the METRICS panel or an entry in the picker for both names and the counter path. Labels of the built-in sets (CPU (total), Available memory) are TKTail’s own names and stay the same in every form. Process, disk and interface names (the instances) are names of things, never translated. A provider that has no English names keeps its own and says so.

To give a series a name of your own - Qlik Engine RAM for a process’s private bytes - right-click it > Series Name… (in a Metrics View, or on a row of Selected in the picker). The name is saved with the Metric Set, like its color; leave it empty to go back to the counter’s name.

Your sets on another computer. A Metric Set keeps the language-neutral identity of every counter (the English name, and the GUID where Windows has one), never the names of your Windows’s language. Made on a Polish Windows, it opens on an English one with the same counters - shown in English there; a counter that computer does not have shows as not on this computer.

The Metrics View

A Metrics View is a tab like a log: it can be split, moved and shown next to logs. Each counter gets a lane on one shared time axis: its name and current value, and the minimum, average, maximum and change of what is visible (or of the selected range). Series of different units never share a scale. A gap in collection is drawn as a gap, a sample that could not be read is marked below the line, and no earlier data marks the time before collection started.

The header shows LIVE / PAUSED, the zoom (30 s to 60 min), the cursor or range, and how often the view collects. The tab names what it shows (Metrics: Host Basics, Metrics: Host Basics + PaymentService, Metrics: 9 counters) and follows when you add or remove counters.

ActionHow
Pause / go liveClick LIVE in the header, Space, Shift+F5 / F5, or End (go live). Pausing stops the display only - collection continues
Time cursorClick in a chart; the values at that time are what Ctrl+C copies
Select a rangeDrag in a chart (the view pauses); its statistics show in every lane; Esc clears cursor and range
Move in timeMouse wheel (up = older), Left / Right (Ctrl: further), Home (the oldest kept)
ZoomThe zoom buttons in the header, Ctrl+wheel, + / -
Many lanesShift+wheel or the scroll bar; Up / Down select a series

Right-click the view for: Search Logs and Events in This Range… (below), Copy the Values / Copy the Range’s Statistics, One Lane per Unit (series of one unit together), Fit Percent Lanes to Their Data, Series Color (below), Hide the Selected Series / Show All Series, Remove the Selected Series, Add Counters…, Collect Every 1 / 2 / 5 / 10 / 30 s, and the Metric Set commands (below).

Series colors

Every series starts in Auto: a color of TKTail’s palette, by its place in the view - the same set opens with the same colors, and series sharing a lane never get the same one. To give a series a color of its own, right-click its name (or its lane) > Series Color and pick one of the ten preset colors, Custom… (the Windows color dialog) or Auto to go back; Reset All Series to Auto is at the end of that menu. In the picker, click a row’s swatch in Selected (or right-click the row) for the same choices before you open the set.

A color only changes how the series is drawn - the counter, its history and its collection stay as they are. A chosen color stays yours in both themes; one too close to the background (yellow on white) gets a thin outline instead of being replaced. Colors tell series apart; states never depend on them alone (warming up, missing and errors are drawn as patterns and named in the lane).

Saving a view as a Metric Set

What a Metric Set remembers: its counters in their order, the process / disk / interface they observe, each series’ color (Auto or yours) and One Lane per Unit. What it never remembers: the zoom, the cursor or range, LIVE / PAUSED, hidden series - those belong to the open view.

  • Save as Metric Set… keeps the view as a new set (name, optional description); the view belongs to that set from then on.
  • A view opened from one of your sets shows * on its tab once its counters, colors or lanes differ from the set. Save to “<set>” writes them back; Revert to Saved Set brings the set’s counters and colors back.
  • A view of a built-in set (Host Basics, …) is never saved over: Save as Metric Set… makes your own copy, for example My Host Basics with CPU in red.

Two sets of the same counters open as two tabs, each with its own colors - and still one collection per counter.

The status bar shows LIVE / PAUSED, the cursor or range, how many metrics the view collects and how often (the tooltip adds the collection’s memory and its last duration).

Logs and metrics side by side

From a log to metrics. Right-click a record (or an event in an event tab) > Show Metrics Around This Time (also Tools > Metrics). TKTail opens a Metrics View beside the log, paused on that record’s time with the cursor on it - or moves a Metrics View already shown beside it. The new view shows the METRICS panel’s counters, or Host Basics when that list is empty. Records need a complete date and time; a time older than the history kept says so.

From metrics to logs. Drag a range in a Metrics View (for example a CPU spike), right-click > Search Logs and Events in This Range…: the Advanced Search opens in the bottom panel with that time range and the open files and event logs as sources. Choose what to look for, then Search. With only a cursor, the search covers the 30 seconds before and after it.

The METRICS panel

View > Tool Views > Metrics (or Tools > Metrics > METRICS Panel) shows a table of every counter being collected: its current value, minimum / average / maximum and a sparkline of the last 5 minutes, its state, and which views collect it (Collected for).

The panel has its own list too: counters you add here are collected from TKTail’s start for as long as they stay on the list (it is saved with your settings) - useful for “always show me CPU and the service’s memory”. The panel’s buttons and right-click menu: Add counters (+ - the picker with its Metric Sets), Add Host Basics, Add Process Diagnostics…, Open in New Metrics View (Enter), Pause the display, Remove (Delete), Remove Stopped Metrics, Copy, Collect Every, and Keep History 5 / 15 / 30 / 60 minutes (for all metrics).

From the panel into a Metrics View. Select one or several rows (Ctrl+click, Shift+click, Ctrl+A) and:

  • right-click > Add to Active Metrics View - the Metrics View in front, else the one you used last, else a new one;
  • right-click > Add to Metrics View > one of the open Metrics Views, or New Metrics View;
  • Open in New Metrics View (Enter) - a view of just those metrics;
  • or drag the rows: onto a Metrics View they join it; onto a log pane, an empty area or a pane’s edge they open in a new Metrics View there (Drag sources into the workspace).

A metric that is in the view already is not added twice (it is selected instead), and the view keeps collecting through the same stream - adding a view never starts a second collection of a counter, and the history TKTail kept is shown at once. A stopped (history kept) metric can be added too: the view shows its history and its state, never a value it does not have. Where the new series is drawn follows the view: with One Lane per Unit it joins the lane of its unit, otherwise it gets a lane of its own - a value never lands on another unit’s axis (the status bar says which while you drag). The rows stay selected, so the next view is one more click. Adding to a view opened from one of your Metric Sets marks it changed (*): Save to “<set>” keeps the change, Revert to Saved Set undoes it; a built-in set never changes - Save as Metric Set… makes it yours.

Removing metrics. Select one or several rows - Ctrl+click, Shift+click, Ctrl+A - and press Delete (or right-click > Remove Metrics; a right-click on a selected row keeps the selection). The selection stays on the same metrics while the table updates every second.

  • A counter on the panel’s own list leaves it.
  • A stopped metric (stopped (history kept) - for example the counters of a process whose view you closed) is removed with its history; Remove Stopped Metrics does that for all of them.
  • A metric a Metrics View still collects stays for that view (the status bar names it) - remove it in the view, or close the view.

Removing rows never changes a saved Metric Set: open the set again and its counters come back.

StateMeaning
okRead at the last collection
waiting for the first sampleNothing has been read yet
warming upRates (CPU, bytes/s) need two readings - the first value comes one interval later
staleNo new sample for longer than expected
restarted (another process)A followed process was restarted; the series continues, marked
not runningThe process (the counter’s instance) is not running now
access deniedWindows does not let this user read the counter
unavailableThe counter cannot be read now (the tooltip says why)
stopped (history kept)Nothing collects it any more; what was collected stays until it ages out

Linked windows

The METRICS panel’s own list is collected once, by the main window; a linked window says so in its panel and Open in Metrics View shows the list there. Metrics Views opened in a linked window collect in that window. See Linked windows.

What it costs

Counters are read on a background thread, once per interval for all views together - three views of the same counter are one collection. A hidden Metrics View does not draw; a visible one draws when new samples arrive.

What matters is which kind of counter, not how many: Windows reads a whole counter object at a time. Processor, memory and disk counters (Host Basics) cost next to nothing. Counters of the Process object (Process Diagnostics, any process counter) and of the System object (System Pressure’s queue length and context switches) make Windows gather the list of all running processes at every collection, so their cost grows with how busy the PC is - measured from about 4 ms of CPU time per collection (450 processes) to about 60 ms (820 processes with 38,000 threads), i.e. from under 1 % to about 6 % of one CPU core at every 1 s, the same for one or twenty such counters. When you watch process counters for longer on a busy PC, Collect Every 2-5 s lowers that in proportion. A hidden Metrics View costs nothing; a visible one redraws once per collection. Measured numbers: PERFORMANCE.md.

Folder formats: local configuration (.tktail)

Tell TKTail once that “the logs in this folder are Qlik traces” (or JSON Lines, or your own custom format), and every file in that folder and its subfolders opens that way. The setting lives in a small file named .tktail next to the logs - like .editorconfig, but for how TKTail reads log files. A closer .tktail wins over one further up, and a format you pick with View As always wins for the current session.

Quick start

  1. Open a log from the folder.

  2. View > View As > Set Format for This Folder… (the same menu opens from the Format button in the RECORD view’s header), pick the format, Save. The dialog says which file it writes.

  3. TKTail writes .tktail in the file’s folder. The file - and every file opened later in that folder or below it - uses that format. The Inspector’s Resolution row says Folder configuration, Configuration names the .tktail, and Auto detector shows what the content alone says. The RECORD view’s Format button reads Auto (<format>); its tooltip names the .tktail too.

TKTail never creates a .tktail on its own: opening a file, browsing a folder or detecting a format reads .tktail files but writes nothing. Only the actions below write one.

What the file looks like

A Qlik folder (root: true - nothing above this folder applies):

{
  "schemaVersion": 1,
  "root": true,
  "defaults": {
    "format": "builtin:qlik-script-trace"
  }
}

A mixed folder:

{
  "schemaVersion": 1,
  "defaults": {
    "format": "builtin:applog"
  },
  "rules": [
    { "match": "*.jsonl", "format": "builtin:jsonl" },
    { "match": "reload-*.log", "format": "builtin:qlik-script-trace" }
  ]
}
SettingMeaning
schemaVersion1. A file from a newer TKTail is ignored (and reported), never guessed at
roottrue: .tktail files in the folders above do not apply here (a project or repository root). Optional
defaults.formatThe format for every file in this folder and below, unless a rule or a closer .tktail says otherwise. Optional
rulesmatch (a file name or a pattern) and format, in order. Optional

The file is UTF-8 JSON, at most 256 KB and 1,000 rules. Settings this version does not know are kept when TKTail edits the file, and listed as warnings.

Format ids

A .tktail names formats by a stable id, never by the name shown in the menus (names may change; ids do not):

IdFormat
builtin:textPlain Text
builtin:applogApplication log + stack traces
builtin:jsonlJSON Lines / NDJSON
builtin:qlik-script-traceQlik Script Trace
builtin:<key>any built-in format: the keys are in tktail formats list
custom:<id>a custom format profile by its id (custom:rest.api) - renaming the profile keeps it working

Rules and patterns

Patterns are relative to the folder of the .tktail and ignore letter case:

PatternMatches
reload.loga file with this name, in this folder or any folder below
*.log, qlik-*.log, trace-??.txtfile names; * is any text, ? one character
archive/*.log.log files directly in archive (below the .tktail folder)
archive/**/*.log.log files in archive and any folder below it

\ works like /. Absolute paths and .. are not allowed: a .tktail only describes files below its own folder. When several rules in one file match, the last one wins - put general rules first and exceptions after them.

Folders and subfolders

C:\Logs\.tktail                default: Application log
C:\Logs\Qlik\.tktail           default: Qlik Script Trace; rule raw.log -> Plain Text
C:\Logs\Qlik\reload.log        -> Qlik Script Trace   (Folder configuration)
C:\Logs\Qlik\raw.log           -> Plain Text          (File rule)
C:\Logs\Qlik\2026\old.log      -> Qlik Script Trace   (Inherited configuration)
C:\Logs\api.log                -> Application log     (Folder configuration)
  • A .tktail changes only what it says. A child folder whose .tktail has a single rule still inherits its parent’s default for every other file.
  • Set Format for This Folder in a subfolder writes that subfolder’s own .tktail - the parent’s file is not touched.
  • "root": true stops the search upwards.
  • Network shares (\\server\share\...) work the same way; the search stops at the share.

The order TKTail follows

For every file, the first of these that applies decides:

  1. A format you chose with View As in this session (or tktail open --format).
  2. The nearest .tktail: its last rule that matches the file.
  3. The nearest .tktail: its folder default.
  4. The .tktail files further up, nearest first, until one with "root": true.
  5. A custom format profile that names files like this one (its extensions / file names).
  6. Content detection.
  7. File-name hints.
  8. For the new file of a rotating dated log whose content says nothing yet (it is often empty when it becomes LIVE): the format its previous file was read with - until its own content decides.
  9. Plain Text.

A configured format that is not available - a custom profile that is not installed or is disabled - is reported (Problems, Inspector) and the next step decides.

Doing it from TKTail

View > View As (also from the Inspector’s Format row and the status bar’s format):

ItemWhat it does
Auto (Effective Configuration)Drops a View As choice: the order above decides again
Set Format for This File…Adds a rule for this file’s name to its folder’s .tktail (an earlier rule for the same name is replaced)
Set Format for This Folder…Sets (or removes) the folder default in this file’s folder
Add Local Format Rule…A pattern and a format; the dialog lists the files of the folder the pattern matches
Edit Local Configuration…The folder default, the rules (add, edit, remove, reorder) and Root configuration, for the .tktail that decides the current file (or the file’s folder)
Explain Format Resolution…Every step of the order above for this file - what each .tktail says, what was used, what the content detector says
Detect from Content…What the content alone says (View As and .tktail ignored), with View As that format for this session
  • Writes are safe: TKTail writes a temporary file and replaces .tktail in one step, keeps settings it does not know, and never overwrites a .tktail it cannot read (fix or delete that one first).
  • Set Format for This File / Folder also drops a View As choice of the current file, so you see the saved format at once.
  • The log files themselves are never changed.

When a .tktail changes - from TKTail, an editor or git pull - open files follow within about two seconds. A file you chose a format for with View As keeps it; its Inspector notes that the configuration changed.

Custom formats

A custom profile is chosen in the same dialogs (they list the profiles in force), or from the Custom Format Studio: Use For > Apply to Current File / Set as Folder Default / Add Folder Rule… for the saved profile. The .tktail stores its id (custom:rest.api). Renaming the profile keeps the association; a .tktail that names a profile this computer does not have falls back to the next step and says so.

Seeing why

  • Inspector > TKTail: Format (configured / detected / chosen), Resolution (the source), Configuration and Rule (when a .tktail decided), Auto detector (what the content says - “differs” when it disagrees). Click Resolution for the full explanation, click Configuration to edit it.
  • tktail formats resolve <file> prints the same explanation; tktail formats detect <file> shows content detection only.
  • tktail config validate <folder or file> checks a .tktail.

When something is wrong

  • A .tktail with a mistake (not JSON, a format id that does not exist, .. in a pattern) is ignored as a whole; the folders above and detection decide. Problems shows Local configuration ignored - …; tktail config validate says what is wrong.
  • The wrong format for one file: View As > Plain Text always shows the raw file. Then Explain Format Resolution tells which .tktail and rule chose it.
  • Safe mode (--safe-mode) does not read .tktail files.

Security

A .tktail only describes data: format ids and file name patterns. It cannot run anything - no commands, scripts, programs or libraries, no includes and nothing fetched from a network - so a repository can carry one safely. TKTail reads it with a size limit and treats anything it does not understand as an error or a kept-but-unused setting.

Your own log formats (Custom Format Studio)

TKTail knows 35+ formats. When yours is not one of them - a proprietary application log, an in-house service, a device - you can teach TKTail the format yourself, without programming. A custom format (a profile) describes it, and TKTail then treats it like a built-in format:

  • it detects files in it automatically;
  • it splits records into fields with meanings (time, severity, component, message …);
  • the RECORD view shows a Summary and the Fields; the Inspector shows the current record;
  • structured search and alert conditions (level = ERROR, payment = 9921) work on its fields;
  • the viewer colours timestamps, levels and numbers.

The Custom Format Studio edits a profile with a live preview of every change.

A profile is data, never code.

  • It holds patterns (regular expressions), field names, meanings and simple conditions such as level = ERROR.
  • Nothing in a profile can run PowerShell, a shell command, JavaScript, a DLL or any other program.
  • An imported profile is checked before it can be used.

The reference of every setting is CUSTOM_FORMATS.md.

Opening the Studio

  • View > View As > Create Format for This Log… - a new profile with up to 50 records of the current log (from the record you are on, at most 16,000 characters) as its sample; for a log whose records already span several lines the template proposed is the multi-line one, for a CSV / TSV / pipe file the delimited one - already set to the file’s separator, with one field per column (Delimited files).
  • Tools > Custom Format Studio…. (Use For > Favorite Format there lists a saved profile among your favorite formats - first in View As.) It opens the profile of the active file, if the file uses one; otherwise it starts a new profile.
  • View > View As > Custom (also in the viewer’s context menu):
    • New Custom Format… offers four templates:
      • Line-based: one record per line - timestamp, level, message.
      • Multi-line records: a record starts at a line with a date; the lines after it belong to it.
      • Clone built-in: Application log: TKTail’s application-log format as an editable profile.
      • Delimited columns: CSV, TSV, ; or | separated files - one record per line, fields read columns.
    • Edit This Custom Format… edits the profile of the active file.
    • Clone Built-In: Application Log… starts from the application-log clone at once.
    • A new profile - from a template, the clone or Save as Copy - has no detection rules: it is used where you choose it (the list below, Use For, a .tktail) and never takes over other logs by itself. Add Extensions, File names or a Content pattern under Detection when files should pick it automatically (below).
    • The list in this submenu also chooses a profile by hand for the active file.
    • Reload Custom Formats reads the profiles again; Open Custom Formats Folder opens where they are stored.

A new profile’s id and name come from the active file’s name, for example billing and billing format. Without an open file they are my-format.

How a profile reads a record

Every record goes through the same steps, in the Studio’s preview and in the viewer alike:

  1. Framing - one line is one record, or a record starts at a line matching Record start and the following lines (a stack trace, a payload) belong to it until the next record start (Multi-line records).
  2. Common pattern - one regular expression with named groups reads the parts every record has ((?<timestamp>...), (?<level>...), (?<message>...)). It is matched against the record’s first line.
  3. Record type - optional kinds of records (Payment failed, Retry …), tried in order of priority; the first that matches wins; a fallback type takes everything else.
  4. Type-specific extraction - a record type can read more fields from a field (for example message) or from the whole record.
  5. Conditions - a field can exist only when a condition is true (level = ERROR).
  6. Semantic roles - each field can say what it means: timestamp, severity, message …
  7. Presentation - which fields the RECORD view’s Summary shows, and how.
  8. Highlighting - the viewer colours fields by their role and type: severities by level, timestamps, numbers.

The Studio window

  • DEFINITION (left) - the parts of the profile as a tree: General, Detection, Framing, Common pattern, Common fields, Record types (each with its own fields), Semantics (severity names), Summary, Sample. Select one to edit it below the tree.
    • Add Field adds a field to the selected record type, or to the common fields.
    • Add Record Type adds a type before the fallback.
    • Clone Type copies the selected type.
    • Remove deletes the selected field or type.
  • PIPELINE - what happened to the sample, step by step: was it detected, how it is framed into records, did the common pattern match, which record type was chosen (and which others matched too, or the fallback), which fields were extracted, omitted by a condition or kept raw. For multi-line framing it ends with every record of the sample and its source lines (Record 1 - lines 1-4). Clicking a step selects the part of the definition it is about.
  • SOURCE - the sample, coloured by what each field captured. Clicking text selects the field it belongs to.
  • RECORD - Summary shows the record exactly as the RECORD view will show it; Fields lists every field with its value, where it comes from (common or the record type), its role, type and state.
  • DIAGNOSTICS - every mistake and warning. Clicking one goes to the part it is about.
  • The status line says how long the preview took, and whether the draft is saved.

Live preview. The Studio uses TKTail’s real parser, the same code the viewer uses - there is no separate “preview parser”. Each change is applied to the sample about 200 ms after you stop typing, in the background; the window never freezes.

A pattern row tells you at once whether the pattern is valid and which groups it captures (valid - 4 groups: timestamp, level, component, message), or what is wrong and where. A condition row says whether it is valid and, when it is, whether it is true for the sample.

Draft and saved profile

You always edit a draft. Files open in TKTail keep using the saved profile until you click Save. A half-typed pattern can therefore never disturb monitoring or alerts.

  • Save checks the draft. If it has errors, nothing is saved - the status line says how many, DIAGNOSTICS lists them, and the saved version stays in use.
  • A valid draft is written safely: a temporary file, then a rename, so it is never half written. Open files using the profile switch to the new version at once (Saved - applied to N open files).
  • Revert goes back to the saved version (the samples stay as they are).
  • Use For (a saved profile without unsaved changes) makes files use it without detection: Apply to Current File, Set as Folder Default (the current file’s folder and its subfolders) or Add Folder Rule… (a pattern such as *.txt). These write a folder format file (.tktail) beside the logs that names the profile by its id (custom:<id>), so renaming the profile later keeps them working. Nothing is stored anywhere else.
  • Closing the Studio with unsaved changes asks Save / Discard / Cancel. Exiting TKTail counts an unsaved draft in its exit question.

Walkthrough: a timestamp | level | component | message log

The log (synthetic, billing-2026-10-05.log):

2026-10-05 09:15:02.114 | INFO  | Billing.Invoices | Invoice 4711 created for account 8812
2026-10-05 09:15:02.381 | WARN  | Billing.Payments | Retry 2 for payment 9921 after 1500 ms
2026-10-05 09:15:03.007 | ERROR | Billing.Payments | Payment 9921 failed: card declined
2026-10-05 09:15:03.250 | INFO  | Billing.Invoices | Invoice 4712 created for account 8813
  1. Open the file in TKTail, then View > View As > Custom > New Custom Format… and choose Line-based. If the sample is empty, click Use Current Line. The PIPELINE says the common pattern does not match - the template expects timestamp level message, not pipes.

  2. Common pattern: replace it with ^(?<timestamp>\d{4}-\d{2}-\d{2} [\d:.]+) \| (?<level>[A-Z]+) *\| (?<component>[^|]+?) \| (?<message>.*)$. The row says valid - 4 groups, and SOURCE colours the four parts.

  3. Common fields: the template has timestamp, level and message. Select Common fields and Add Field; set its id and capture group to component and its role to logger. RECORD > Summary now shows INFO · Invoices with the message.

  4. Record types:

    • Add Record Type PAYMENT_FAILED, priority 100:
      • Match in message, Match pattern ^Payment \d+ failed;
      • Extract from message, Extract pattern ^Payment (?<payment>\d+) failed: (?<reason>.*)$;
      • add its fields payment (type integer, role correlation) and reason.
    • Add RETRY (priority 90) the same way:
      • match ^Retry ;
      • extract ^Retry (?<attempt>\d+) for payment (?<payment>\d+) after (?<delay>\d+) ms;
      • delay has type durationMs and role duration.
    • Add a type RECORD with Fallback for everything else.
  5. Summary:

    • Status badge level, Title fields component, Message message;
    • Primary fields payment, reason, attempt, delay; Details timestamp.

    For the retry line, the Summary shows the WARN badge, the title Billing.Payments, the message, and the rows Payment 9921, Attempt 2 and Delay 1.50 s (1500).

  6. Detection:

    • File names billing*.log;
    • Content pattern ^\d{4}-\d{2}-\d{2} [\d:.]+ \| ;
    • Matching lines 2.
  7. Samples: in Sample, Add Line for each kind of record and set its Expected type. Test All reports 4 samples · 4 detected · 4 classified correctly · 0 fallback · 0 parse errors, PASS for each.

  8. Save. The open file switches to the profile at once; the status bar shows Billing service log, and level = ERROR or payment = 9921 work in search and alert conditions.

The resulting profile (billing.tktformat.json) - it passes tktail formats custom validate:

{
  "schemaVersion": 1,
  "id": "billing",
  "name": "Billing service log",
  "description": "timestamp | level | component | message",
  "fileMatch": { "names": ["billing*.log"], "content": "^\\d{4}-\\d{2}-\\d{2} [\\d:.]+ \\| ", "minLines": 2 },
  "framing": { "kind": "line" },
  "envelope": { "pattern": "^(?<timestamp>\\d{4}-\\d{2}-\\d{2} [\\d:.]+) \\| (?<level>[A-Z]+) *\\| (?<component>[^|]+?) \\| (?<message>.*)$" },
  "fields": [
    { "id": "timestamp", "group": "timestamp", "type": "timestamp", "role": "timestamp" },
    { "id": "level", "group": "level", "role": "severity" },
    { "id": "component", "group": "component", "role": "logger" },
    { "id": "message", "group": "message", "role": "message" }
  ],
  "recordTypes": [
    { "id": "PAYMENT_FAILED", "name": "Payment failed", "priority": 100,
      "match": { "field": "message", "pattern": "^Payment \\d+ failed" },
      "extract": { "field": "message", "pattern": "^Payment (?<payment>\\d+) failed: (?<reason>.*)$" },
      "fields": [ { "id": "payment", "group": "payment", "type": "integer", "role": "correlation" },
                  { "id": "reason", "group": "reason" } ] },
    { "id": "RETRY", "name": "Retry", "priority": 90,
      "match": { "field": "message", "pattern": "^Retry " },
      "extract": { "field": "message", "pattern": "^Retry (?<attempt>\\d+) for payment (?<payment>\\d+) after (?<delay>\\d+) ms" },
      "fields": [ { "id": "attempt", "group": "attempt", "type": "integer" },
                  { "id": "payment", "group": "payment", "type": "integer", "role": "correlation" },
                  { "id": "delay", "group": "delay", "type": "durationMs", "role": "duration" } ] },
    { "id": "RECORD", "name": "Log record", "fallback": true }
  ],
  "presentation": { "summary": { "status": "level", "title": ["component"], "headline": "message",
                                 "rows": ["payment", "reason", "attempt", "delay"], "secondary": ["timestamp"] } }
}

Multi-line records

In many logs one entry spans several lines: an error with its exception and stack trace, a request with a JSON payload. TKTail calls each physical line a source line and each log entry a record. Framing decides which source lines form one record. The Inspector, the RECORD view and Copy Current Record then work on the whole record, whichever of its lines the caret is on.

Framing in the DEFINITION tree has these settings:

SettingMeaning
Records - One line = one recordEvery line is its own record.
Records - Multi-line: a new record at each record startA line matching Record start begins a new record. Every line after it belongs to that record until the next record start: exceptions, stack frames, payloads, text.
Record startA regular expression for the first line of a record. Make it strict: a timestamp and a level, not just “a line with a date”, so that text inside a payload does not start a record.
Continuation (optional)When set, only lines matching it continue a record. A line that matches neither pattern becomes a record of its own. Leave it empty in most cases.
Max lines, Max bytesSafety limits for one record. A longer run is split there; no line is lost. The viewer never joins more than 2,000 lines / 4 MB, whatever the profile says.

Example: an error with a stack trace

The log:

2026-10-05 07:15:11 ERROR MyService Request failed
System.Exception: Something happened
   at MyService.Work()
   at MyService.Run()
2026-10-05 07:15:12 INFO MyService Request completed
  1. View > View As > Custom > New Custom Format…, template Multi-line records.
  2. Select Framing. Records is already Multi-line: a new record at each record start.
  3. Set Record start to a line that begins with a date, a time and a level:
    ^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2} (TRACE|DEBUG|INFO|WARN|ERROR|FATAL)
    
    (with the space at the end). The row under it says valid - 1 group.
  4. Paste the log as the sample (Paste Sample). PIPELINE shows how it is framed:
    ✓ Framing      2 records: lines 1-4, line 5
      ...
    → Record 1     lines 1-4 · 4 source lines · previewed
           1  2026-10-05 07:15:11 ERROR MyService Request failed
           2  System.Exception: Something happened
           3     at MyService.Work()
           4     at MyService.Run()
    → Record 2     line 5 · 1 source line
           5  2026-10-05 07:15:12 INFO MyService Request completed
    
    The first record is the one previewed in SOURCE and RECORD; the steps between Framing and Record 1 (common pattern, record type, fields, Summary) are about it.
  5. Select Sample and set Expected records to 2. Test All now fails if a change to the profile frames the sample differently, for example expected 2 records, got 5.

The same profile in the viewer: with the caret on at MyService.Work(), the Inspector and the RECORD view show the 4-line ERROR record, and Copy Current Record copies those four lines.

What PIPELINE warns about

MessageWhat it means
no line matches the record start - the whole sample would be one recordThe Record start pattern matches nothing; every line would join one record.
the first line is a continuation - in a file it would join the previous record (orphan continuation)The sample starts in the middle of a record (for example with a stack frame). Add the record’s first line, or check the pattern.
a record reaches Max lines (n) - it is split thereA record is longer than Max lines; raise it if that is normal for your log.
every line starts a record - is the record start pattern too broad?The pattern also matches stack frames or payload lines. Make it stricter (add the level).

Search and alerts still work line by line. A search hit on a stack frame takes you to that line, and the Inspector shows the record it belongs to. An alert fires on the line that matches.

Delimited files

Comma-, semicolon-, TAB- and pipe-separated files open without a profile (the built-in CSV, TSV and pipe formats). Make a profile when such a file needs names, roles, types or record types - for example a Qlik export whose Sales column should be a field with its own name:

  1. Open the file and choose View > View As > Create Format for This Log… (template Delimited columns, offered first for such a file). The draft already uses the file’s separator - say Semicolon (;) - and has one field per column, named from the header line. A sample taken from the middle of the file (this command, Use Current Line, Use Current Record) starts with the file’s header line, so the preview names the columns as the file does - the sample’s name says (with the header line).
  2. Under Framing, Records is Delimited. Delimiter (Comma, Semicolon, Tab, Pipe), Quote (a double or single quote, or none), Quote escape ("" or \") and Header line (the first line names the columns) are the profile’s own settings - the PREVIEW reads the sample again as soon as you change one, before anything is saved.
  3. A field reads a column: Capture group 3 is the third column, Sales the column the header line names Sales (with Header line on). Changing the delimiter never requires changing the fields.
  4. Save. The separator is saved in the profile ("delimiter": ";"), exported and imported with it, and used for every file the profile is chosen for.

A short line leaves its last columns out (those fields are not captured). A quoted value that contains a line break is not joined into one record.

Recipe: a profile over a detected CSV

An export TKTail already opens as CSV (semicolon) - Id;Customer;Time;Amount;Level;Region;Message - should have its time, level and message understood: time-ordered navigation, severity colours, severity <= error searches and alerts.

  1. Open the file, View > View As > Create Format for This Log…. The draft has the file’s delimiter, quote and header line and seven fields, one per column (Id … Message), each reading its column by number.
  2. Select the Time field: Type Timestamp, Semantic role Timestamp - the draft already sets both when the header says Time (or Timestamp, Date). Its Capture group is 3, the third column; with a header line the header’s name Time works too.
  3. Level: Semantic role Severity (set from the header Level; rename the field if you like - severity_level - the column stays the same). Message: Semantic role Message. Other header names get no role: set it yourself (a column called Sev is your severity).
  4. The PREVIEW shows each record’s time, severity and message at once. Save.
  5. Make the file use it every time: Use For > Apply to Current File (a .tktail rule beside the file), or under Detection add the file’s name (export-*.csv) to File names.

After a restart the file opens in your profile (the status bar names it), records have their time and severity, and searches such as severity_level = ERROR or severity <= error use the columns. The same steps work for comma, TAB and pipe files, with or without a header line (without one, fields read columns by number).

Which files use a profile

  • Detection in a profile has Extensions (.log), File names (wildcards such as billing*.log), a Content pattern tested on the file’s first lines, and Matching lines: how many of up to 64 first lines must match.
  • A profile that names files (extensions or names) and matches the file - and its content pattern, if it has one - is a strong match. It wins over TKTail’s built-in detection.
  • A profile without file names whose content pattern matches is a weak match. It is used only when the built-in detection finds nothing.
  • A profile with no detection rules is never chosen automatically - only by hand. Templates, the clone and Save as Copy make such profiles; the detection rules are yours to add.
  • Name files narrowly: a profile for .log files whose lines start with a date would also claim an IIS log or any other dated log - when it wins over a confident built-in detection, the Format tooltip says Content detector disagrees and names what the content looks like.
  • Among several matching profiles, the higher priority wins (General), then the file name.

The order TKTail follows for every file:

  1. A format you chose with View As (or --format).
  2. A folder format (.tktail) for the file or its folder - it can name your profile (View As > Set Format for This File / Folder… lists the profiles).
  3. A custom profile that matches.
  4. TKTail’s content detection (high confidence).
  5. File-name hints (low weight).
  6. Plain text.

Record types

A profile can have several record types. They are tried in descending priority (equal priorities in the order listed), and the first that matches wins. At most one type is the fallback, chosen when no other type matches.

A type matches in one of two ways:

  • with a pattern, in a common field (Match in message) or in the whole record ($record);
  • with a condition over the common fields (level = ERROR).

A type can extract its own fields with an Extract pattern from a field or the whole record. Its fields appear only for records of that type. A type’s field with the same id as a common field must be marked Overrides common.

Every record gets a recordType field, and the Summary shows Record type first - so recordType = PAYMENT_FAILED works in search and alert conditions. The Studio’s PIPELINE also says when several types matched one sample (also matched: …), so you can fix priorities.

Fields

What a field has today:

PropertyMeaning
Field idthe name in Fields, the Inspector, search and alert conditions (letters, digits, _ . -)
Capture groupthe named (or numbered) group of the pattern it reads
Typetext, integer, decimal, boolean, timestamp, durationMs (milliseconds, shown as 1.50 s (1500)), enum
Semantic rolewhat the field means (below)
Optionala missing capture is not a problem
Conditionthe field exists only when this is true, for example level = ERROR
Overrides commona record type’s field replaces the common field with the same id
Value meaningsnames for raw values: 200=OK; 404=Not found - shown beside the value and matched by conditions

The raw text is always kept. A value that doesn’t convert (abc for an integer) stays as it is, with a warning; the record is then shown as parsed partially.

Not available (yet): a separate display name, formatting or a presentation priority per field. Field labels in the Summary come from the id: elapsed_ms reads Elapsed ms.

Field states (RECORD > Fields):

  • extracted;
  • missing (optional, not captured);
  • not captured (required - a warning);
  • condition false (omitted from the record);
  • conversion failed (raw value kept).

Conditions use the same small language as structured search and alerts: level = ERROR, status >= 500, user.id exists, message contains timeout. They compare fields - there are no functions, expressions or scripts.

Source ranges. Every field keeps its exact place in the record. That is how clicking a field in the RECORD view, the Inspector or the Studio marks its text in the source, and how the viewer colours it.

Semantic roles

RoleUsed for
timestampthe Summary’s Time, the viewer’s timestamp colour
severitythe Summary’s badge and its colour, the viewer’s level colours, conditions such as severity <= error
messagethe Summary’s MESSAGE block
loggerthe Summary’s title (ERROR · Payments) and Component row
host, process, thread, userSummary rows
correlationthe title (ERROR · payment 9921) - ties records of one operation together
durationthe Summary’s Duration (durationMs values read 1.50 s (1500))
status, method, url, source, destination, stream, exceptionfield meanings for search, alerts and the Summary (Status, Exception)

Roles also let search and alert conditions name a field by its meaning: severity = error finds the severity field, whatever it is called in your format.

Severity names. Semantics (severity names) maps your level words to standard severities, for example WARN=warning; ERR=error. The badge colour and severity <= error conditions then understand them.

The Summary

The RECORD view’s Summary for a custom format:

  • Status badge - a field (usually the level), coloured by severity.
  • Title - the fields listed in Title fields, joined with “ · “. Default: the severity and the logger’s short name.
  • MESSAGE - the field in Message (default: the field with the message role), as its own block.
  • Primary fields - the fields listed, as rows. Default: Time, Duration, Exception, Logger, Thread by role.
  • Details - further fields in a second section.
  • Record type is always the first row.

Long messages are previewed: the Summary shows the beginning, with Show Full Message for the rest. Copy, Copy Message and Export always use the complete value, never the preview.

Samples and Test All

A profile keeps named samples: lines or records from your logs, each with an optional file name (for detection), an Expected type and, for multi-line formats, Expected records (how many records the sample must frame into; empty = any).

  • Add Line / Add Record take one from the log you’re looking at; Duplicate and Remove edit the list. At most 200 samples of up to 64 Ki characters each.
  • Test All runs every sample through the draft:
    • a summary such as 10 samples · 10 detected · 9 classified correctly · 1 fallback · 0 parse errors;
    • PASS / FAIL per sample with the reason, for example expected PAYMENT_FAILED, got RECORD or expected 2 records, got 5.
  • The toolbar’s Use Current Line / Use Current Record / Use Selection / Paste Sample / Load Sample… replace the sample being previewed. Load Sample reads the first 20 lines of a file, decoded as UTF-8.

Samples are saved on this computer beside the profile (<profile>.tktsamples.json), when you Save. They are never part of an exported definition unless you choose Export with Samples - samples come from your logs and may contain customer data, account numbers or tokens, so TKTail asks first.

Import, export and copies

More in the Studio’s toolbar:

  • Import Definition…
    • Opens a *.tktformat.json file as a draft you can check in the preview first; nothing is installed until you Save.
    • A definition from a newer TKTail is refused with a clear message.
    • If its id is already installed, Save asks Replace or Save as Copy.
    • Samples inside the file are added to the sample list.
  • Export Definition… writes the current draft (normalized) as it is - the definition only.
  • Export with Samples… writes the draft plus its samples, after the warning above.
  • Save as Copy saves the draft under a new id (<id>-copy) and name ((copy)), without the original’s detection rules - two profiles claiming the same files would decide by their order, not by you.
  • Copy JSON copies the draft’s definition to the clipboard.

From the command line (details in command-line.md and CLI.md):

tktail formats custom list
tktail formats custom validate billing.tktformat.json
tktail formats custom import billing.tktformat.json            # --replace / --copy when the id exists
tktail formats custom export billing billing.tktformat.json   # --force to overwrite
tktail formats custom export-all C:\Backup\Formats
tktail formats custom remove billing --yes
tktail open C:\Logs\billing-2026-10-05.log --format custom:billing

Profiles are files in %LOCALAPPDATA%\TKTail\Formats (or data\Formats beside TKTail.exe in portable mode). TKTail notices changes when its window becomes active, when the View As > Custom submenu opens, or with Reload Custom Formats. A profile with mistakes is never used: it is listed as not usable and reported in the Problems panel. Safe mode (--safe-mode) loads no profiles.

From an AI assistant. An assistant connected to TKTail (mcp.md) can write a profile for a log - for a delimited log, starting from a draft fitted to it as above - check it and preview it with TKTail. It gives it to you to import - or, only if you allowed Allow AI to save custom formats (Settings > AI Access, or Tools > Allow AI to Save Custom Formats), saves it itself; such a profile is listed here like your own (Output > Application says when one was saved), and the assistant can only replace the version it read - never your later edits. The profile file’s JSON Schema, for editors and tools that check JSON, is tktail-format.schema.json.

Compatibility with alert rules

  • Field schema. General shows the profile’s field schema as a short code, a fingerprint of its field ids and types (aa7c9141 · 9 fields), and says when it changed since saved. tktail formats custom list --output json lists it as fieldSchema, with profileVersion.
  • Saving a version that removes fields. If an alert rule tests a field the new version no longer has, Save asks first and names the fields and the rules (Save Anyway / Cancel). After saving, those rules no longer match records of the format.
  • Application log: component and message. TKTail’s built-in application-log format reads the logger name after the level into its own field, component. An alert rule that tests message on an application log may need adjusting. The Problems panel says so for each such rule.

Versions.

  • schemaVersion is the file format (1). A newer one is refused.
  • Profile version (General) is your own revision number. Change it when you publish a new version; TKTail shows it in formats custom list and never changes it itself.

Built-in formats as a starting point

Only TKTail’s application log can be cloned (Clone Built-In: Application Log). The clone reads:

  • the classic application-log shapes - timestamp, level, an optional dotted component, message (the built-in format also learns other field orders from the file; the clone keeps the timestamp-first one - edit its envelope pattern for another order);
  • records framed like the built-in format: a record starts at a line with a timestamp and a level; stack traces, payloads and text after it belong to it;
  • an ERROR record type with exception / exceptionMessage.

The clone does not cover everything the built-in format does:

  • The built-in message is the whole record body (the exception and stack frames included); the clone’s message is the text on the first line - the exception is in exception, and the whole record is in Source and Copy Current Record.
  • The bracketed variant [timestamp] [LEVEL] [Component] [CONTEXT] message with its context fields, levels in any letter case, and a level that does not follow the timestamp directly (2026-10-05 10:00:00 [worker-1] ERROR ...) stay built-in only. In the clone such lines do not start a record.

Other built-in formats (FIX, IIS …) cannot be cloned; they are not expressible as a profile yet. For delimited files use the Delimited columns template (below) - the built-in CSV, TSV and pipe formats already open such files without a profile. Qlik Script Trace cannot be cloned either: its time blocks could be framed with a record start (a line holding only a time), but counting entries, the fields of a block with one load and recognizing script errors are built-in only.

Current limitations

  • Delimited profiles: a quoted value that contains a line break is not joined into one record (every line is a record), as in the built-in CSV formats.
  • Nested payloads. A JSON object inside a message stays part of the message; reading it as its own fields is planned (FORMAT-4).
  • Settings without effect yet. highlighting classes, nested, rotationHints, encoding and a record type’s Severity class are checked and kept, but have no effect yet. Colours come from roles and types.
  • Multi-line records are limited to 2,000 lines / 4 MB in the viewer, even if the profile allows more.
  • Not available.
    • Test Against Current File (testing a whole open file);
    • samples on the command line;
    • deleting a profile from the window (use tktail formats custom remove).
  • Disabled profiles. A disabled profile appears in View As > Custom as (disabled) but cannot be chosen until enabled again.
  • Keyboard. The Studio’s buttons have mnemonic letters, but the Studio has no keyboard shortcuts of its own.

Troubleshooting

ProblemWhat to check
The profile is not used for a fileDetection: do Extensions / File names match the file? Does the Content pattern match at least Matching lines of the first lines? A profile without file names is used only when TKTail’s own detection finds nothing; a new profile (template, clone, copy) has no detection rules at all. You can always choose it in View As > Custom or with Use For.
A profile takes over logs it was not made for (an IIS log shows Auto (my profile))Its Extensions / Content pattern are too broad - the Format tooltip says Content detector disagrees: …. Narrow its File names, or remove its detection rules and use Use For for the files it is meant for. Profiles made by TKTail before 2026-10-06 from a template or the clone carried .log (and .txt) with a leading-date pattern: check those.
Not a custom format definition / the profile is listed as not usableOpen it in the Studio (or run tktail formats custom validate <file>): DIAGNOSTICS lists every error with its location.
A pattern is invalidThe row under it says what is wrong and at which position (an unmatched (, an unknown group name …). Look-behind is not supported.
A stack-trace line is a record of its ownThe Record start pattern is too broad, or the profile is One line = one record. PIPELINE lists every record of the sample with its lines.
Several log entries are one recordRecord start does not match their first lines; PIPELINE says no line matches the record start or shows the records it found.
The wrong record type is chosenPIPELINE lists the types that matched; raise the priority of the right one or make its pattern stricter. Give samples an Expected type and use Test All.
A field is absentRECORD > Fields shows its state: condition false, missing, not captured (the group did not take part in the match) or conversion failed.
The Summary is emptyGive a field the severity or message role, or set the Summary mapping.
A field marks the wrong textThe capture group’s pattern takes more or less than you expect; SOURCE shows exactly what each group captured.
Save is blockedThe draft has errors (DIAGNOSTICS). The saved version stays in use until the draft is valid.
Alert rules test fields this version removesKeep the fields (or rename them in the rules) - or Save Anyway when you mean it.
A pattern is slowPIPELINE warns when one record takes more than 2 ms: a pattern may backtrack heavily. Anchor it (^) and avoid nested .*.

Inspector

The Inspector is the right panel - a details pane for the active document (the file in the active tab): what Windows knows about the file, how TKTail reads it, whether it is growing, where you are in it, the current record field by field, its alerts and monitoring.

Top of the InspectorFurther down

Show or hide it with View > Inspector (Ctrl+Shift+I); the header buttons collapse it to a rail or hide it, and its width and the open/closed sections are remembered. Selecting a file in the Explorer does not change the Inspector - opening it does.

At the top

  • The file’s icon, name and folder (click the folder to show the file in the Explorer).
  • Badges: LIVE or PAUSED (with the number of new lines while paused), MONITORED when the file is monitored in the background, and a warning such as File missing when the file has disappeared.
  • Quick actions: Pause / Go Live, Find (Ctrl+F), Alert (add an alert for this file) and … with Copy Path, Copy File Name, Go to Line or Offset, Reveal in File Explorer, Open Containing Folder, Open Terminal Here and File Properties.
  • Every value can be copied: right-click it (or select the row and press Ctrl+C) for Copy Value, Copy Name and Copy Name and Value - always the full value, also when it is shortened on screen. Long record values are shown over a few lines.

Sections

Click a section title to open or close it. File, TKTail, Live, Position, Record, Alerts and Dated Series are open by default; Monitoring, Rotation and Engine are closed. A short summary stays visible next to a closed section’s title.

SectionShows
FileType (as Windows names it), size, created and modified time, folder
TKTailEncoding, format and how it was chosen (resolution, configuration, rule, what the content detector says), line endings, number of lines (once the line index is complete), whether the file is indexed, rotation policy, dated rotation (for a file whose name carries a date), monitoring, alert rules
LiveOnly while the file grows or you have unread new lines: LIVE/PAUSED, growth per second, lines per second (complete new lines, the same numbers as the status bar), time of the last append, new lines while paused, growth since opening
Time rangeThe file’s time range: the smallest and largest record time (From, To, Span) and how many records have a time; Reading… / Partial / Not read yet until every record was read (click to read them), Not available for files without record times; Go To Time
PositionLine and column of the caret (the same numbers as the status bar and the RECORD view), byte offset, position (%); for a record of several lines also where it starts; the size of a selection
RecordThe current record (see below)
MonitoringHow changes are found: the Refresh mode (Auto, Event or Poll with its interval - click to change; see Files on network shares), Detection (notifications and / or checks every …), Location (local disk or network share), Connection for a network file (online, offline, reconnecting), the last check and the last change seen; whether the file is monitored in the background (also without a tab), and the last file event (rotation, truncation, missing, network source unavailable / back)
AlertsThe file’s alert rules, unread alerts, time and rule of the last alert, Add Alert…
RotationRotation policy, the file’s identity (volume and file id) and the last rotation
Dated SeriesOnly for a file whose name carries a date: Mode (Auto / On / Off), State and why it is not followed, the Pattern (app_{YYYY-MM-DD}.log; from the name, confirmed by the files in the folder, or chosen), Current, Next file, Previous files kept, Last switch, how the folder is watched - see Rotating dated log files
EngineMemory of the document and its line index, cache size, index coverage - for the curious

Blue values are actions - the same commands as in the menus:

ValueClick to
FolderReveal the file in the Explorer
EncodingChoose an encoding (View > Encoding)
FormatChoose a record format (View > View As); a detected format shows its confidence, the Evidence for it and the Other candidates that were ruled out (and why)
ResolutionExplain Format Resolution: every step that decided (or not) for this file
ConfigurationEdit Local Configuration: the .tktail that chose the format
Indexed (while building)Build the full line index now
RotationFollow the pathname (tail -F) or the original file (tail -f)
Dated rotation, Mode, PatternAuto / On / Off for this file, the reading of its name, previous files kept open (Trial / Pro)
RefreshChoose Auto, Event or Poll and its interval (500 ms to 1 h) for this file
BackgroundTurn background monitoring on or off
AlertsAdd an alert
State (Live)Pause / Go Live
Line, Byte offsetGo to a line or offset (Ctrl+G)

How the format was chosen

RowShows
FormatThe format in use: chosen (View As), configured (a .tktail), detected, high confidence (content detection), no format matched (Plain Text)
ResolutionWhere it came from: View As (this session), File rule, Folder rule, Folder configuration (the folder default), Inherited configuration (a .tktail in a folder above), Profile association (a custom profile that names such files), Auto-detected · high confidence, Previous file of the series (a rotating dated log’s new file whose content says nothing yet), Fallback
Configuration, RuleThe deciding .tktail and its rule (folder default when no rule matched)
Auto detectorWhen something else decided: what the content alone says - agrees, or differs (for example a .tktail says Plain Text, the content looks like a Qlik trace)
Content detectorWhen a custom profile’s detection rules decided but the content clearly looks like another format: that format and differs (for example a profile for .log files claimed an IIS log)
W3C fieldsIIS logs: how many columns, and whether they come from the file’s #Fields directive or the assumed IIS default layout
ConfiguredA configured custom profile that is not installed or disabled - the next step decided instead
Configuration (warning)A .tktail that is not valid and was ignored, or one that changed while a View As choice stays in force

Folder formats explains .tktail files and the order of the steps.

The current record

The record shown is the one the caret is in - in the pane you are working in when the file is split. The status bar, the RECORD view and the Inspector always show the same position and the same record (also while you select text: the caret’s end counts).

  • Structured formats (JSON, logfmt, CSV, syslog, FIX, application logs, …): every field as name - value, nested fields indented, dictionary meanings in grey (for example FIX message types). An ERROR/FATAL level is shown in red. Click a field to mark its exact characters in the log (the caret goes there, as when you pick it in the RECORD view); the field the caret is in is shown selected. A long value is shortened on screen with its length next to it (hover shows it, copy takes all of it); Inspect Record (RECORD) opens the RECORD view with the whole record - Source, Fields and Summary.
  • Plain text: line number, byte range, length, the time TKTail saw the line arrive, and the text itself (wrapped, at most 2,000 characters).

For logs whose entries span several lines (an application log with stack traces or payloads), the record is the whole entry: the caret may be on its first line or on any line after it. Its message includes the lines after the first one, line breaks kept.

Records longer than 1 MB are shown shortened and not split into fields.

Working with values

  • Click a row to select it; Up/Down move the selection, Left/Right close/open its section, Ctrl+C copies the value.
  • Hover a shortened value to see it in full.
  • Right-click a row: Copy Value, Copy Name, Copy Name and Value. For record fields also:
ItemWhat it does
Find This ValueFind the value in this file
Find Records with This FieldFind records that have this field (field exists)
Find Field = ValueFind records where the field has this value (level = ERROR)
Find Value in Folder…Search the contents of the file’s folder for the value (Explorer)
Create Alert for This Value…The alert dialog, prefilled with the value
Create Alert for Field = Value…The alert dialog, prefilled with the field condition

Field searches use the find bar’s Fields mode, so they work for every record format.

Bottom panel

The bottom panel sits below the document area, between the Explorer and the Inspector. It holds tool views that need width rather than height - search results across many files and, step by step, more views (output, problems, alerts, jobs, a terminal).

ActionHow
Show / hideView > Bottom Panel or Ctrl+J, or the x button in the panel’s header
ResizeDrag the line between the document area and the panel; the height is remembered
Maximize / restoreView > Maximize Bottom Panel or the chevron button in the panel’s header - the panel takes the whole central column; the side panels stay as they are
Collapse / expandView > Collapse Bottom Panel or the button left of the chevron (a dash) - the panel folds to its row of tabs and the log gets the space; click a tab (or the button again) to unfold it. Views that refresh by themselves (System) pause while folded; work you started (a search, a terminal) keeps running
Switch viewsClick a tab in the panel’s header, or View > Tool Views. Tabs that do not fit the panel’s width go behind the … button after the last tab - a menu of them; from the keyboard, View > Tool Views lists every view; the active view’s tab always stays visible
Move the focusF6 / Shift+F6 cycle through Explorer, documents, bottom panel and Inspector

Hiding the panel only hides it: whatever runs in it (a search, later a terminal) keeps running, and the panel shows the current state when it comes back. The panel’s visibility, height and last view are remembered; it always reopens at its normal size.

Views

ViewStatus
RecordThe complete record at the caret - one line, or a multiline entry with its stack trace or payload; also lines wider than the screen (below)
Search ResultsThe results of every search - kept as search sessions (below)
Advanced SearchInvestigations: a query over several sources and a time range (below)
OutputWhat TKTail itself is doing - file monitoring events, searches, errors (below)
ProblemsWhat needs your attention now - files that cannot be opened or are missing, invalid alert rules (below)
AlertsThe alert history - every match of your alert rules, newest first (below)
IncidentsWhat your alerts kept when they fired - the trigger and the evidence around it (below)
JobsWork running in the background - searches, exports, line indexing (below)
TerminalA command prompt next to your logs - PowerShell or cmd (below)
SystemHow busy the PC is and what TKTail itself uses (below)
MetricsEvery Windows Performance Counter being collected, and the panel’s own always-on list - see Metrics
Processes, Services, File Activity(planned)

Record

Shows the record the caret is in - the logical log entry, in full. One source line is often one record, but not always: an application log’s ERROR with its stack trace, a JSON payload over several lines or a block of a Qlik trace are one record of several source lines (and a long line wrapped on screen is still one line). The view used to be called LINE; it shows what the entry means, so it is called RECORD. It is also the place for a line much wider than the screen: a one-line JSON document, a FIX message, a record with hundreds of fields.

Open it with View > Tool Views > Record (or right-click the Bottom Panel button on the toolbar); it follows the caret of the file you are working in, and of the pane you are in when the file is split. Alt+Down / Alt+Up (View > Next / Previous Record) move the caret to the next / previous record - past a whole stack trace at once (Records and time).

  • The header tells you which line it is, how many characters and bytes it has and where it is in the file. Lines longer than 1 MB are shown as a part of at most 1 MB around the caret - the header says so - and that part moves along when the caret leaves it.

  • For a record of several lines the header says which source lines it spans and which one the caret is on: Record: lines 2–5 (caret on 4). The last record of the file adds at the end: may still grow - if the file grows, more lines may still join it until the next record starts. A record longer than 2,000 lines / 4 MB is shown in parts: a part of a longer record (record size limit).

  • Format (first in the header) shows how TKTail reads the file: Auto (FIX) when the configuration or detection decided, the name alone when you chose it with View As for this session; the tooltip says why (and which .tktail decided). A click opens the View As menu: a format for this session, Auto, or the Set Format for This File / Folder… items that write a folder format. An event tab shows Format: Windows Event Log (not a choice). From the keyboard: Tab in the RECORD view (the text, the summary or the Fields list) moves to the header buttons, Left / Right between them, Enter, Space or Down opens one, Esc goes back to where you were.

  • Layout (in the header) chooses what you see; your choice is remembered:

    • Source - exactly the characters in the file, shown as the viewer shows them: FIX’s SOH field separators as | (one character for one, so positions and marked fields stay exact), other control characters as symbols. Copy Source copies the real characters, SOH included; Copy Displayed Text copies the | form. For formats whose records span several lines (application logs with stack traces, the MySQL slow log, HL7) Source is the whole record, with the caret’s line marked.
    • Record - the record in the representation View picks (below).
    • Split - Source and Record side by side. Drag the bar between them to change the widths (double-click it for half and half); the widths are remembered. Picking a field or a summary value on the right marks its exact characters on the left and scrolls to them; moving the caret in Source selects the field it is in.
  • View (next to Layout, when the record is shown) chooses how the record is presented. Only what makes sense for the file’s format is offered, and your choice is remembered per format:

    • Text: the readable form (FIX separators as |, as in Source). It is a presentation, not the source.
    • Fields: one row per field, in the order of the record. FIX shows Tag, Field, Value, Meaning - for example 39 OrdStatus 8 Rejected: the original value stays, the meaning is added. JSON shows Path, Type, Value; CSV and IIS show the file’s own columns; syslog, logfmt, CEF and the other log formats show their fields.
    • Summary: what the record means, in a few lines - for IIS GET /api/orders?id=123, a 500 Internal Server Error badge, duration, client, server; for FIX ExecutionReport - Rejected with symbol, side, quantity, price and the session; for syslog severity, program, host and the message; for PostgreSQL the severity, SQLSTATE (with its name, e.g. 23505 unique_violation), message, database and query; also Apache / nginx, the MySQL slow log and JSON / logfmt / CEF records that carry a level and a message. Original values stay visible next to their meaning (843 ms (843), Side 1 Buy); fields that a file does not contain are left out. The record’s message has its own block at the end of the Summary, after the other values (MESSAGE): wrapped, selectable (drag, Ctrl+C), a few lines at first - a long one says how long it is and offers Show Full Message; Show in Source marks exactly the message’s characters, Copy Message copies all of it (never just what is on screen). If a record of a format with messages has none, the Summary says so. Fields always lists every field, whatever the Summary shows. Click a value to put the caret on its exact bytes; right-click for copy, find and alert actions (they use the real field and value, e.g. sc-status = 500). Records without a reliable interpretation get no summary - use Fields.
    • Tree: JSON fields indented by nesting. Pretty: a formatted copy of one JSON record.
    • Auto picks the most useful one for the record at the caret: Summary for IIS, FIX, syslog, PostgreSQL, Apache / nginx, the MySQL slow log and application logs, Fields for CSV and other logs, Tree for JSON lines - and when a record has fields but no reliable summary, Fields; Text only when the record has no fields at all. The RECORD view shows the same record and position as the status bar and the Inspector.

  • In Fields, selecting a field puts the file view’s caret on that field’s exact bytes and marks them (green); moving the caret in the file selects the field it is in. Find field… filters the rows. Right-click a field to copy its value, name, tag, meaning or tag=value, to find the same value / field / field = value (here or in the folder), to create an alert from it, or to show it in the source. Copy in the header copies the source, the readable text, the pretty form or the fields (as TSV or JSON) - always the one you choose.
  • A record that cannot be parsed completely still shows what could be read, with a short note in the header (“Parsed partially: …”); FIX messages with SOH separators are checked: “Check: CheckSum 000 declared, 124 computed”. Source and Text always work.
  • In Source and Text the line is drawn exactly as in the file view, wrapped to the panel’s width (at spaces and punctuation where possible) so you can read it whole - Wrap (the first button in the panel header) switches to one row you scroll sideways, for an exact one-line layout. Colorize (the second button) paints Source and Text with the same syntax colours as the file view (JSON keys and values, log levels and timestamps, FIX tags, XML tags …); it only changes how the text looks - copying and exporting are unaffected. Texts longer than 64 thousand characters are shown without colours, as in the file view. Wrapped rows are still one line: the line number stays the same and copying copies the line, not the rows. The header shows the line, the column of the caret in that line, the size and the format.
  • Select text in the view with the mouse (drag, Shift+click, double-click for a word); in Source and Text it is the same selection as in the file view - the same bytes - so Ctrl+C copies exactly what is in the file. Ctrl+A selects this line or record (not the whole file). Right-click: Copy, Select All, Show in Viewer. In Pretty you select and copy the formatted text. The caret’s position and the current search match are marked; click into the text to put the file view’s caret there; Show in viewer (the eye button) scrolls the file view to the caret.
  • Inspect Record (right-click in the file view) opens this view in Auto.
  • Records longer than 1 MB are shown in Source and Text only. The view does no work while it is hidden.

Search Results

The results of every search - Find in All Open Files, the toolbar’s search box, Advanced Search and folder searches. Each search is kept as its own search session: a new search does not throw away the previous one.

Start a searchSearches
The search box on the right of the toolbar (Ctrl+Shift+F puts the cursor there)depending on its scope: every open source (files and event logs), the Explorer’s folder (contents) or the file names there; Enter starts it - with the find bar’s options (regular expression, match case)
Edit > Find in All Open Files (Ctrl+Shift+F)the same box, the selection (one line) or the find bar’s text filled in; without the toolbar the find bar’s complete query runs at once
Advanced Search (Ctrl+Alt+F)a query, a scope and a time range - see below
Explorer: Search Files… / Search Contents…; tktail folder C:\Logs --search-content "timeout"the folder’s file names / the text inside its files (Advanced Search with that folder as the scope)

The top row shows the sessions (newest first - #17 timeout - all open sources (184), a refinement as #18 within #17 - ERROR (12), a search an AI assistant ran for you as #19 AI · requestId = ABC123 - open sources (7) - see AI integration) and, next to them, the shown search exactly as it ran: its text, regular expression or field condition, match case, scope and time range. Changing an option somewhere else never changes what a session means. The second row says how it went:

StateMeans
Searchingstill running - results appear as they are found; Esc or the header’s Cancel stops it
Completedeverything it was asked to search was searched
Incompletethe results are right but not everything could be searched: a line too complex for the regular expression was skipped, a source closed or changed its format during the search - the reason is named; the count is what was found, never a total
Cancelledyou stopped it (or closed TKTail) - what it had found stays
Failedit could not continue - for example a regular expression too expensive for the data; what it had found stays, marked incomplete
Not runlisted from the last run (only the queries are kept); Run Again runs it

Results appear while the search runs: Source, Line (for open files), Time (the time of the record the match is in, as its format gives it - local time; a time of day stays a time of day), Match (the line around the match) and Path. Click a column header to sort. Double-click or Enter opens the source at the match and highlights it (Ctrl+Enter: in a split). A result whose file was rotated, truncated or replaced since the search is stale: it is not opened (the status bar says so) - run the search again.

An event log’s results show the log’s name, the event (time, level, provider, ID, the message around the match) and the log’s address (eventlog://local/System) instead of a path - there is no line number. Opening one selects the event in its tab. See Windows Event Log.

Select several results with Ctrl+click or Shift+click, or all of them with Ctrl+A; Ctrl+C copies them one per line as path:line: match line. Right-click a result for:

  • Copy Match - exactly the text that matched, and Copy Line - the whole line it is on, both read from the file now (not the shortened text in the list). If the file changed since the search, the status bar says so.
  • Copy Preview (the text shown in the list), Copy Full Path, Copy Path and Line (C:\Logs\app.log:402191, for open files where the line number is known), Copy File Name.
  • Export… (also the header button) saves all results - or the selected ones - as TSV, CSV or JSON Lines with the columns Source, Line, Time, Match, Path and Offset (and Record, the event’s record ID, when there are event results).
  • Reveal in Explorer and Open Containing Folder.

The header’s buttons work on the shown session:

  • Run Again runs exactly its request again as a new session (the old one stays in the list). A search of the last 15 minutes / hour / 24 hours searches the last hour again - from now.

  • Edit Search opens it in the Advanced Search builder (below), to change it and run it as a new session - the original stays as it is.

  • Search Within These Results opens Advanced Search with this session as the scope: the new search checks only these results - the session it makes is a refinement (#18 within #17) and the original stays as it is. Back to the Parent Search goes the other way. A folder search can be refined too (its files are read again, still without opening them; a file replaced since is stale). Only the results a search keeps are checked: if it found more than it keeps (5,000), the refinement is Incomplete and says how many it checked - narrow the first search to refine every match.

  • Close this search (also the x next to the selector).

  • More actions (the arrow at the end of the header) holds the rest: Save Search…, Save Effective Search…, Save Results…, Open Saved Results… and Close All Searches - below. When the panel is narrow, buttons that do not fit move into this menu too.

Up to 10 searches are kept (setting search.sessions); beyond that the oldest finished one is dropped - never one that runs or the one shown. Each keeps up to 5,000 results; the count goes on beyond them (showing the first 5,000). After a restart the queries are listed again, marked Not run - results are not kept unless you save them (below). A refinement is not kept across restarts.

Save the question, save the answer

What it keepsWhere
Saved Searchthe criteria - sources, conditions, time - to run again any timeAdvanced Search’s Preset list
Search sessionone run of criteria and what it foundSearch Results (until closed)
Saved Resultswhat one run found, as it was (complete or not)a .tktresults file you choose
  • Save Search… keeps this session’s criteria as a Saved Search (it asks for a name and an optional description). A search that refines another (#18 within #17) has no criteria of its own to keep: use
  • Save Effective Search… - the criteria of the whole chain combined (#17’s sources and conditions AND #18’s AND #19’s), as one Saved Search. It is offered only when running that one search finds exactly what the chain found. It is not when a search in the chain did not finish, kept fewer results than it found (showing the first 5,000), or tested text on the lines of records an earlier search found by their fields - TKTail says which, and offers to save the results instead.
  • Save Results… writes what this search found to a file: its criteria, how it ended (Incomplete stays incomplete), how many it found and kept, and each result with its time and line - not the logs themselves. Open Saved Results… shows them again as a search session: open, export or search within them while the files are there. A file that was replaced or shortened since is reported when they open, and its results are stale - they never lead to other lines.
  • Saved Searches and saved results may contain paths, server names and search terms; saved results also contain the matching lines’ text. Share them with that in mind.

A typical investigation: Advanced Search over the gateway and IIS logs (level = ERROR OR sc-status >= 500) finds 1,284 matches (#42); Search Within for component contains Payment leaves 37 (#43). Save Effective Search… keeps “Payment failures” for next time; Save Results… keeps “Payment incident 2026-10-07” as evidence.

Quick Search finds text; Advanced Search runs investigations. The find bar (Ctrl+F) finds the next match in the file you look at. Advanced Search (Edit > Advanced Search, Ctrl+Alt+F, or its tab) searches several sources at once, within a time range, with a field condition, and keeps every search as a session in Search Results.

  • Preset - the Saved Searches, by name. Choosing one loads it - in the simple form when it fits there, else in the builder (below); Unsaved search means the search in the panel is not one of them. Save saves the changes into the preset that is loaded (or asks for a name when none is); a * after its name means there are changes not saved yet - loading another preset or Reset then asks first (Save, Discard, Cancel). The arrow next to Save: Save As…, Revert to Saved, Rename…, Duplicate…, Delete…, Import… / Export… (.tktsearch.json files) and Open Saved Searches Folder. Save As, Rename and Duplicate ask for a name and an optional description, which the status line shows when the search is loaded. A Saved Search needs at least one condition - text, a field condition or a time range (a time range alone is enough); finding every record at any time runs, but is not saved. A file-name search is not a Saved Search. Reset empties the panel - all open sources, no condition, any time - and never changes or deletes a Saved Search. Nothing is saved automatically. Saved Searches are files in %LOCALAPPDATA%\TKTail\Searches (the data folder in portable mode); a file TKTail cannot read is listed by Open Saved Searches Folder and left alone.
  • Find: the text - or nothing, to find every record in the time range. Text finds it literally, Regular expression uses TKTail Regex v1, Field condition reads the records’ fields (level = ERROR, sc-status >= 500, Symbol = MSFT) - better than a regular expression over the raw text when the format has the field. Aa: match case.
  • In: the current source (the file or event log you look at), all open sources, the results of the search Search Results shows (Search Within), or a folder’s contents / file names (a folder and Subfolders). A folder’s files are searched without opening them, each in the format TKTail would show it in (its .tktail, your format associations, or detection) - so a field condition and a time range work there too; binary files are skipped. The summary says how many files were searched from how many folders, and names what could not be read (a missing folder, a file another program holds) - the search is then Incomplete.
  • Time: any time, the last 15 minutes / hour / 24 hours (counted back from when the search starts), today, or Between… a From and a To in your local time (2026-10-06 10:00, 2026-10-06, or 10:00 for today). In the builder, a From of last 2 hours or -30m (and no To) is such a relative range. From is included, To is not: [From, To). Each record is placed by its own time as its format gives it - an IIS line by its UTC date and time, an event by its TimeCreated, an application log by the time it writes. Records with only a time of day (a Qlik script trace) or no time cannot be placed in a dated range: they are not found, and the summary counts them. The first time-range search in a large file reads all of it; TKTail notes where the times lie (a small index per open file), so the next time-range searches in that file skip the parts outside the range - the same results, much faster. It starts again when the file is replaced or shown in another format.
  • Search (Enter) checks the query first - a mistake in a regular expression is shown here in full (Invalid regular expression at position 7: missing closing parenthesis), already while you type - and then starts the search; its results appear in Search Results, which gets the keyboard, and it is a job in Jobs. Cancel - or Esc, here or in Search Results - stops it, the same as Cancel in Jobs. Tab / Shift+Tab move between the fields; Ctrl+Alt+F comes back here.

A regular expression that is too expensive for a line is skipped there and counted (the search is then Incomplete); one that keeps hitting the limit is stopped - This regular expression is too expensive for the data searched - and what it had found stays. See Regular expressions.

The builder: several sources, AND / OR

Choose where to search first, then say what must be true there. Builder (next to Search) turns the form into a builder - it starts from what the form held. In the builder the same button reads Simple form and always goes back: when the simple form can show the search (one source, one text or field condition, one time range) it shows it there; when the builder is empty you get an empty form; otherwise - several sources or conditions, a group, file masks, a format filter - TKTail asks first: Save and leave (into the loaded preset, or as a new one), Leave without saving (the simple form shows what it held before the builder) or Cancel. A preset that is saved and unchanged leaves without asking - it stays in the presets. A preset that needs the builder opens in it.

Search in - one row per source (up to 16), each named S1, S2 …; + Source adds one:

  • All open sources - every open file and event log; Any format narrows them to the formats you tick (IIS W3C, Application log, your custom formats, Windows Event Log for event tabs). A file counts in the format it is shown in.
  • One source - an open file or event log (pick it, or type its path).
  • Folder - its files, without opening them: the folder, subfolders on or off, Include and Exclude file masks separated by ; - a name (*.log, u_ex*.log; without a * a part of the name, as in the File Explorer’s filter) or a path below the folder (**\archive\**, 2026\*.log) - and the formats to keep. Each file is read in the format TKTail would show it in (its .tktail, your associations, detection); binary files are skipped. A file that is already open is searched as the open file. Up to 10,000 files per search - more makes it Incomplete: narrow the folders or the masks.
  • Results of a search - the results of an earlier search session (Search Within).

Where - what must be true: all of these or any of these, then the conditions, numbered 1, 2, 3 … (an error names its number: Condition 2: type the text to find). + Condition adds one of:

ConditionMatches
Text / Regular expression (Aa: match case)a line that contains it - tested on each line, so a stack-trace line can match on its own
Field condition (level = ERROR, sc-status >= 500, user exists, user is null; Aa: match case of the value)a record whose field holds it - all lines of the record share its fields
Time range (From, To - To excluded)a record whose own time is in the range
From source (S1, S2 …)what came from that source row - to give each source its own conditions

+ Group adds a group inside: All of or Any of its own conditions (up to 32 conditions and groups, 4 levels deep). Each line is one result, even when several conditions or groups match it. x removes a source, a condition or a group.

Examples:

  • Errors of two folders, archives left out: S1 Folder D:\Logs\App (Include *.log, Exclude **\archive\**), S2 Folder D:\Logs\IIS; Where all of: Field condition level = ERROR.
  • Different conditions per source (the picture): any of - All of (From source S1, level = ERROR, Text worker-3) - All of (From source S2, sc-status >= 500).
  • IIS only: S1 All open sources, formats IIS W3C; Where: sc-status >= 500.
  • Narrow a result: Search Within These Results in Search Results - with the builder on, those results become its one source; add the conditions that narrow them.

The keyboard works throughout: Tab / Shift+Tab go through every row (the list scrolls to the one you are on), Enter in a field searches, Enter or Space on a button presses it (+ Condition, x …). A search that cannot run says why and puts the cursor on the source or condition to fix.

Sequences: one thing, then another, in time

A search finds records that each satisfy the conditions. A sequence finds related records in order: one thing, then - within a delay - another, then another; in one log, or across logs and event logs. The signal is the relationship, not any one record: a request starts, its IIS call fails 10 to 30 seconds later, the payment service logs an ERROR within 10 seconds after that.

In the builder, Find - a sequence: one thing, then another, in time. The conditions you had become step 1, and a step 2 appears (switching back to records finds your conditions as they were).

  • Step 1, Step 2 … (2 to 8 steps): each step reads every source or one of the sources above (S1, S2 …) and has its own conditions - text, regular expressions, field conditions, time ranges, groups - as in Where above. A step is satisfied by one record (or one event).
  • Between the steps: then, after step N: earliest … latest … - how long after the previous step’s item: 10 s, 1.5 s, 500 ms, 2 min, 1 h, 1 min 30 s (a number alone is seconds). Both are included: earliest 10 s, latest 30 s is 10 to 30 seconds later; 0 s and 0 s is at the same time. Latest is at most 1 day.
  • + Step adds a step at the end; the x of a step removes it (two stay).
  • Correlate: by time only - the pattern itself is the answer (no claim that the items belong to one transaction) - or by a key: the items of a sequence must have the same value.
    • Key 1: the key’s name (results show it), and how values compare: exactly, ignoring case, or as numbers (007 = 7).
    • Where the value is, in every step: a field (by its name: requestId, cs-uri-stem), the message, or the line text; taken as the whole value, a regex capture (a named capture: /orders/(?<id>\d+)/ takes 12345 from /api/orders/12345/status), the text after a marker (requestId=), a delimited part, a substring, a path segment or a query parameter. The button at the end normalizes it first: trim, lowercase / uppercase, as a number, or strip a prefix (T-).
    • Per step gives each step its own field and extractor - when the same id has another name in each log. + Key part adds a part (tenant and request id; up to 4).
    • An item without a value for the key never joins a sequence; the summary counts such items.

How sequences are chosen - one answer, never every combination: the step-1 items are taken in time order; each takes the earliest items of the next steps - inside their windows, not used by an earlier sequence - that complete the sequence. An item belongs to one sequence at most and is never two steps of one. Without a key, starts and ends pair in time order (the first start with the first end that fits it).

Times - each item’s own time, as its format gives it: an IIS log’s UTC time, an application log’s local time, an event’s TimeCreated - all on one clock (local times are read with this computer’s time zone). Lines are ordered by their times, never by their place in the file. A time of day without a date (a Qlik script trace) or no time cannot be placed: a step whose sources only have such times is refused (Step 2: its sources have no dated times); otherwise such items are counted and left out - never given a date.

Results: Search Results lists the sequences - a row each with its start, how long it took, its key (requestId=REQ-10003) and its sources (gateway.log → u_ex261007.log → payment.log) - and their members below, numbered by step. Click the arrow (or press Enter, Left / Right) to close or open a sequence; More actions has Expand All Sequences / Collapse All Sequences. A member opens like any result: a file at its line - also a line of an exception’s stack trace - or an event in its tab. The summary counts sequences (12 sequences of 3 steps), never their members, and the work done: first-step items, candidates, comparisons, and what the windows let it skip.

  • Search Within These Sequences keeps the sequences with a member that satisfies the new condition - whole, with their members.
  • Presets, Save Search, Edit Search and Run Again work as for any search; Save Results keeps the sequences with their members; Export writes each member with its sequence and step.
  • Bounds: a step keeps up to 100,000 items; beyond that the search is Incomplete and says which step to narrow (add a time range or a field condition to it). The matching work is bounded too.
  • Not available: “X, and then no Y within 30 s”, repetitions, optional steps.

Output

Output shows what TKTail itself is doing, one channel at a time: Application (start, settings, errors), File Monitoring (a file disappeared, came back, was truncated or replaced by rotation, background monitoring on/off), Search (finished searches with the number of results and the time taken), Alerts (rules added, alert history problems), Export and Shell Integration. Open it with View > Tool Views > Output.

  • Pick the channel in the box at the top left; Debug also shows detailed messages.
  • Warnings are shown in amber, errors in red; the File column shows the file an entry is about (right-click > Open File in TKTail).
  • Copy (Ctrl+C, several lines with Ctrl+A or Shift+click), Copy Message (only the text of the entry), Export… (all or the selected entries as TSV, CSV or JSON Lines), Clear View (hides what is shown so far; nothing is deleted), Open Log File (opens TKTail’s own log in a new tab) and Open Log Folder - in the panel header or on right-click.

Output is not the alert history: alerts are matches of your rules in your files and have their own history. Output never contains file contents, clipboard text or what you searched for.

The log file

Output is also saved to %LOCALAPPDATA%\TKTail\logs\tktail.log (portable mode: data\logs\ beside TKTail.exe), from Info upwards. The file is kept small: when it reaches 1 MB it becomes tktail.1.log and a new one starts; at most 5 files are kept and files older than 14 days are deleted. File paths are written as <path> unless you turn on log.includePaths. Change these with log.level, log.maxFileKB, log.maxFiles and log.maxDays (see tktail settings list).

The file is opened shortly after TKTail starts; what was logged before is written then, and a TKTail closed sooner writes it as it exits - every normal exit keeps its lines. If TKTail is ended abnormally (killed in Task Manager, a crash, a power loss) within the first moments after starting, those first lines can be missing; once the file is open, each line is handed to Windows as it is written. A linked window keeps its log in its own Output view only (the main window writes the file).

Problems

Problems lists what needs attention now. Unlike Output, which is a history, a problem disappears by itself when its cause is gone - a missing file that appears again, settings that can be saved again.

ProblemGoes away when
A file cannot be opened (error)it is opened successfully
A monitored or open file is missing / not accessiblethe file is back or readable again, or you close it
A monitored file cannot be opened in the backgroundit can be opened
An alert rule is not evaluated because its pattern is invalidthe rule is fixed or removed
Settings were ignored at start, or cannot be savedyou dismiss it / saving works again
The chosen data folder cannot be used (TKTail runs with the default one)you dismiss it
The alert history or TKTail’s log file cannot be usedyou dismiss it
  • Errors come first, then warnings, newest first. The same cause is listed once, with a count (“3 times”) if it happens again.
  • Double-click or Enter opens what the problem is about: the file (try again), its folder in Windows Explorer, the settings file (for a line TKTail ignored), Manage Alerts (an alert that is not evaluated) or Settings (the data folder). Right-click for Reveal in Explorer, Copy (Ctrl+C; Ctrl+A selects all), Copy Description, Copy File Path, Export… (TSV, CSV or JSON Lines) and Dismiss (Del); a dismissed problem only comes back if its cause goes away and happens again.
  • The number on the PROBLEMS tab and the N problems item at the right of the status bar show how many there are; clicking the status bar item opens the view. A new problem never takes the focus or switches the panel’s tab.

Alerts

Alerts lists what your alert rules found, newest first - the saved alert history (alerts.jsonl, see Alerts and monitoring), so alerts from earlier sessions are there too. Open it with Tools > Alert History, View > Tool Views > Alerts or Show Alerts in the status bar’s Alerts menu.

  • Time, Rule, File, Matches (several matches found at once count as one alert), Offset (byte position in the file) and State (Unread until you open it or mark it read).
  • Type in the filter box to show only alerts whose rule or file contains the text; Unread only hides the alerts you have seen.
  • Selecting an alert shows its file and the stored preview below the list - only what the alerts.historyPreview setting allowed to be saved (none saves no text at all); TKTail does not read the file for it.
  • Double-click or Enter opens the alert: TKTail finds the very file the alert came from
    • by its identity, also after a rotation renamed it - and never a different file that only has the same name. The caret goes to the match, which is marked; following the end of the file pauses. If the file is gone or was truncated before that position, the status bar says so. Opening an alert marks it read.
  • Right-click for Open, Mark as Read, Mark All as Read, Copy (Ctrl+C: time, rule, path, matches, offset and state, one alert per line; Ctrl+A selects all), Copy Match and Copy Line (the exact text in the file now - TKTail finds the file by its identity as Open does), Copy Preview (the stored preview), Copy Path, Copy Details (every field of the alert), Export… (all or the selected alerts as TSV, CSV or JSON Lines; also the header button) and Reveal in Explorer. The header buttons open, mark all as read and copy.
  • F8 / Shift+F8 (Tools > Next Alert / Previous Alert) jump from the caret to the next or previous alert in the current file, and mark it read.
  • The number on the ALERTS tab is the number of unread alerts in the history. A new alert never opens the panel or takes the focus.
  • With the history switched off (alerts.history off, or safe mode) the view shows the alerts of this session only; they count as read once you look at TKTail.

Incidents

Incidents lists what your alerts kept when they fired, newest first (see Alerts and monitoring). Open it with Tools > Incidents or View > Tool Views > Incidents.

  • Time, Alert, Severity, State (Capturing while TKTail still collects what follows the trigger; Complete, or Partial when some evidence is missing, with how many of its items are complete), Matches (an alert firing again within its cooldown joins the incident), Status (New until acknowledged; pinned) and Trigger (the record that matched, or the counter condition).
  • Type in the filter box to show only incidents whose alert or trigger contains the text; the severity box shows All severities, Warning and above, Error and above or only Critical ones; New only hides the acknowledged ones. Click a column header to sort by it (again: the other way) - Severity puts the most severe first. The severity is written out (Error and Critical also in the attention colour) and is the alert’s when it fired.
  • The selected incident’s details are beside the list: the alert and the version that fired, its condition, the trigger record, each evidence item with its state, reason and window, a preview of what was kept - the records around the trigger (the trigger marked >), the events, each counter’s minimum / average / maximum and a sparkline with the trigger marked ^ - and how the capture went. Select text there and copy it with Ctrl+C.
  • Double-click or Enter opens the trigger record in its file - the very file, found by its identity as an alert opens - and acknowledges the incident. Open Evidence as Log opens what the incident kept, even after the log was rotated or deleted: the records as a .log tab, events and samples as text tabs.
  • Header buttons and right-click: Acknowledge (Acknowledge All), Pin (retention never removes a pinned incident), Export… (the selected incidents, one folder each, into a folder you choose), Copy / Copy Details, Delete… and Clear History… (both ask first; pinned incidents stay unless you choose otherwise; an incident still capturing is kept; exported folders are never touched). The copies Open Evidence as Log makes in the temporary folder are removed a day later (at the next start, unless one is still open).
  • The number on the INCIDENTS tab is the number of new incidents. A new incident never opens the panel or takes the focus; clicking the notification of a counter alert shows its incident.

Terminal

Terminal is a shell in the bottom panel: run git log, Get-Content -Wait, ssh host or wsl tail -f next to the files you are reading. Open it with View > Tool Views > Terminal.

  • It starts the first time you open the view: PowerShell 7 if it is installed, otherwise Windows PowerShell, otherwise Command Prompt - in the folder of the active file (or the Explorer’s folder, or your user folder). Open Terminal Here (right-click a folder or file in the Explorer, its … menu, a document tab, or the Inspector’s …) opens a new terminal in that folder. Command Prompt cannot start in a network folder; it then starts in your user folder and the status bar says so.
  • Everything you type goes to the program - Ctrl+C interrupts it, it does not copy. TKTail keeps only F6 / Shift+F6 (move between panes), Ctrl+J (hide the panel) and Ctrl+Tab (document tabs); Alt+F4 still closes TKTail.
  • Ctrl+V, Ctrl+Shift+V or Shift+Insert pastes. If the text has line breaks and the program does not mark pasted text (bracketed paste), TKTail asks first - each line break would run the text before it. Control characters are removed from pasted text.
  • Scroll back with the mouse wheel, Shift+PgUp / Shift+PgDn or the scroll bar (the last 10,000 lines, kept in memory only); typing returns to the bottom.
  • Select text with the mouse (double-click: a word, a path or a URL; triple-click: a line; Alt+drag: a block) and copy it with Ctrl+Shift+C or right-click > Copy - Ctrl+C stays the program’s interrupt. Select All is on the right-click menu.
  • Ctrl+Shift+F (or right-click > Find…) searches the terminal’s text: Enter goes to the next older match, Shift+Enter to the next newer one, Aa matches case, Esc closes the box. In full-screen programs (less, vim) the wheel scrolls the program.
  • Several terminals (up to 8), each in its own tab above the terminal - PowerShell — Service, CMD — Logs. + after the tabs opens one with the default shell; its arrow (or a right-click on +) lets you pick the shell. Ctrl+Shift+` (from anywhere in TKTail), View > Tool Views > New Terminal and Open Terminal Here always open a new tab. Click a tab or press Ctrl+Shift+PgUp / PgDn to switch; each terminal keeps its own folder, output and scroll position, and keeps running while another one is shown. Drag tabs to reorder them; hover a tab for its shell, process id, start folder and state. The number on the TERMINAL tab says how many there are.
  • The arrow next to + lists everything TKTail found on this PC: the shells, your WSL distributions (they start in the same folder), SSH… (asks for user@host and runs Windows’ own ssh.exe - passwords and host keys are handled by ssh; TKTail saves nothing), your own profiles, and programs that open their own window such as PuTTY. Run as Administrator opens a shell as administrator in a separate window after Windows asks for permission - nothing runs as administrator inside TKTail.
  • Your own profiles are lines in settings.ini (up to 8), for example Git Bash: terminal.custom.0.name=Git Bash, terminal.custom.0.executable=C:\\Program Files\\Git\\bin\\bash.exe (backslashes doubled, as the file stores them), terminal.custom.0.arguments=--login -i, and terminal.custom.0.external=1 for a program that should open in its own window. The executable must be a full path to an .exe or .com file; other entries are ignored.
  • Right-click a tab: New Terminal, New Terminal Here (in that tab’s folder), Rename… (only the tab’s name), Restart Terminal, Close, Close Others, Close All Terminals, Copy Start Folder, Reveal Start Folder in Explorer.
  • When the shell ends, its tab stays (marked exited) with its last screen and the exit code; Enter restarts it in the same folder. x on a tab, a middle-click on it or Ctrl+Shift+W closes that terminal and ends the shell and everything started from it - other terminals are not affected. TKTail asks first only when programs besides the shell are running (one question for Close Others / Close All). Hiding the panel keeps terminals running.
  • Exiting TKTail while terminals run asks first (“2 terminals are running”); tktail app exit from a command line does not ask.
  • Nothing you type or see in the terminal is logged, saved or sent anywhere; after a restart of TKTail the terminal starts fresh.
  • The shell and the number of lines kept come from the settings terminal.profile (auto, pwsh, powershell, cmd) and terminal.scrollback (1,000 to 100,000) in settings.ini (tktail settings list shows them). Choosing the shell in the panel is (planned).

System

System shows how busy this PC is and what TKTail itself uses. Open it with View > Tool Views > System.

  • This PC: CPU (with the last 5 minutes as a small graph), memory in use, commit, the number of logical processors.
  • TKTail: its CPU share and private bytes (both with a 5-minute graph), working set, handles, threads, GDI / USER objects, the open documents and the memory of their caches and line indexes, files monitored in the background, running terminals and jobs.
  • It is updated once a second only while you look at it - on another tab, with the panel hidden, minimised or in the tray it does not sample at all. Before you open it the first time, it does not exist.
  • Copy (Ctrl+C, the header button or right-click) copies the figures as text.

Jobs

Jobs shows work that TKTail does in the background: searches (every search session), exports, and building the line index of a large file. Open it with View > Tool Views > Jobs.

  • Operation, Source (file or folder), Progress (a bar while the share done is known, plus what was found so far), Elapsed and State (Running, Completed, Failed with the reason, Cancelled, Incomplete with the reason). A search that could not search everything shows as Incomplete - its results stay in Search Results.
  • Cancel (Del, the header button or right-click) stops a running search or export - the same as Cancel in Search Results or Advanced Search. Line indexing cannot be cancelled; it ends when you close the file.
  • Copy (Ctrl+C; Ctrl+A selects all) copies the selected jobs, one per line.
  • Clear Completed removes finished jobs; only the 20 most recent finished jobs are kept.
  • The number on the JOBS tab is the number of running jobs. Jobs never open the panel or take the focus. Small files are indexed so quickly that they do not appear at all.

Alerts and monitoring

Field change (2026-10-04): in application logs the logger name after the level is now the field component; message holds only the text after it. An alert that looked for a logger name in message no longer matches - TKTail lists such alerts in Problems when an application log is open or monitored. Change the condition to component.

TKTail can watch files for you - while you look at something else, with the window hidden in the notification area, and also for files you have no tab open for.

Creating an alert

  1. Select the text you want to be told about in a log (for example ERROR or an order id).
  2. Choose Tools > Add Alert… (Ctrl+Shift+A), or right-click > Add Alert for Selection…. In the Explorer, right-click a file > Add Alert….
  3. In the Alert dialog:

SectionFieldMeaning
Name, Severity, EnabledHow the alert is called in notifications and incidents; Info / Warning / Error / Critical; an alert can be kept but switched off
TriggerText in the file: Watch forThe text to look for (filled with your selection)
Regular expression / Match caseHow Watch for is matched - the same regular expressions as Find
Field conditionMatch a parsed field instead of text, e.g. level = ERROR, sc-status >= 500, OrdStatus = Rejected
A performance counterA Windows Performance Counter (Choose… opens the counter picker) over or under a threshold (90, 90 %, 4 GiB), for a number of seconds without a break (0: one sample decides) - needs the Metrics feature of your license
Evidence to keepRecords of the fileThe logical records kept before and after the record that matched (a multi-line entry counts once)
Windows eventsA log (System, Application, a channel such as Microsoft-Windows-PowerShell/Operational, or a saved .evtx), its levels, minutes before and after the trigger
MetricsA Metric Set (Host Basics, …), minutes before and after the trigger - an enabled alert keeps them collected, so their history exists when it fires
BehaviorNotifyEvery match; First match only (until re-armed); At most once per interval; First match, then a summary per interval
Interval (s)For the interval modes
Fires again withinMatches this many seconds after the last one join the same incident instead of starting a new one (0: never)
NotificationActionsWindows notification, tray icon attention, sound, bring TKTail to front
Show matching text in notificationsOff: notifications then name the alert and file but not the log line (privacy)

The line under Evidence to keep says what the alert will keep, in words. The pattern is checked when you press OK; an invalid regular expression is reported and the dialog stays open. A line that makes a pattern hit its complexity limit is skipped for that alert - the other alerts and lines go on.

Only new lines are checked - lines written after the alert exists. A text alert applies to the file it was created for; a counter alert fires once when its condition becomes true and again only after it was false in between (a sample that could not be read never counts either way).

Managing alerts

Tools > Manage Alerts… lists your alerts with their condition, what each keeps and whether it is evaluated (and why not - a disabled alert, a condition TKTail cannot watch live, a missing license feature). Check or uncheck an alert to enable or disable it; Edit… opens the Alert dialog, Delete… removes it (its incidents stay), Incidents shows its incidents, New Metric Alert… adds a counter alert. An alert created from a search (several conditions) keeps its condition as it is; its evidence and behavior can be edited. Every saved change of what an alert means is a new version - an incident names the version that fired.

When an alert fires

Depending on the alert’s actions you get a Windows notification (click it to jump to the line in TKTail), the TKTail icon in the notification area changes to the alert icon, a sound plays, or TKTail comes to the front. The notification’s title names the alert’s severity (“TKTail — Critical: CPU busy”). The status bar shows the number of unread alerts and the highest severity among the new incidents (2 new alerts · Critical; its tooltip has the count of each severity); the tray icon’s tooltip says the same. Nothing opens or takes the focus because an alert is Critical.

Every alert is written to the alert history (alerts.jsonl next to the settings, see Getting started), including the file, position and a short preview (subject to the privacy option above). The size of the history is limited by settings. Rotations of monitored files are recorded there too.

An alert made on a file whose name carries the date (app_2026-10-14.log) watches the whole series: when app_2026-10-15.log is LIVE, the alert watches it, and its incidents name the file the line was really written to - a monitored file follows its series without a tab too (Rotating dated log files).

Browse the history in the Alerts view of the bottom panel (Tools > Alert History, see Bottom panel): filter by rule or file, show unread only, open an alert at its exact position in the right file, mark alerts read. F8 / Shift+F8 go to the next / previous alert in the current file. tktail alerts history (planned).

Incidents

An alert that fires also keeps an incident: the record that matched and, by default, the 10 records before and the 10 after it in the same file - read when the alert fires and kept as they were, so they are still there after the log was rotated, truncated or deleted. A record that grows after the line that matched (a stack trace) is kept whole. Alerts that fire again and again within a minute are one incident: its match count grows instead of a new copy of the evidence being kept for each.

Investigate them in the Incidents view of the bottom panel (Tools > Incidents, see Bottom panel): what fired, each piece of evidence with its state - Complete, or Partial / Unavailable with the reason (the file had fewer records, a counter was collected for less time than asked, an event log no longer holds the start of the window, a log does not exist) - and a preview of what was kept. Acknowledging an incident marks its alert read, and marking alerts read acknowledges their incidents. Export writes an incident as a folder (a README, the kept records as a .log, events and samples as text and CSV, and the machine-readable files) to attach to a ticket.

Incidents are kept in the Incidents folder of the data folder (see Getting started), at most 1,000, 90 days and 512 MB (alerts.incidentMaxCount, alerts.incidentMaxAgeDays, alerts.incidentMaxMB in settings.ini). They follow the alert history’s privacy settings: without a persistent history (alerts.persist=0) no incident is kept, and when the history keeps only the match or no text (alerts.preview) an incident keeps the same and no log records.

Alerts you created with an earlier version moved to the Alerts folder the first time this version started - with the same names, conditions and numbers, and the severity Warning (change it in the alert editor); settings.ini keeps the old rules for an earlier version. An incident keeps the severity its alert had when it fired: making an alert Critical later does not change the incidents it already has. tktail alerts list lists your alerts, their conditions and what each keeps.

Monitoring files in the background

A file with alerts is monitored while its tab is open. To keep monitoring it without a tab (and after restarting TKTail):

  • Explorer: right-click the file > Monitor in Background (Stop Monitoring reverses it), or
  • command line: tktail monitor add C:\Logs\service.log (monitor remove, monitor list).

Closing a tab of a monitored file keeps the file monitored in the background.

A background file is watched the same way as an open one, with the same refresh mode: an alert on a local file fires as the line is written; on a network share in Auto, within about a second while the file is being written and up to ~30 s after a long quiet spell; with Poll, within the chosen interval. To choose the mode, open the file and change Monitoring > Refresh in the Inspector - it is saved with the background source. A background file on a share that cannot be reached is checked again with growing pauses (up to a minute) and continues when the share is back.

Tools > Pause All Monitoring stops all watching (no alerts) until you resume it; the tray icon shows the paused state.

The notification area (tray)

While TKTail is hidden in the notification area, monitoring and alerts go on; the icon shows unread alerts and its menu lists them - see The notification area. To start TKTail there when you sign in: Settings > Startup (Starting with Windows). Retention of the alert history and incidents: Settings > Alerts & Incidents (Settings).

AI integration (MCP)

An AI assistant that supports the Model Context Protocol (MCP) - for example Claude Code - can investigate with TKTail: which logs, event logs and Metrics Views are open, the record you are looking at (already parsed into fields, with its time and its whole multi-line text), the records just before and after it, the records near a time, every record of a request - found with TKTail’s own search, across your open logs and event logs - sequences such as “a request received, then within 10 seconds an error for the same request ID”, your alerts and the evidence their incidents kept, and what CPU, memory and disk did around a time (Trial / Pro: the Metrics TKTail collects for you). The assistant asks TKTail for evidence instead of you copying log text into a chat, and it never reads the files itself.

FreeTrial / Pro
Connect over stdio (the assistant starts TKTail.exe mcp --stdio)yesyes
Connect over HTTP (the assistant connects to the running TKTail - also from another computer)-yes
What is open in TKTail (the Safe Workspace)yesyes
Folders you approve (Extended Investigation)-yes
Metrics (Windows performance counters)-yes

AI access is off until you allow it, and an assistant changes nothing unless you also allow that kind of change: saving format profiles, saving searches and Metric Sets, managing alerts - each its own permission (What AI clients may change).

What the assistant can and cannot see

Can ask forCannot
TKTail’s version, license edition and what it can do nowopen, read or list files, folders or disks - or any file you have not opened in TKTail
the sources open in the main window: file paths, formats, encodings, sizes, the time range of the records read so far; event log channels or .evtx files; Metrics Views and their counterssearch a folder, or a path it names (only what is open in TKTail, and folders you approved)
the current record of the view in front: its lines, time, fields, Summary and text (16 KB by default, at most 64 KB); the selected event; the selected metric series and its latest valuerun commands, a terminal, programs or scripts; change settings, Investigation Roots or files; close or start anything
one record (a whole multi-line entry) by line, position or a reference TKTail gave it; up to 50 records before and after a record, an event or a timecancel or close your searches (only its own)
searches of the open sources - text, regular expression, field conditions (requestId = ABC123), time ranges - and their results, page by page; sequences of evidence in time windows, correlated by a key; your Saved Searches (to list and run)see a linked window’s current record (only the main window answers)
the list of TKTail windows (main and linked) with the sources each showsstart collecting performance counters, or read counters TKTail does not collect
(Trial / Pro) the Metric Sets, the metrics TKTail collects or still keeps, their current values, samples over a period (at most 24 hours, every gap said) and summariesuse a metric in a search or a sequence (a later version)
the formats TKTail knows, raw sample records of an open log, how TKTail chose a log’s format, and a check and preview of a format profile it proposes - with TKTail’s own parserchange a built-in format, a .tktail file or another log’s format
your alerts, their incidents and the evidence each incident kept; a check of an alert it proposesdelete, acknowledge or export incidents
with your permission: save a format profile; save, change or delete Saved Searches and your Metric Sets; create, change, enable, disable or delete alertsanything else - there is no permission for settings, files or programs

Whatever TKTail returns, the assistant may send to its AI service (for most assistants, a cloud model). Logs can contain names, addresses, tokens or customer data: allow access only while you want the assistant to see what you are looking at, and close tabs it should not list.

Extended Investigation: folders you approve

Sometimes the evidence is in a log you have not opened yet. With a Trial or Pro license, Tools > AI Investigation Roots… lists the folders an assistant may investigate beyond your open tabs:

  • Add… chooses a folder; its check box enables or disables it; Label… names it (Production); Remove takes the approval away (the folder itself is untouched); Open Folder shows it in Windows Explorer.
  • Below an enabled folder the assistant can list log files (names, sizes, the format TKTail would use - at most 1,000 at a time), search them with TKTail’s search, and open one as a tab to read its records. It cannot read anything outside those folders: another folder, a path with .., a link (junction or symbolic link) that leads elsewhere, or a folder you disabled is refused.
  • Only you add folders - the assistant can list them, never add one. Each change is written to Output > Application. A file the assistant opened appears as a tab, like your own.

Free uses the Safe Workspace only: open the files in TKTail and the assistant investigates them.

What an assistant can do with it

  • “Explain the error I am on, and what happened just before.” - the current record (the whole stack trace, also when you clicked one of its lines), then the records before and after it.
  • “Find every record of this request.” - a search of all open sources for the request ID (a field condition where the format has the field, the text otherwise), Event Log events included; then the records around any of the results.
  • “What was logged around 14:02?” - the record nearest that time, as Edit > Go To Time finds it. If TKTail has not read the file’s times yet, the assistant can ask it to (as View > Read the File’s Times).
  • “Did a request in payments.log fail downstream within 10 seconds, and did Windows log a warning after it?” - a sequence search: each match is one request with its steps in order, their times and the request ID that ties them.
  • “Why is this log shown as plain text? Write a format for it.” - the assistant reads a sample of the log’s records, writes a profile, and has TKTail validate it and preview it on the log’s own records until every record parses; then gives it to you, or - if you allowed it - saves it.
  • “Watch this log for payment errors.” - with your permissions: a profile, a Saved Search and an alert (Set up monitoring with an assistant).
  • “What happened in the last Payment errors incident?” - the trigger record, the records before and after it, the events and the metric samples the alert kept, each with its state.
  • “What did CPU, memory and disk do in the minute around this error?” - with a Metrics View open (for example Host Basics): minimum, average and maximum around the error’s time, the peak, and whether samples were missing. A reading TKTail could not take is reported as missing - never as zero.

The assistant’s searches appear in Search Results, marked AI (#19 AI · requestId = ABC123 ...) and in Jobs - you see what was searched for you. TKTail keeps the assistant’s five most recent searches; it never closes or cancels yours for it. When a search could not look at everything (a regular expression too complex for some lines, more results than TKTail keeps, a cancelled search) the assistant is told that evidence may be missing.

Turn it on

Settings > AI Access (MCP) has everything in one place - what is allowed now, what your license includes, the permissions, your Investigation Roots, and what to give your AI client:

  1. Allow AI access (MCP) on that page, or Tools > Allow AI Access (MCP) (a check mark shows it is on). Only the main window answers AI clients. TKTail remembers the choice.
  2. Connect your assistant - over stdio (every edition) or HTTP (Trial / Pro), below.
  3. Optional: the permissions under What AI clients may change (below).

The tools, their arguments and bounds: MCP tool reference. Connecting another client, a script or an agent framework: Connect any MCP client.

Connect over stdio

The assistant starts TKTail.exe mcp --stdio itself when it needs it, on the same computer; you do not run it. Copy Command copies the command with the full path, Copy Client Configuration a ready mcpServers entry. Nothing listens on the network.

Claude Code (tested with Claude Code 2.1.177). Save this as a JSON file with the full path of your TKTail.exe (backslashes doubled):

{
  "mcpServers": {
    "tktail": {
      "type": "stdio",
      "command": "C:\\<TKTail folder>\\TKTail.exe",
      "args": ["mcp", "--stdio"]
    }
  }
}

Start Claude Code with it: claude --mcp-config <file>. The same content works as .mcp.json in a project folder. Then ask, for example: “What am I looking at in TKTail? Explain the error in the current record.”

Other MCP clients start a local server from a command and its arguments: TKTail.exe (the full path) with mcp and --stdio. Clients that read an mcpServers JSON entry (for example Claude Desktop’s configuration file) take the entry Copy Client Configuration gives. The server uses the license TKTail would use (beside TKTail.exe, then the data folder); another license file: "args": ["mcp", "--stdio", "--license-file", "C:\\<folder>\\TKTail.license"].

Connect over HTTP

Trial, Pro and Developer licenses. The running TKTail accepts assistants that connect to it - an assistant that does not start programs, one in another tool, or one on another computer (TKTail runs on the server you are diagnosing; the assistant on your desk).

  1. Settings > AI Access: Accept AI clients over HTTP, then Apply. The status line says what really runs: Listening on this computer only (127.0.0.1 and ::1), port 47711. Every request needs the token.

  2. Copy HTTP Client Configuration and put it into your client’s configuration:

    {
      "mcpServers": {
        "tktail": {
          "type": "http",
          "url": "http://127.0.0.1:47711/mcp",
          "headers": {
            "Authorization": "Bearer tkt_..."
          }
        }
      }
    }
    

    Claude Code: save it as a file and start claude --mcp-config <file>. Other clients take the Address and an Authorization: Bearer <token> header.

  3. Ask as usual. The assistant gets exactly what it would over stdio - the same tools, the same permissions.

The token. Every HTTP request needs it - also on this computer. TKTail makes it the first time HTTP is used and keeps it encrypted for your Windows user in the data folder (mcp-http.token). It is a password: whoever has it can use what your permissions allow. Settings never shows it - Copy Token puts it on the clipboard (the status line shows only tkt_ab…yz). Keep configuration files that hold it in your own profile, not in a shared folder or a source repository. Regenerate Token… makes a new one: every client with the old token is refused from its next request; give your clients the new configuration.

Another computer. Listen on: Every network interface (TKTail asks you to confirm) makes TKTail listen on all network interfaces at the Port (47711; another one in Settings if it is taken). The connection is plain HTTP - not encrypted: use it only on a trusted network, through a VPN, or through a tunnel (for example an SSH port forward to the loopback address - then keep This computer only). Windows Firewall may ask whether to allow TKTail. The Address then names this computer (http://<computer>:47711/mcp).

Turn HTTP off with the same check box: TKTail stops listening at once and connected clients are disconnected. Only the main window listens; a linked window never does.

What AI clients may change

Each kind of change is its own permission under Settings > AI Access > What AI clients may change - off by default, independent of each other, and only together with AI access:

PermissionThe assistant mayNever
Allow AI to save custom formatssave a format profile it wrote and checked with TKTail (and use it for an open log until you close it)change a built-in format or a .tktail file
Allow AI to save searches and Metric Setscreate, change and delete Saved Searches and your Metric Setschange a built-in Metric Set
Allow AI to manage alertscreate, change, enable, disable and delete alertsdelete, acknowledge or export incidents
  • Your changes are never overwritten. A change names the version the assistant read; if you edited the alert, search or set since, TKTail refuses it and the assistant reads it again.
  • Only what it may read. A saved search or an alert may name the sources open in TKTail, event log channels, performance counters (alerts), and files or folders below an Investigation Root you approved - nothing else. The evidence an alert keeps follows the same rule.
  • Roots you take back. An alert an assistant made that reads below an Investigation Root is disabled when you remove or disable that root: TKTail says so in Problems, the status bar and Output > Alerts. Edit it in Tools > Manage Alerts to keep it - it is then your own alert.
  • You see every change. It is in Manage Alerts, Saved Searches and the Metric Sets at once, in the status bar and in Output (An AI client created the alert “Payment errors” (#3, version 1).).
  • Turn a permission off the same way; the assistant’s next change is refused.

Without a permission, the assistant can still propose: it checks an alert or a profile with TKTail and gives it to you to create in Manage Alerts or import in the Custom Format Studio.

Which TKTail answered

Every answer says where it comes from - also an error, and also a copy of an answer pasted somewhere else - so an assistant working with several TKTails (or with notes from yesterday) never mixes up whose evidence it is:

  • Node ID - this TKTail’s data folder on this computer: a random ID TKTail makes once. It stays the same when TKTail restarts; another data folder, a portable copy or another computer has its own. It is never derived from your hardware. Settings > AI Access shows it; Copy Node ID copies it.
  • Instance - this run of TKTail (a new one each time TKTail starts) and its window (Window 1, Window 2).
  • Display name (optional) - your name for this TKTail, for example Order Server: Settings > AI Access > Display name. It is a label - two TKTails may have the same one.
  • Only if you choose - the computer name, your Windows user name and its domain: each stays off until you tick it under How AI clients see this TKTail, and applies to the next answer.

The main window answers for every TKTail window; the list of windows names each window’s own instance. An incident says which TKTail run captured it - after a restart, that is not the run answering now; an incident recorded by an earlier TKTail version says its origin is not known.

Set up monitoring with an assistant

On a computer with nothing configured yet - a semicolon-separated export TKTail opens as CSV (semicolon), the time in the third column - an assistant can set up the whole chain. With AI access and the three permissions allowed, ask: “Make a format for the export I have open - the time is in column 3, the level in column 5 - then watch it for ERROR records and alert me with the records around each one.”

  1. A profile from the log. The assistant asks TKTail for a draft fitted to the open log (its delimiter, quote and header and one field per column - the Studio’s Create Format for This Log), gives column 3 the timestamp role, the level column the severity role, the message its role; checks it with TKTail’s validator and previews it on the log’s records; then saves it and uses it for the log. The profile is in the Custom Format Studio; to use it every time the file is opened, the profile can name the file (recipe).
  2. A Saved Search - severity_level = ERROR over that log - in Saved Searches like your own.
  3. An alert with the same condition, a severity, a notification and the evidence to keep (the 5 records before and after) - checked first, then saved; Manage Alerts shows it, marked as made by an AI client.
  4. When an ERROR record arrives, the alert fires and the incident keeps its evidence; the assistant can read it.

All of it is your configuration from then on: after a restart the profile, the Saved Search, the alert and its incidents are there as if you had made them.

What a question looks like

You open payments.log and click line 4 - inside a stack trace. The assistant calls tktail_get_current_context and receives (shortened):

{
  "contextKind": "file",
  "sourceName": "payments.log",
  "formatId": "builtin:applog",
  "position": { "byteOffset": 185, "line": 4, "column": 1 },
  "record": {
    "firstLine": 2, "lineCount": 4, "caretLineInRecord": 3, "state": "complete",
    "time": { "kind": "local", "value": "2026-10-08T10:00:01.250" },
    "summary": { "title": "ERROR · Payment", "status": "ERROR" },
    "fields": [ { "name": "level", "value": "ERROR", "role": "severity" },
                { "name": "exception", "value": "System.InvalidOperationException", "role": "exception" } ],
    "text": "2026-10-08 10:00:01.250 ERROR [Payment] Payment failed for order 42\nSystem.InvalidOperationException: card declined\n   at Payments.Gateway.Charge(Order o)\n   at Payments.Service.Run()",
    "textTruncated": false
  }
}

The record is the whole entry (lines 2-5), not just the clicked line, and its time is the record’s own timestamp - local time, because the log names no time zone.

Turn it off

Tools > Allow AI Access (MCP) again (or the check box in Settings). From then on every tool answers that access is off (and how to allow it) - also for an assistant connected at that moment: its next question is refused. Turning off Accept AI clients over HTTP also closes HTTP connections. Removing an Investigation Root works the same way: the assistant’s next question about that folder is refused. Removing the entry from your AI client’s configuration stops it from connecting at all.

How TKTail keeps it safe

  • Your consent: nothing is answered until you allow AI access; every kind of change and every Investigation Root is a separate permission you give.
  • Only what you opened (the Safe Workspace), plus folders you approved (Extended Investigation): never a path the assistant invents, never .. or a link out of an approved folder - also not through a saved search or an alert.
  • No system access: no commands, programs, terminal, services, registry or settings; no file written except through TKTail’s own stores (profiles, Saved Searches, Metric Sets, alerts) when you allowed it.
  • Bounded: every answer has limits (text per record, records per call, results per page - listed in the tool reference); long results come page by page; what was cut is marked.
  • One owner: the main window answers; a linked window never does.
  • Your names stay yours: answers name this TKTail by random IDs; the computer name and your Windows account are sent only if you tick them in Settings, and never written to TKTail’s log.
  • HTTP: off by default, Trial / Pro only, a token on every request, this computer only unless you choose the network; requests from web pages are refused.
  • Recorded: every answer is listed in Output > Application (which tool, how it ended - never the content).

What TKTail records

Output > Application (and the TKTail log file) gets one line per answer - which tool, how it ended, how many bytes and how long it took, for example AI client (MCP): tktail_get_current_context - answered (1815 bytes, 0.2 ms) - never what was sent. Over HTTP also when TKTail starts or stops listening (MCP over HTTP listening on http://127.0.0.1:47711/mcp (this computer only)) and every refused request with its address and reason (AI client over HTTP (127.0.0.1): request - HTTP 401 unauthorized) - never the token. The stdio server writes a few diagnostic lines to its error output, which AI clients keep in their own logs (Claude Code lists them as “Server stderr”).

Troubleshooting

The assistant (or its client) saysWhat to do
No TKTail window is runningStart TKTail and open the logs; the server then answers from that window. Without a window it can only say so (it never starts TKTail).
AI access to the TKTail window is offTools > Allow AI Access (MCP) in the main window.
The TKTail window did not answer in timeTKTail was busy for more than 10 seconds (for example a modal operation); ask again.
Two searches are running in TKTailTKTail runs two searches at a time; the assistant waits instead of stopping yours - ask again when one has finished.
The reference was made before the file changedThe log was rotated, truncated or replaced since the assistant got that record. Ask it to search again or to use the current record.
TKTail has not read this file’s record times yetLet the assistant ask TKTail to read them, or use View > Read the File’s Times yourself.
Folders are outside the Safe WorkspaceOpen the files in TKTail first, or approve the folder as an Investigation Root (Trial / Pro).
Saving format profiles / searches / managing alerts is off for AI clientsAllow that kind of change in Settings > AI Access, or create it yourself from what the assistant proposes.
The alert / Saved Search / profile changed since it was read (conflict)You (or another client) edited it. The assistant reads it again - your changes are never overwritten.
An alert made by an AI client was disabledOne of the Investigation Roots it reads was removed or disabled. Approve the root again, or edit the alert in Manage Alerts to keep it as yours.
Extended Investigation / Metrics / HTTP is included with Trial and Pro licensesUse stdio and what is open in TKTail, or a Trial / Pro license.
The path is outside the Investigation RootsThe file or folder is not below a folder you approved (or that folder is disabled).
TKTail does not collect or keep this metricOpen the Metric Set or a Metrics View in TKTail (View > Metrics…); the assistant never starts collection itself.
A TKTail window runs, but it is an older versionUse the same TKTail version for the window and the MCP server.
contextKind noneNothing is focused, or the view in front has no current record. Click into a log, an event or a series.
HTTP: connection refusedAccept AI clients over HTTP is off, not applied, or TKTail is not running; the AI Access page shows the state. A client on another computer needs Every network interface (and the firewall to allow TKTail).
HTTP 401 / unauthorizedThe token is missing or old (it was regenerated). Copy HTTP Client Configuration again.
Settings: Not listening: port 47711 is already in useAnother program uses the port: choose another Port and Apply, and update the client’s address.
HTTP 403The client sent a host name or a web page origin TKTail does not accept: use the Address Settings shows (127.0.0.1 on this computer).
HTTP answers take tens of milliseconds (at times seconds) on this computer onlySecurity software that inspects HTTP - also on this computer’s own addresses - holds requests before TKTail gets them (measured: about 12 ms each). TKTail waits long enough for a request; answers are not lost.
HTTP 404 with a sessionTKTail restarted, the token was regenerated or the session was idle 30 minutes: the client starts a new session (most do by reconnecting).

TKTail talks to the TKTail running for your Windows user - one per user, as for opening files from Explorer. The protocol details, limits and errors are in the developer reference (docs/MCP.md).

Connect any MCP client

This page is for people who connect TKTail to an AI client, an agent framework or their own script - and for the model on the other side. It lists what a client needs to know; AI integration is the user’s view, the MCP tool reference the exact tools, and the developer reference (docs/MCP.md) every detail.

Connection

stdioStreamable HTTP
Who starts whatthe client starts TKTail.exe mcp --stdiothe client connects to the running TKTail
Editionevery editionTrial, Pro, Developer
Turned on bythe user: Allow AI accessthe user: Allow AI access + Accept AI clients over HTTP
Addressstandard input / output, one JSON-RPC message per linePOST http://127.0.0.1:47711/mcp (port and network bind are the user’s settings)
Authenticationyour Windows user (the per-user pipe)Authorization: Bearer <token> on every request - also on this computer
ConfigurationSettings > AI Access > Copy Client ConfigurationSettings > AI Access > Copy HTTP Client Configuration

Protocol revisions: 2026-07-28 (stateless: _meta io.modelcontextprotocol/protocolVersion and io.modelcontextprotocol/clientCapabilities on every request) and 2025-11-25, 2025-06-18, 2025-03-26, 2024-11-05 (an initialize handshake). Capabilities: tools only - no resources, prompts or sampling.

HTTP specifics:

  • Content-Type: application/json; Accept must include application/json (application/json, text/event-stream is fine). Replies are single JSON objects - TKTail opens no event stream (GET is 405).
  • One message per POST; notifications are answered with 202, batches are refused.
  • Handshake revisions: initialize returns Mcp-Session-Id; send it with every later request and DELETE /mcp with it to end the session. 404 means the session is gone (TKTail restarted, the token was regenerated, or 30 idle minutes) - initialize again.
  • 2026-07-28: send MCP-Protocol-Version, Mcp-Method and, for tools/call, Mcp-Name - they must equal the body (400 otherwise).
  • 401: the token is missing or replaced; 403: a Host other than a loopback name (when TKTail listens on this computer only) or a browser Origin; 503: more than 8 connections at once.

First calls

  1. tktail_status - the edition and what the license allows (license, features), whether a TKTail window answers (connection), the investigation scope (investigationScope: safeWorkspace or safeWorkspace+extended), the tool names and the limits of the answers.
  2. tktail_list_sources - the open logs, event logs and Metrics Views, each with a sourceId.
  3. tktail_get_current_context - what the user is looking at.

Source ids (src-...) and evidence references are valid while that TKTail runs: list again after a restart; pass references back unchanged.

Permissions

Every refusal is a tool result with isError: true and structuredContent.error {category, message} - the message says what the user can do. A client should tell the user, not retry:

CategoryMeaning
access_offthe user has not allowed AI access
capability_unavailablethe license does not include it (Extended Investigation, Metrics, HTTP)
not_alloweda change whose permission is off - Allow AI to save custom formats, to save searches and Metric Sets, to manage alerts
scope_not_alloweda path that is not open in TKTail and not below an Investigation Root the user approved
conflictthe alert, Saved Search, Metric Set or profile changed since it was read - read it again

The full list is in docs/MCP.md “Tool errors”. Writing tools are annotated readOnlyHint: false; ask the user before calling one, and validate first (tktail_validate_format, tktail_validate_alert - they need no permission and write nothing).

What TKTail reads and writes

ObjectShapeCheck it with
Format profilethe profile file’s JSON - JSON Schema, docs/CUSTOM_FORMATS.mdtktail_validate_format, tktail_preview_format
Searcha SearchDefinition: sources + predicate (text, regex, fields, time), optionally a sequence - docs/SEARCH.md “Schema”tktail_search (it says what ran in definition)
Metric Setname, metrics: {object, counter, instance} in English, as tktail_list_metrics shows themtktail_save_metric_set refuses an unknown counter
Alertthe alert file’s JSON - name, severity, condition (a search definition), trigger, actions, capture - docs/ALERTS.md; tktail_get_alert shows a saved one as alerttktail_validate_alert
EvidenceevidenceRef objects from records, results and contexts; incidents and their evidence pagestktail_get_record, tktail_get_occurrence_evidence

The authoritative check is always TKTail’s own: the JSON Schema helps an editor or a generator, the validation tools also check patterns, conditions and references.

Paging and partial results

  • Long lists come in pages: offset / maxResults (or limit), nextOffset, hasMore; metric history with nextFrom. Every answer stays within 256 KiB of structured content.
  • Cut values say so (truncated, the original length). A search that could not look at everything has evidenceMayBeMissing: true and its state (incomplete, cancelled, failed) with the reason - report it, never present such a result as complete.
  • An incident’s evidence item has its own state (complete, partial, failed) and reason.

Recipes

Explain the current error: tktail_get_current_context -> tktail_get_records_around (anchor current) -> tktail_search for its request id over {"kind":"open"}.

A profile for a delimited log (needs Allow AI to save custom formats to save):

  1. tktail_new_format_draft with sourceId and template: "delimited" - a draft fitted to the log: its delimiter, quote, header and one field per column (columns lists them, 1-based).
  2. Give columns their meaning in definition.fields: "role": "timestamp" and "type": "timestamp" on the time column, "role": "severity", "role": "message"; rename ids freely ("severity_level").
  3. tktail_validate_format, then tktail_preview_format with the sourceId until every record parses.
  4. tktail_save_format with applyToSourceId; to have the file use it after a restart, put its file name in definition.fileMatch.names before saving (["export-*.csv"]).

Watch it (needs Allow AI to save searches and Metric Sets and Allow AI to manage alerts):

  1. tktail_save_search - name, definition {"sources":[{"kind":"source","path":"<sourceId>"}], "predicate":{"all":[{"field":{"name":"severity_level","op":"eq","value":"ERROR"}}]}}.
  2. tktail_validate_alert with alert {"name":"Export errors","severity":"error","condition":<the same definition>,"trigger":{"kind":"everyMatch"},"actions":["notify"],"capture":{"items":[{"kind":"file", "recordsBefore":5,"recordsAfter":5}]}} - then tktail_save_alert with the same alert.
  3. Later: tktail_list_alert_occurrences, tktail_get_alert_occurrence, tktail_get_occurrence_evidence.

To change a saved one, read it (tktail_get_alert, tktail_get_saved_search, tktail_get_metric_set) and pass its version as expectedVersion (a Metric Set: its contentId as expectedContent).

Rules for agents

  • Read what is there before writing; never invent paths - use tktail_list_sources, and with Extended Investigation tktail_list_investigation_roots / tktail_discover_files.
  • Ask the user before any change; on not_allowed say which permission the user would turn on.
  • Quote evidence with its source and position; say when results were partial.
  • Name the TKTail it came from by the answer’s own source - nodeId (this TKTail’s data folder) and instanceId (this run) - never by an earlier call: a restart is a new run, another computer another node. displayName, nodeName and instanceName are labels, not keys; an incident’s origin is the run that captured it, which may not be the one answering (Which TKTail answered).
  • TKTail has no tool for commands, programs, settings, files outside its stores or Investigation Roots - do not look for one.

TKTail publishes no llms.txt: an MCP client learns TKTail from the server itself (tools/list - every tool with its description and input schema - and the instructions of initialize), and people from this Help.

MCP tool reference

Every tool an AI client sees when it connects to TKTail (TKTail.exe mcp --stdio). What they are for, how to turn AI access on and what an assistant can and cannot reach: AI integration (MCP). Tools only read, except those marked changes data - each kind needs its own permission (What AI clients may change). Every answer, an error too, starts with source: the TKTail that produced it - its node and run (Which TKTail answered).

43 tools.

Status and sources

tktail_status

Call this first. Tells which TKTail you are connected to and what it can do now: version and build, whether a TKTail window answers (its open logs and current context are available) or this is a standalone process with no window, the instance and its role, the license edition and its capabilities, whether Windows Event Log and Metrics are available, how many sources are open, and the size limits of the answers; broker: which TKTail carries answers (the main window for its group) and over which transport. Every answer of every tool starts with source: the TKTail that produced it (nodeId, instanceId). Read-only.

read-only

No arguments.

tktail_list_instances

Lists the windows of this TKTail: the main window (Primary - the one whose state the other tools report) and its linked windows, each with its own source (its node and run - not the main window’s), its number, title, the sources it shows and the one in front. Linked windows’ current context is not available yet. Read-only.

read-only

No arguments.

tktail_list_sources

Lists the investigation sources open in the TKTail window: log files, Windows Event Logs (channels or saved .evtx files) and Metrics Views (Windows Performance Counters). Each has a sourceId (valid while this TKTail runs), its kind, a display name, semantic capabilities (records, text search, structured fields, semantic time, live, metric samples) and kind-specific metadata - for a file its path, format, encoding, size, the time range of its records as far as already read and how a rotation is followed (rotation: same-name, or a dated series - app_2026-10-14.log then app_2026-10-15.log as one log: its pattern, the LIVE file and the one it moved from, whether this file is a previous one kept open); for an event log its channel or file and its ingestion (LIVE health and lag, rows evicted by retention, events skipped to stay current, gaps in the source, the newest gap markers - known gaps are evidence); for metrics the counters (English names - language-independent), aliases and the interval. No file or event contents. Read-only.

read-only

ArgumentTypeRequiredBoundsDescription
kindsarrayOnly these kinds (default: all).
limitinteger1..500At most this many sources (default 200).

tktail_get_current_context

Retrieves the evidence the user is focused on in the TKTail window right now - what they are looking at. For a log file: the source, the caret position (line, column, byte offset) and the whole logical record containing it (a multi-line entry such as a stack trace is one record, also when the caret is on a continuation line): its line range, semantic timestamp, severity, parsed fields with their roles, Summary, text and an evidenceRef. For a Windows Event Log: the selected event’s channel, provider, event ID, level, time, process / thread, message and evidenceRef. For a Metrics View: the selected series (English counter name, alias, unit, latest value and quality), the cursor time or selected range. Returns contextKind “none” with a reason when nothing is focused or no TKTail window runs. Next: tktail_get_records_around (what happened before / after), tktail_search (other records with the same request ID). Text and fields are bounded (maxTextBytes, maxFields, maxFieldBytes); what was cut is marked truncated. Read-only.

read-only

ArgumentTypeRequiredBoundsDescription
maxTextBytesinteger0..65536The record’s text, at most this many UTF-8 bytes (default 16384; 0: no text).
maxFieldsinteger0..256At most this many parsed fields (default 64).
maxFieldBytesinteger64..8192Each field value, at most this many UTF-8 bytes (default 2048).

tktail_open_source

Opens a file below an Investigation Root as a TKTail source (a tab the user sees) and returns its sourceId - then its records, records around a line or a time, and searches work as for any open source. Only below an enabled root (the path is checked in its final form: “..”, other spellings and links that lead out are refused - scope_not_allowed), never a binary file, never a folder. An open file answers with its sourceId (alreadyOpen).

read-only

ArgumentTypeRequiredBoundsDescription
pathstringyesAn absolute file path from tktail_discover_files.

tktail_get_source_sample

A bounded raw sample of an open log file: its logical records as the format in force frames them (a multi-line entry is one record; Plain Text: one line each), each with its line number, line count, byte offset and raw text - for understanding a log’s layout or writing a format profile for it. from: start (default) or end; or line: N. records 1-200 (20), maxRecordBytes 64-16384 (4096), maxBytes 1024-65536 (16384) in all; truncated / reachedStart / reachedEnd say what is missing. Open sources only. Read-only.

read-only

ArgumentTypeRequiredBoundsDescription
sourceIdstringyesAn open log file (tktail_list_sources).
fromstringstart / end
lineinteger1..
recordsinteger1..200
maxRecordBytesinteger64..16384
maxBytesinteger1024..65536

Records

tktail_get_record

Retrieves one logical record (one log entry - a multi-line entry such as an exception with its stack trace is one record) or one event, with its line range, semantic time, severity, parsed fields, Summary and bounded text - read exactly as TKTail’s RECORD pane reads it. Name it by an evidenceRef (from the current context, a search result or another record), or by a sourceId with a line, a byteOffset (files) or a recordId (events). A line inside a record returns the whole record and says which of its lines was asked for (lineInRecord). A reference made before the file was rotated, truncated or replaced is refused as stale_source - never resolved into other bytes. Only sources open in TKTail. Read-only.

read-only

ArgumentTypeRequiredBoundsDescription
evidenceRefobjectA record or event reference exactly as TKTail returned it (current context, a search result, another record) - pass it back unchanged.
sourceIdstringAn open source (tktail_list_sources), with line, byteOffset or recordId.
lineinteger1..A 1-based line of a file: the record containing it.
byteOffsetinteger0..A byte position in a file: the record containing it.
recordIdinteger0..An event’s EventRecordID (event log sources).
maxTextBytesinteger0..65536The record’s text, at most this many UTF-8 bytes (default 16384).
maxFieldsinteger0..256At most this many parsed fields (default 64).
maxFieldBytesinteger64..8192Each field value, at most this many UTF-8 bytes (default 2048).

tktail_get_records_around

Retrieves the logical records before and after an anchor - what happened just before and after an error - in the order they are in the source (never re-sorted by time; each record has its own semantic time). The anchor is the user’s current record (the default), an evidenceRef (a search result, a record), or a sourceId with a line, byteOffset, recordId or time. With a time, the record nearest that time (as TKTail’s Go To Time finds it, out-of-order times included) is the anchor; when TKTail has read only part of the file’s times, the answer says so (nearestScope “indexedPart”) - “indexTimes”: true reads the rest in the background. Each record is compact: evidenceRef, lines, time, severity, title, a few fields and a bounded text (use tktail_get_record for all of one record). With beforeSeconds / afterSeconds (0-3600): the records whose time is within that window of the anchor’s (an undated record between is kept; the anchor must have a date and time), at most before / after (default 50) per side - window.completeBefore / completeAfter say whether the window’s edge was reached. Bounded: at most 50 per side and the response budget; returnedBefore / returnedAfter, reachedStart / reachedEnd and truncated say what came back. Read-only.

read-only

ArgumentTypeRequiredBoundsDescription
anchorstringcurrentThe record the user is on (the default when no other anchor is given).
evidenceRefobjectA record or event reference exactly as TKTail returned it (current context, a search result, another record) - pass it back unchanged.
sourceIdstringAn open source, with one of line, byteOffset, recordId or time.
lineinteger1..
byteOffsetinteger0..
recordIdinteger0..
timestring“2026-10-06T04:49:10” (wall clock, as most logs write it) or with “Z” / an offset (an instant).
beforeinteger0..50Records before the anchor (default 5).
afterinteger0..50Records after the anchor (default 5).
beforeSecondsinteger0..3600A time window: the records up to this many seconds before the anchor’s time.
afterSecondsinteger0..3600… and after it.
maxTextBytesinteger0..8192Each record’s text, at most this many UTF-8 bytes (default 512).
maxFieldsinteger0..64Fields per record (default 8).
maxFieldBytesinteger64..2048Each field value, at most this many UTF-8 bytes (default 256).
indexTimesbooleanWith time: let TKTail read the file’s remaining record times in the background (default false).

Search

Searches the sources open in TKTail with a TKTail search definition - the model of TKTail’s Advanced Search, not a query language: “sources” ({“kind”:“open”} = every open file and event log; {“kind”:“source”,“path”:“<sourceId>”} = one open source; {“kind”:“session”,“session”:N} = the results of an earlier search) and a “predicate”: {“all”:[…]} / {“any”:[…]} of {“text”:“timeout”} (literal; “case”:true matches case), {“regex”:“conn(ection)? refused”} (tktail-regex-1: PCRE2 with Unicode, bounded), {“field”:{“name”:“requestId”,“op”:“eq”,“value”:“ABC123”}} (op: exists eq ne contains startsWith endsWith gt ge lt le missing isNull isNotNull; “case”:true), {“time”:{“from”:“2026-10-06T04:00:00”,“to”:“2026-10-06T05:00:00”}} (wall clock; “Z” for UTC) or {“time”:{“last”:3600}}. Prefer a field condition when the format has the field (level, requestId, sc-status) - text or regex for free text. SEQUENCES (ordered relationships in time - X, then within a window Y): add “sequence”:{“steps”:[{“sources”:[0],“predicate”:{“all”:[…]}},{“sources”:[1],“predicate”:{…},“window”:{“after”:“previous”,“earliestMs”:0,“latestMs”:10000}}],“correlation”:[{“name”:“requestId”,“compare”:“exact”,“steps”:[{“input”:“field”,“field”:“requestId”},{“input”:“message”,“extract”:“after”,“text”:“requestId=”}]}],“policy”:“earliest”} - 2 to 8 steps; a step’s sources are indexes of “sources” (none: all); windows are inclusive delays after the previous step’s member (latest at most one day); correlation (optional, up to 4 key parts) maps each step’s value: input field / message / line, extract whole / regex (“pattern” + “group”: a named capture) / after (“text”) / delimited / substring / pathSegment / queryParam, normalize trim / lower / upper / removePrefix / number; compare exact / ignoreCase / number. Such a search returns “sequences”: each with start, end, durationMs, correlation values and its members in step order (evidenceRef, time, preview) - plus counts of anchors, candidates, comparisons, undated and missingKey items. Starts a search and waits up to waitMs (default 2000) for it: state, counts and the first results, each with an evidenceRef for tktail_get_record / tktail_get_records_around. Still running: tktail_get_search, page with tktail_get_search_results. evidenceMayBeMissing is true unless the search completed with every result stored - incomplete, failed and cancelled searches say why. Folders and paths not open in TKTail are refused (the Safe Workspace) - with Extended Investigation a {“kind”:“folder”,“path”:…} below an Investigation Root is searched (links not followed); open a single file first with tktail_open_source. Read-only; the search is listed in TKTail’s Search Results, marked AI.

read-only

ArgumentTypeRequiredBoundsDescription
definitionobjectyesA TKTail search definition: {“sources”:[{“kind”:“open”}],“predicate”:{…}} (schemaVersion and regexDialect may be omitted).
waitMsinteger0..5000Wait up to this long for the search to finish (default 2000).
maxResultsinteger0..100Results in this answer (default 20; 0: none).
withFieldsbooleanEach file result with its record’s severity and first fields (default false).

Without searchId: the searches TKTail keeps - the user’s and AI clients’ - newest first, one line each. With searchId: its state (running, completed, incomplete, cancelled, failed), whether evidence may be missing and why, counts (matches found, results stored, sources, records scanned), progress; waitMs waits up to 5 s for a running search; maxResults > 0 adds a page of results. Read-only.

read-only

ArgumentTypeRequiredBoundsDescription
searchIdinteger1..
waitMsinteger0..5000Wait up to this long for a running search (default 0).
maxResultsinteger0..100Results to include (default 0).
offsetinteger0..
withFieldsboolean

tktail_get_search_results

One page of a search’s results (maxResults, default 20, at most 100) from offset - for a sequence search whole sequences (start, end, durationMs, correlation, members in step order), otherwise per result its source, the logical record and the line that matched (files: recordStart, line, the match’s bytes; events: record ID, event ID, level, provider), its semantic time, a bounded preview and an evidenceRef - pass it to tktail_get_record or tktail_get_records_around. withFields adds each record’s severity and first fields. nextOffset / hasMore page on; a result whose file changed since the search is stale (no evidenceRef). Read-only.

read-only

ArgumentTypeRequiredBoundsDescription
searchIdintegeryes1..
offsetinteger0..Default 0.
maxResultsinteger1..100Default 20.
withFieldsboolean

Stops a running search an AI client started - the same as Cancel in TKTail’s Jobs; the results found so far stay, the state says cancelled. The user’s own searches cannot be cancelled here.

read-only

ArgumentTypeRequiredBoundsDescription
searchIdintegeryes1..

tktail_list_saved_searches

Lists the user’s Saved Searches - named, versioned search definitions (sequences included): id, name, description, version, what they look for and where, and whether an AI client may run them (a folder search is outside the Safe Workspace). Run one with tktail_run_saved_search; see its definition with tktail_get_saved_search. Read-only.

read-only

ArgumentTypeRequiredBoundsDescription
limitinteger1..500Default 100.

One Saved Search with its definition - TKTail’s search definition JSON, the form tktail_search takes (adapt it and search, or run it as is with tktail_run_saved_search) and its version (the expectedVersion of a change with tktail_save_search). Read-only.

read-only

ArgumentTypeRequiredBoundsDescription
idstringyes

Runs a Saved Search as a new search of the open sources - a copy of its current version (the search remembers which Saved Search and version it came from; editing the Saved Search later changes nothing here). Then as tktail_search: state, counts, the first results with evidenceRefs. Read-only.

read-only

ArgumentTypeRequiredBoundsDescription
idstringyes
waitMsinteger0..5000Default 2000.
maxResultsinteger0..100Default 20.
withFieldsboolean

Saves a search definition as a Saved Search (name, description, definition - what tktail_search takes), or changes one (savedSearchId with expectedVersion = the version you read; a newer version is refused: conflict). Only when the user allowed it (Settings > AI Access > Allow AI to save searches and Metric Sets). Its sources must last: open sources ({“kind”:“open”} or a sourceId - kept as the file’s path), files and folders below an approved Investigation Root - never a search session. Returns savedSearchId and version; an alert can then use the same condition.

changes data - needs its own permission

ArgumentTypeRequiredBoundsDescription
definitionobjectyes
namestringyesat most 100 characters
descriptionstring
savedSearchIdstring
expectedVersioninteger1..

Deletes a Saved Search (savedSearchId, expectedVersion = the version you read). Needs Allow AI to save searches and Metric Sets. Alerts made from it keep their own copy of the condition. Ask the user first.

changes data - needs its own permission

ArgumentTypeRequiredBoundsDescription
savedSearchIdstringyes
expectedVersionintegeryes1..

Alerts and incidents

tktail_list_alerts

Lists the user’s alerts (TKTail watches files and Windows performance counters for them): alertId, alertNumber, name, enabled, kind (file / metric), severity, version (every saved change of meaning is a new version), the condition and the evidence it keeps in words, whether it is evaluated now (and why not), and its incidents (total, new = unacknowledged, the latest). Investigate an incident with tktail_list_alert_occurrences / tktail_get_alert_occurrence. Read-only; alerts change through tktail_save_alert and its siblings, only when the user allowed AI clients to manage alerts.

read-only

ArgumentTypeRequiredBoundsDescription
limitinteger1..500Default 100.

tktail_get_alert

One alert with its definition: the condition as TKTail’s search definition JSON (the form tktail_search takes), the evidence capture policy, the behavior (intervalMs, cooldownMs - triggers within the cooldown join one incident), a metric alert’s live status (conditionTrue: true / false / unknown - an invalid sample is never a value - and the observed value) and its 10 latest incidents. “alert” is the whole definition in the form tktail_validate_alert / tktail_save_alert take (its version is the expectedVersion of a change); madeByAi says an AI client saved it. Read-only.

read-only

ArgumentTypeRequiredBoundsDescription
alertIdstring
alertNumberinteger0..

tktail_list_alert_occurrences

The incident history, newest first: each time an alert fired, the occurrence it kept - occurrenceId, the alert, the version that fired, severity, state (capturing: evidence after the trigger still being collected; complete; partial: some evidence is missing, with the reason; failed), triggeredAt (UTC), matchCount (a storm is one incident), acknowledged, pinned, the trigger text, how many evidence items and how many complete. Filters: alertId / alertNumber (a deleted alert’s incidents stay), from / to (UTC, triggered within), states, severities or minSeverity (info < warning < error < critical; “error” = error and critical), newOnly, text (in the alert name or trigger). Severity is the alert’s when the incident fired (a later edit does not change it). origin: the TKTail node and run that captured it (after a restart not the run answering; unavailable for incidents of an earlier TKTail). Paged: offset, limit (1-100, default 20), total, nextOffset. Listing reads no evidence. Read-only.

read-only

ArgumentTypeRequiredBoundsDescription
alertIdstring
alertNumberinteger0..
fromstringUTC: “2026-10-09T10:00:00Z”.
tostring
statesarray
severitiesarray
minSeverityinfo / warning / error / criticalThis severity and higher.
newOnlyboolean
textstring
offsetinteger0..
limitinteger1..100

tktail_get_alert_occurrence

One incident: the alert and the version that fired with its condition as it was then (definition JSON), the trigger - the record that matched (its text, semantic time, the match’s character ranges, source file, format, encoding) or a metric condition with the observed value and the samples it was decided on - each evidence item (file records, Event Log events, metric samples) with its state, the reason when not complete, its window, counts and notes (rotation, truncation), the capture’s diagnostics and its origin (the node and run that captured it). Read the kept evidence with tktail_get_occurrence_evidence. Evidence is what the user’s alert asked for - TKTail captured it when the alert fired, it is not re-read. Read-only.

read-only

ArgumentTypeRequiredBoundsDescription
occurrenceIdstringyes
maxTextBytesinteger256..16384The trigger record’s text, default 4096.

tktail_get_occurrence_evidence

A page of what one evidence item of an incident kept, in order: records (rel: position relative to the trigger record, -2 = two before it; the trigger marked; time, text, generation: 1 the trigger’s file, 2.. files read after a rotation or in a dated series’ next file, 0 the series’ previous file), events (recordId, time, level, eventId, provider, message) or samples (metric index and label, time UTC, value only when valid, quality), and notes (a generation’s note names its file’s path when it is another file). Paged: item (1-based, default 1), offset, limit (1-200, default 50), maxTextBytes per text (256-16384, default 4096); total, nextOffset. Read-only.

read-only

ArgumentTypeRequiredBoundsDescription
occurrenceIdstringyes
iteminteger1..16
offsetinteger0..
limitinteger1..200
maxTextBytesinteger256..16384

tktail_validate_alert

Checks a proposed alert exactly as saving it would - the definition, the search condition, the sources and evidence it names (open sources, metrics, event log channels, files and folders below an approved Investigation Root - nothing else), the limits, the license (a Performance Counter alert needs Metrics) - and saves nothing. Use it before tktail_save_alert, also when saving is not allowed. alert: the alert file’s JSON as tktail_get_alert shows it in “alert” - name, severity (info / warning / error / critical), condition (a search definition as tktail_search takes: sources + predicate; a metric alert: sources [{kind metric, metric {object, counter, instance}}] and predicate {all:[{metric:{source:0, op gt/ge/lt/le, value, aggregate latest/avg/min/max, windowMs, forMs}}]}), trigger {kind everyMatch / firstMatch / oncePerInterval / aggregate, intervalMs, cooldownMs}, actions (notify, tray, sound, foreground), detail (matchingText / ruleNameOnly), capture {items: [{kind file, recordsBefore, recordsAfter, beforeMs, afterMs, path (omit: the trigger’s file)}, {kind eventLog, path channel, beforeMs, afterMs}, {kind metrics, set builtin:host, beforeMs, afterMs}]}; omitted members take defaults. Returns valid, problem, whether the live runtime would evaluate it (notEvaluatedBecause), the normalized alert.

read-only

ArgumentTypeRequiredBoundsDescription
alertobjectyesThe proposed alert definition (JSON).

tktail_save_alert

Creates an alert, or changes one (alertId or alertNumber, with expectedVersion = the version you read - a version the user changed since is refused: conflict). Only when the user allowed it (Settings > AI Access > Allow AI to manage alerts; otherwise not_allowed). Checked as tktail_validate_alert: sources and evidence only from what TKTail may read for AI clients. The alert is saved as the user’s alerts are (Manage Alerts shows it at once), marked as made by an AI client; one that needs an Investigation Root is disabled when the user removes that root. Returns alertId, alertNumber, version, whether it is evaluated. Ask the user before saving.

changes data - needs its own permission

ArgumentTypeRequiredBoundsDescription
alertobjectyes
alertIdstring
alertNumberinteger1..
expectedVersioninteger1..Changing an alert: the version you read.

tktail_set_alert_enabled

Enables or disables an alert (alertId or alertNumber, expectedVersion = the version you read). Needs Allow AI to manage alerts. Disabling stops it at once; its incidents stay.

changes data - needs its own permission

ArgumentTypeRequiredBoundsDescription
alertIdstring
alertNumberinteger1..
enabledbooleanyes
expectedVersionintegeryes1..

tktail_delete_alert

Deletes an alert (alertId or alertNumber, expectedVersion = the version you read). Needs Allow AI to manage alerts. Its incidents and the alert history stay. Ask the user first.

changes data - needs its own permission

ArgumentTypeRequiredBoundsDescription
alertIdstring
alertNumberinteger1..
expectedVersionintegeryes1..

Metrics

tktail_list_metrics

Lists every metric TKTail collects or still keeps history of (Windows performance counters the user’s Metrics Views and alerts collect): metricId, canonical English name, alias, unit, state (collecting at intervalMs, or stopped - history kept, no current value), the latest sample (time UTC, quality, value only when valid), stale, the retained history span and the Metrics Views showing it. Use a metricId with tktail_get_metric_current / _history / _summary. Read-only.

read-only

No arguments.

tktail_get_metric_current

A metric’s latest sample: time (UTC and this machine’s local time), quality (Valid, Warmup, Missing, Denied, Error) and the value with its unit - value is null unless the sample is Valid (never a zero for a missing reading). isCurrent is true only when TKTail collects it now, the sample is valid and not stale; a stopped metric says so. Read-only.

read-only

ArgumentTypeRequiredBoundsDescription
metricIdstringyesFrom tktail_list_metrics.

tktail_get_metric_history

A metric’s kept samples in an interval, oldest first: each {t: UTC time, v: value} - v null with q (quality) when the sample has no value; afterGap / processRestarted mark discontinuities. No interpolation: gaps (noSamples, processRestarted, noValue) are listed explicitly. The interval: from (+ to, default now), lastSeconds (default 300), or around {time, seconds} - times like “2026-10-09T10:00:00” (this machine’s wall clock, as logs write it) or with “Z” / an offset; at most 24 hours. Bounded: maxSamples (default 300, at most 2000) - truncated / nextFrom page on; for long intervals prefer tktail_get_metric_summary. historyStartsAt says when TKTail’s kept history begins (retention). Read-only.

read-only

ArgumentTypeRequiredBoundsDescription
metricIdstringyesFrom tktail_list_metrics.
fromstringInterval start: “2026-10-09T10:00:00” (local wall clock) or with Z / an offset.
tostringInterval end (default now); only with from.
lastSecondsinteger1..86400The last N seconds (default 300).
aroundobject{“time”:“2026-10-09T10:00:15”,“seconds”:60}: N seconds on each side of a time (an error’s).
maxSamplesinteger1..2000Default 300.

tktail_get_metric_summary

Summarizes up to 16 metrics over one interval - what CPU, memory and disk did around an error: per metric min / avg / max (raw and formatted with the unit), first / last / delta, the peak and low with their times, valid samples and samples without a value (warmup, missing, denied, error), gaps and gap seconds, and historyStartsAt when the kept history begins later than the interval. Only valid samples count - nothing is assumed for gaps. metricIds: the metrics (default: every metric TKTail keeps, at most 16). The interval as tktail_get_metric_history. Read-only.

read-only

ArgumentTypeRequiredBoundsDescription
metricIdsarrayat most 16 itemsFrom tktail_list_metrics (default: all kept, at most 16).
fromstring
tostring
lastSecondsinteger1..86400
aroundobject

tktail_list_metric_sets

Lists the Metric Sets TKTail offers - named groups of Windows performance counters: the built-in ones (Host Basics, System Pressure, Process Diagnostics, Disk & I/O, Network) and the user’s own. Each with its id, name, description, how many metrics, its binding (none; a process or an instance chosen when the user applies it), how many of its metrics TKTail collects now and how many Metrics Views show it. TKTail collects only what the user opened - an AI client reads, it never starts collection. Read-only.

read-only

No arguments.

tktail_get_metric_set

One Metric Set with its metrics: each metric’s metricId and canonical English name (object \ counter, instance) - the identity; the alias and this Windows’s localized name are display only - its unit (unit: “%”, “bytes”, “bytes/s”, “/s”, “s” or “count”; unitKind the same as a word) and whether TKTail collects it now. Read-only.

read-only

ArgumentTypeRequiredBoundsDescription
idstringyesA Metric Set id from tktail_list_metric_sets (“builtin:host”, “set-…”).

tktail_save_metric_set

Saves a Metric Set of the user’s (name, description, metrics: 1-64 definitions {object, counter, instance} in English as tktail_list_metrics shows them), or changes one (metricSetId with expectedContent = its contentId as you read it; built-in sets never change). Needs Allow AI to save searches and Metric Sets, and the Metrics feature (Trial / Pro). A set is what to observe - never samples; alerts and Metrics Views use it.

changes data - needs its own permission

ArgumentTypeRequiredBoundsDescription
namestringyesat most 64 characters
descriptionstring
metricsarrayyesat most 64 items
metricSetIdstring
expectedContentstring

tktail_delete_metric_set

Deletes a Metric Set of the user’s (metricSetId, expectedContent = its contentId as you read it). Needs Allow AI to save searches and Metric Sets. Built-in sets cannot be deleted. Ask the user first.

changes data - needs its own permission

ArgumentTypeRequiredBoundsDescription
metricSetIdstringyes
expectedContentstringyes

Formats

tktail_list_formats

Lists the log formats TKTail knows - favorite (and favoriteOrder) marks the user’s favorites: the built-in ones (formatId “builtin:<key>” - JSON Lines, IIS W3C, application logs, syslog, CSV, …) with their category, family, what works for them (fields, structured search, multi-line records, live) and file extensions; and the user-defined format profiles (“custom:<id>”) with enabled, usable, state, profileVersion, framing, record types, field count and error / warning counts. kind: builtin, custom or all (default). Read-only.

read-only

ArgumentTypeRequiredBoundsDescription
kindstringbuiltin / custom / all

tktail_get_format

One format by formatId. Built-in: its description, capabilities, extensions and notes - immutable (a user-defined profile can be made from a sample). User-defined: its state and diagnostics, field ids and field-schema fingerprint, the profile regex dialect, and its whole definition (the JSON TKTail stores - the form tktail_validate_format and tktail_preview_format take). usedBy: the open sources it is in force for. Read-only.

read-only

ArgumentTypeRequiredBoundsDescription
formatIdstringyes“builtin:<key>” or “custom:<id>” from tktail_list_formats.

tktail_detect_format

How TKTail decides a log’s format, with the actual detector. For an open source (sourceId): the format in force and how it was chosen (View As, a .tktail rule, a profile’s file association, detected, fallback), what detection alone would choose, conflicts, the resolution chain, and the detector’s candidates with confidence (0-100, level) and evidence - or why each was rejected. For your own text (sample: {text, fileName}): what TKTail would use for such a file (content and file name only). Both list the user-defined profiles whose file name or content rules claim it; with a draft definition, whether its fileMatch would. Read-only.

read-only

ArgumentTypeRequiredBoundsDescription
sourceIdstring
sampleobject
definitionobjectOptional: a draft format profile whose fileMatch to test.

tktail_preview_format

Runs a format over sample records with TKTail’s actual pipeline and shows the result per record: for a profile (a draft definition, or an installed custom:<id>) the Custom Format Studio’s preview - framing into records, outcome (match, partial, noMatch), record type (and the candidates with explain or when ambiguous), fallback, every field (id, raw, parsed, type, role, state extracted / missing / notCaptured / conditionFalse / conversionFailed, note), the Summary, issues and slow records; for a built-in (builtin:<key>) the viewer’s framing, parse and Summary. Plus totals and the definition’s diagnostics. The sample: an open source’s records (sourceId, from / line) or your own text (sample: {text, fileName}). maxRecords 1-50 (10), maxFields 1-64 (24), maxFieldBytes 64-2048 (256). Nothing is saved or applied. Read-only.

read-only

ArgumentTypeRequiredBoundsDescription
definitionobjectA draft format profile (JSON).
formatIdstringAn installed format: builtin:<key> or custom:<id>.
sourceIdstring
fromstringstart / end
lineinteger1..
sampleobject
maxRecordsinteger1..50
maxFieldsinteger1..64
maxFieldBytesinteger64..2048
explainbooleanList every record type’s candidate result.

tktail_new_format_draft

Returns a valid starting definition for a user-defined format profile. With sourceId (an open log): from that log’s detected format - a delimited log (CSV comma / semicolon, TAB, pipe) gives its own separator, quoting, header and one field per column (columns numbered from 1, in “columns”), so a profile only gives the columns their meaning (role timestamp / severity / message / correlation …, type) - one parser, nothing re-implemented. Otherwise from a template: lineBased (one record per line: timestamp, level, message), multiline (records start with a timestamp; following lines such as stack traces belong to them; the default), cloneAppLog (TKTail’s built-in application-log shape, declaratively - built-in formats themselves are immutable) or delimited (CSV / TSV / ‘;’ / ‘|’ columns: framing kind delimited with delimiter, quote, escape doubled / backslash / none, header; fields read columns by number - group 1 is the first column - or by header name). id (3-64: a lowercase letter, then a-z 0-9 . _ -) and name are optional. Nothing is saved: you keep and edit the JSON - envelope.pattern (ECMAScript with (?<name>…) groups), fields (id, group, type text / integer / decimal / boolean / timestamp / durationMs / enum, role timestamp / severity / message / logger / thread / correlation / duration / …, values), recordTypes (match / extract, fallback), framing (line / multiline with recordStart / delimited with delimiter), fileMatch (extensions, names, content) - then check it with tktail_validate_format and tktail_preview_format against the log’s own records.

read-only

ArgumentTypeRequiredBoundsDescription
templatestringlineBased / multiline / cloneAppLog / delimited
idstring
namestringat most 100 characters
sourceIdstringAn open log the draft starts from (its detected format).

tktail_validate_format

Validates a user-defined format profile (a JSON definition: id, name, fileMatch, framing, envelope pattern, fields, recordTypes, severity, presentation - docs CUSTOM_FORMATS) with TKTail’s own parser and compiler: schema, ids and references, field types and roles, predicates and every regex (the profile dialect: ECMAScript with (?<name>…) groups, bounded as in the Custom Format Studio). Returns valid, diagnostics (severity, path such as recordTypes[1].match.pattern, message, position in the pattern), the field ids and schema fingerprint, and whether a profile with that id is installed (its version). Nothing is saved. Read-only.

read-only

ArgumentTypeRequiredBoundsDescription
definitionobjectyesThe format profile JSON.

tktail_save_format

Saves a user-defined format profile into TKTail’s Custom Formats - only when the user allowed AI clients to save formats (Tools > Allow AI to Save Custom Formats; otherwise not_allowed - the user can import the draft in the Custom Format Studio instead). Validate and preview it first: a definition with errors is refused and nothing is written. A new id is saved as version 1; to replace an installed profile pass replacesVersion = its current profileVersion (tktail_get_format) - if it changed since, the save is refused (conflict), never overwritten. TKTail chooses where it is stored; built-in formats are never changed. applyToSourceId puts it in force for that open log (as View As, for this session). Returns the formatId, the new profileVersion, whether the field schema changed (removedFields) and warnings. favorite: true also lists it first among the user’s favorite formats - only when the user asked for that. Ask the user before saving.

changes data - needs its own permission

ArgumentTypeRequiredBoundsDescription
definitionobjectyesThe format profile JSON (validated again before writing).
replacesVersioninteger1..Replacing an installed profile: its current profileVersion.
applyToSourceIdstringAn open log file to use the saved profile for (View As, this session).
favoritebooleanMark it as a favorite format - only when the user asked.

Extended Investigation

tktail_list_investigation_roots

Extended Investigation: the folders the user approved for AI investigation beyond what is open in TKTail (Investigation Roots - only the user adds or enables them, in TKTail: Tools > AI Investigation Roots…). Each with its rootId, path, label, enabled and whether it is usable now. extendedInvestigation.available is false without the license capability (Trial and Pro include it) - then only the Safe Workspace (what is open) is searched. Below a usable root: tktail_discover_files, tktail_search with {“kind”:“folder”,“path”:…}, tktail_open_source. Read-only.

read-only

No arguments.

tktail_discover_files

Lists the files below an Investigation Root (or a folder below it) that match file masks - as a folder search would take them - each with its path, relative path, size, modified time (UTC), the format TKTail would read it as, binary (skipped by searches; not openable) and its sourceId when it is open. Links (junctions, symbolic links) are never followed or listed. Bounded: maxFiles 1-1000 (200), at most 5,000 folders listed and 10 s; truncated / incomplete / limitReason (maxFiles, maxDirectories, time) say what is missing. include / exclude: “.log;u_ex.log”, “**\archive**”; recursive (default true); probe false skips the format probe. Read-only.

read-only

ArgumentTypeRequiredBoundsDescription
rootIdstringyesFrom tktail_list_investigation_roots.
folderstringAn absolute folder below that root (default: the root).
includestring
excludestring
recursiveboolean
maxFilesinteger1..1000
probeboolean

Linked windows

One investigation often needs more than one screen: the gateway log on one monitor, the payment service on another, the System event log on a third. Linked windows are additional TKTail windows that belong to the same TKTail - each one a window of its own that you can put on any monitor, maximize and arrange independently. Linked windows need a Trial or Pro license (without one, the commands are marked (Pro) and explain this when chosen).

TKTail still runs as one TKTail: opening a file from Windows Explorer, a shortcut or the command line goes to the main window, as before. A linked window opens only when you ask for one.

Opening a linked window

  • File > New Linked Window… (Ctrl+Shift+N) asks what the new window should open:

    • Empty window - open files there later;
    • Current source - the tab you are looking at (the default; TKTail remembers your last choice);
    • All open sources, or Choose sources - pick several tabs.

    Start at the same positions opens paused tabs at the same place (and with the same wrap setting) - convenient for continuing an analysis on another monitor. If the file changed meanwhile (rotated or rewritten), the window goes to the record nearest the time you were at instead of a byte position that no longer means the same thing, and says so.

  • Drag a tab out of the window, or right-click it > Move to New Window - the tab moves into a new linked window (below).

  • Right-click a tab > Open a Copy in New Window - the same source, at its position, in a new linked window; the tab stays here too.

  • From the command line: tktail --new-window (an empty linked window) or tktail open app.log --new-window.

A linked window shows its number in the title bar - payment.log — D:\Logs — TKTail [Window 2] - so you can tell the windows apart on a shared screen. The main window has no number.

Each window has its own tabs, splits, carets, LIVE / paused state and searches. The same file can be open in several windows; each follows it on its own (rotation included). File > Linked Windows in the main window lists the linked windows and brings one to the front.

Move a tab to another window

  • Tear it out: drag the tab outside the TKTail window and release it - a new linked window opens where you dropped it (on that monitor, sized for its display scaling) with only that tab.
  • Drop it on another TKTail window: that window shows where it will go - between its tabs, the middle of a pane, or an edge for a new split - and the tab moves there.
  • Without dragging: right-click the tab > Move to New Window, or Move to Window > Main Window / Window 2 / … (it goes to that window’s active pane). Layout > Move Tab to New Window moves the active tab.

It works in every direction - from the main window to a linked one, back, and between linked windows. The tab moves: it appears in the other window and then closes here. What it showed comes along - for a log the position (the same file: the same place; a file rotated or rewritten since: the record nearest the time it showed, and the status bar says so), LIVE / PAUSED, word wrap and the find text; for an event log its history and filter, LIVE / PAUSED and - when paused - the selected event; for a Metrics View its metrics, colours, names, lanes and the Metric Set it came from (still marked changed if it was), LIVE / PAUSED and the time range. The other window opens the source itself: an event log is read again there, and a Metrics View shows the history that window has collected - the samples do not travel.

If the other window cannot take the tab - it is closing, the file cannot be opened there - the tab stays where it was and the status bar says why. If it answers too slowly, TKTail asks it what became of the tab: moved after all - it closes here; not moved - it stays here (and the other window will not open it later). Only a window that stops answering altogether can leave the tab in both windows, and the status bar says so - the tab is never lost. A window whose last tab moved away stays open, empty.

When TKTail starts again it reopens the main window’s workspace (When TKTail starts again); linked windows are not reopened.

Without Trial or Pro, a tab dragged outside the window stays where it was (the status bar explains that new windows are Linked Windows); everything within one window - reordering, moving between panes, splitting and merging - works with every license.

What stays with the main window

Some things exist once, however many windows are open: alert rules and notifications, background monitoring, the alert history, the notification-area (tray) icon, the Jump List and the application log file belong to the main window. In a linked window:

  • Monitor in Background hands the file to the main window’s monitoring.
  • Add Alert offers to open the file in the main window, where alert rules run.
  • The METRICS panel’s own list of counters is collected by the main window; a linked window’s panel says so, and Open in Metrics View shows those counters there (Metrics).
  • AI integration (MCP) talks to the main window only: Tools > Allow AI Access is a main-window command, and an AI assistant sees the main window’s sources and current record; of a linked window it sees only the title and the names of its sources (AI integration).
  • Alerts watch the files the main window has open and the files under background monitoring - a file that is open only in a linked window is not watched by alert rules (monitor it in the background to have it watched).
  • Minimize puts the window on the taskbar (there is no tray icon to hide it in); closing it simply closes that window (it asks only if something would be lost, such as a running terminal).

Settings, favorites, recent files, Saved Searches and custom formats are shared: a change made in any window is kept, also when several windows save at the same time. A Saved Search changed in another window is not overwritten unseen - saving tells you to revert to that version or to save yours under another name.

Exiting the main window

When you exit the main window while linked windows are open, TKTail asks:

  • Close Linked Windows closes them too (each closes as if you had closed it; one that does not close within a few seconds is listed again with Wait, Force Close and Leave Running - TKTail never hangs on exit).
  • Leave Them Running - they keep their files and positions; the lowest-numbered one becomes the main window (alerts, background monitoring and the tray icon move there).
  • Remember my choice - File > When Exiting with Linked Windows changes it later (general.linkedWindowsOnExit: ask, close, leave).

Minimizing or hiding the main window to the notification area is not exiting - linked windows are not affected.

If the main window stops

If the main window ends unexpectedly, the linked windows keep running with their files and positions - the evidence you were looking at stays on screen. The linked window with the lowest number becomes the main window within a second or two; the others connect to it. Until then, File > Linked Windows says no main window now.

Licenses

Every window uses the same license: a window started from the main window finds the same license file (and gets the same --license-file, if TKTail was started with one). See License.

Settings

Tools > Settings… (Ctrl+,) opens the Settings window. It is also in the notification-area menu (Settings…), in the taskbar Jump List (Settings) and on the command line (tktail settings). Every way opens the same window; when it is already open, it comes to the front.

  • The categories are on the left. Search settings above them finds an option on any page - type tray, retention, MCP, font - and lists every match with its page.
  • Changes are kept in the window until you choose OK (apply and close) or Apply (apply and keep the window open). Cancel discards what you changed since the last Apply.
  • A value that is not accepted - a number out of its range, text where a number belongs - is marked in red under it, and OK / Apply say what to correct; nothing is saved until it is right.
  • Most changes work at once. Options marked Applies when TKTail starts again take effect at the next start; after Apply the window lists which ones. Options under New views apply to the files and views you open afterwards - View menu toggles change the tab in front.
  • Restore Defaults… resets the values of the page you are on (after a confirmation); nothing is saved until OK or Apply, and Windows entries (autostart, Explorer) are not changed by it.
  • Help (or F1) opens this page.

Settings are saved in settings.ini in TKTail’s data folder. The Startup and Windows Integration pages show and change Windows itself (your user’s startup entry, Explorer menu, shortcuts) - they are not stored in settings.ini.

With linked windows open, Settings opens in the main window and its changes reach every window. In safe mode (--safe-mode) changes apply to that session only and are not saved.

General

OptionWhat it changesDefault
Reuse the running TKTail for files opened from Explorer or the command lineOff: every start opens a separate TKTail. Next start.On
Restore the window size and position at startNext start.On
Reopen the workspace at startThe tabs, splits and positions of the main window come back (When TKTail starts again).On
Closing the windowAsk every time / minimize to the notification area / exit TKTail (Closing the window).Ask every time
Exiting while linked windows are openAsk / close them / leave them running (Linked windows).Ask every time
Always show the TKTail icon in the notification areaOtherwise the icon shows while TKTail is hidden there, monitors files in the background or has unread alerts.On
Minimizing hides TKTail in the notification areaOff
ThemeFollow Windows / Light / Dark (also View > Theme).Follow Windows
Viewer fontAny installed font; empty: Cascadia Mono, then Consolas.empty
Font size6-48 pt (also Ctrl+Plus / Ctrl+Minus / Ctrl+0).10 pt
Line spacing0.8-3.0 times the font’s own spacing.1.0
Show the license owner’s name next to the editionThe license badge and the status bar.On

Startup

Whether and how TKTail starts when you sign in to Windows - read from Windows each time the page opens, see Windows integration.

OptionWhat it changesDefault
Start TKTail when I sign in to WindowsAdds (or removes) TKTail in your user’s startup programs. No administrator rights.Off
StartWith the window shown / minimized / hidden in the notification area.Hidden in the notification area
RepairShown when the entry starts another TKTail.exe (a moved portable copy): points it to this one.

Viewer

OptionWhat it changesDefault
Show line numbersNew views (View > Line Numbers changes the tab in front).On
Show the observation time of each lineNew views.Off
Wrap long linesNew views (Alt+Z changes the tab in front).Off
Follow the end of the file (LIVE) when a file opensNew views; off: a file opens paused at the top.On
Encoding of new filesDetect automatically, or one encoding; View > Encoding changes one file.Detect automatically
Tab width1-16 columns, files opened afterwards.4
Highlight the line with the caretOn
Count the lines that arrive while a view is pausedThe PAUSED badge says +n.On
LIVE shows new data at most10-60 frames per second; lower uses less CPU while files grow fast. New views.60
Encoding / line endings of exported filesWhat File > Export proposes.UTF-8 / as in the source

Monitoring

OptionWhat it changesDefault
Check files every (window shown)A safety net: Windows notifications report changes at once. 50 ms - 60 s.250 ms
Check files every (hidden in the notification area)100 ms - 10 min.2 s
When a log is rotatedFollow the file name (tail -F) or the original file (tail -f) - files opened afterwards; a tab can change it in the Inspector.Follow the file name
Rotated files remembered per log1-50. Next start.5
Follow dated file rotation automaticallyapp_2026-10-14.log, then app_2026-10-15.log: the new file becomes LIVE in the same place. A file can turn it on or off for itself (Inspector) - Rotating dated log files.On
Previous files of the series kept open0-50: the files before the LIVE one stay open next to it; 0 closes each one when the next becomes LIVE. Trial / Pro - in Free the previous file closes (following works in every edition).2
Build the full line index automatically for files up toLarger files are indexed on request (View > Build Full Line Index); 0: only on request. New files.16,384 MB

Files on network shares have their own refresh mode, per file, in the Inspector (Files on network shares). The page also says how many files are monitored in the background (Monitoring files in the background).

Search

OptionWhat it changesDefault
Match case / Regular expression / Wrap aroundThe find bar’s options in new views (Search).Off / Off / On
Search terms remembered0-200.30
Search Results sessions kept across restarts1-50 (their queries; results are searched again on request). Next start.10
Include subfoldersFolder searches from the toolbar and the Explorer.On
Threads for folder searches0-16; 0 = automatic. Next start.0

Formats

TKTail recognizes a log’s format from its content; View As, a folder’s .tktail file and your custom formats decide otherwise, per file or folder - there is no global format or delimiter setting (Record formats).

  • Custom Format Studio… closes Settings and opens the Studio.
  • Custom formats folder - where your format profiles are (Open, Copy).
  • Favorite Formats… - the formats listed first in View As.

Alerts & Incidents

OptionWhat it changesDefault
Keep a history of alerts on diskalerts.jsonl in the data folder. Next start.On
Text kept with each alertThe matching line (bounded) / only the matched text / no text.The matching line
Alerts kept / kept for at most100-1,000,000 alerts, 1-3650 days. Next start.10,000 / 90 days
Recent alerts kept in memoryFor the Alerts view, 1-10,000. Next start.100
Show the matching text in Windows notificationsOff: the notification names the alert only.On
Incidents kept / kept for at most / Evidence kept on disk up to10-100,000 incidents, 1-3650 days, 16-65,536 MB. Pinned incidents and incidents still capturing are always kept. Next start.1,000 / 90 days / 512 MB

Manage Alerts… opens the list of your alerts (Alerts and monitoring); the alert definitions and incidents folders have Open and Copy.

Metrics

OptionWhat it changesDefault
Counter namesIn the language of Windows / in English / both - display only.In the language of Windows
Sample the METRICS panel’s counters every1, 2, 5, 10 or 30 seconds. Needs Metrics in the license.1 second
Keep metric history in memory for5, 15, 30 or 60 minutes. Needs Metrics in the license.15 minutes

See Metrics. Without the capability the page says which licenses include it.

AI Access (MCP)

The permissions of AI clients (see AI integration). The page says whether AI access is on, what your license includes and whether TKTail is listening for HTTP clients.

OptionWhat it changesDefault
Allow AI access (MCP)AI clients you connect may read the sources open in the main window, search them, and read alerts, incidents and metrics. They change nothing unless a permission below allows it. Same as Tools > Allow AI Access (MCP).Off
Allow AI to save custom formatsSave format profiles - only into your custom formats, never over a built-in one.Off
Allow AI to save searches and Metric SetsCreate, change and delete your Saved Searches and your Metric Sets (never the built-in sets).Off
Allow AI to manage alertsCreate, change, enable, disable and delete alerts - only on sources AI clients may read.Off
Investigation Roots…Folders you approve for AI clients beyond what is open in TKTail (Extended Investigation); Trial, Pro and Developer licenses.none

The three “may change” permissions need AI access too; each works on its own (allowing alerts does not allow searches). See What AI clients may change.

How AI clients see this TKTail - every answer names this TKTail by its Node ID and the run that answered (Which TKTail answered); what else it says is your choice, applied to the next answer:

OptionWhat it changesDefault
Display nameYour name for this TKTail in every answer, for example Order Server (at most 64 characters). A label, not a unique key.empty
Include the computer nameAnswers name this computer as Windows has it configured.Off
Include the Windows user nameAnswers name the Windows user TKTail runs as.Off
Include the user’s domainAnswers name that user’s domain (or this computer, for a local account).Off
Node IDRead only: this data folder’s random ID - the same after a restart; another data folder or a portable copy has its own. Copy Node ID copies it.

Connect an AI client: stdio - every edition: the Command an AI client starts ("...\TKTail.exe" mcp --stdio) with Copy Command and Copy Client Configuration (a JSON mcpServers entry).

Connect an AI client: HTTP - Trial, Pro and Developer licenses (HTTP):

OptionWhat it changesDefault
Accept AI clients over HTTPThe main window listens for MCP clients at the Address shown. Every request needs the token. Applies at once.Off
Listen onThis computer only (127.0.0.1 and ::1) or Every network interface - TKTail asks you to confirm; plain HTTP, so only a trusted network, a VPN or a tunnel.This computer only
Port1024-65535. A port another program uses is reported in the status line; TKTail never picks another one.47711

Copy HTTP Client Configuration copies an mcpServers entry with the address and the token; Copy Token copies the token alone (the page never shows it); Regenerate Token… makes a new one after a confirmation - clients with the old token are refused from their next request. Turning AI access off while a client is connected refuses its next question at once; turning HTTP off ends its connection. AI Access Help opens the AI guide.

Windows Integration

Explorer’s right-click menu, shortcuts, the taskbar Jump List, and Repair / Remove All… - see Windows integration. The page reads what Windows has when it opens; changes are made on OK / Apply. The Jump List options are stored in settings.ini.

Files & Storage

Where TKTail keeps each kind of data - the data folder, settings, workspace, recent files, alert definitions, alert history, incidents, custom formats, Saved Searches, Metric Sets, the application log, the license file in use and the temporary evidence copies - each with Open and Copy. Change Data Folder… and Use the Default Data Folder choose where the data lives from the next start. See Where TKTail stores data.

Privacy & Cleanup

OptionWhat it changesDefault
Remember recently opened files / used foldersFile > Recent Files / Folders, the Explorer, the Jump List.On
Remember search terms and Search Results sessionsOn
Recent files / folders kept1-500. Next start.50 / 30
Clear Recent Files / Clear Recent Folders / Clear Search HistoryAt once, after a confirmation.
Remove evidence copiesWhen TKTail starts / a day or a week after they were made (when TKTail starts) / only with Clean Now. Next start.A day after
Clean NowRemoves TKTail’s temporary files that nothing uses now, after listing what it touches.

See Privacy and cleanup.

Logging

The application log (also live in View > Tool Views > Output).

OptionWhat it changesDefault
Write to the log fromTrace / Debug / Information / Warning / Error. Next start.Information
Keep file paths in the logOff: paths are left out of the log file (privacy). Next start.Off
Size of one log file / Log files kept / kept for at most64-65,536 KB, 1-50 files, 1-365 days. Next start.1,024 KB / 5 / 14 days

Terminal

OptionWhat it changesDefault
Shell of a new terminalAutomatic (PowerShell 7, Windows PowerShell, Command Prompt) or one of them.Automatic
Lines kept for scrolling back1,000-100,000 per terminal, in memory only. New terminals.10,000

More shells can be added as terminal.custom.N entries in settings.ini (see the Terminal section of the Bottom panel).

The settings file and keys (advanced)

settings.ini is UTF-8 text, written atomically (a crash never leaves half a file) and merged with what other TKTail windows saved meanwhile. A line TKTail cannot read is ignored and listed in View > Tool Views > Problems (Open Settings File shows it). The keys the window edits have public names - tktail settings list prints them with their values and when they take effect, tktail settings get <key> one (Command line). Changing settings from the command line is planned; use the Settings window.

Windows integration: startup, tray, Explorer

Everything on this page is optional, for your Windows user only and reversible. None of it needs administrator rights, and TKTail never makes itself the default program for a file type.

The quickest way: Tools > Settings… > Startup and > Windows Integration. The same can be done from the command line (tktail startup, tktail integration).

Starting with Windows

Settings > Startup > Start TKTail when I sign in to Windows, and how it starts:

StartWhat you see after signing in
Hidden in the notification areaOnly the TKTail icon - monitored files and alerts run (the usual choice for monitoring)
MinimizedTKTail on the taskbar, minimized
With the window shownThe TKTail window

The page shows what Windows has now - for example TKTail starts with Windows (hidden in the notification area). If you switch TKTail off in Task Manager > Startup apps, the page says so; turn it on there again (TKTail never overrides that switch). Starting with Windows and starting hidden are separate: TKTail started any other way opens its window, and TKTail.exe --tray starts it hidden without autostart.

What opens at start is in Settings > General > Reopen the workspace at start; files monitored in the background are always watched again.

From the command line: tktail startup enable --tray (or --minimized, --normal), tktail startup disable, tktail startup status.

The notification area (tray)

When TKTail is hidden (File > Hide to Notification Area, closing the window and choosing to keep it running, or started hidden) its icon stays in the notification area:

  • Click the icon, or choose Open TKTail in its menu (right-click), to show the window.
  • The menu shows what is being monitored (Monitoring 3 files, or Monitoring paused), the unread alerts with the highest severity of the new incidents, and Pause All Monitoring, Open File…, Settings…, About TKTail and Exit TKTail (a real exit).
  • The unread alerts, Open File… and Settings… show the window first.
  • The icon changes when alerts are waiting or monitoring is paused.

Settings > General: Always show the TKTail icon in the notification area (otherwise it shows only while TKTail is hidden there, monitors files in the background or has unread alerts), Minimizing hides TKTail in the notification area, and what Closing the window does (ask, minimize to the notification area, exit).

Windows Explorer

Settings > Windows Integration adds TKTail to the right-click menu of Windows Explorer:

EntryWhat it does
Open with TKTail (files)Opens every selected file as a tab of the running TKTail - one file or many.
TKTail submenu (files and folders)Files: Open, Open in split right, Open in split below, Open and follow. Folders: Browse (in TKTail’s Explorer), Search files, Search contents, Add to favorites.

On Windows 11 they are under Show more options. Turning an entry off removes exactly what TKTail added. Command line: tktail integration open-with enable|disable|status, tktail integration explorer enable|disable|status.

Shortcuts and the Jump List

Settings > Windows Integration > Shortcuts: TKTail in the Start menu, on the Desktop and in Send To (right-click a file > Send to > TKTail opens it).

The Jump List (right-click TKTail on the taskbar) lists recent files, recent folders and favorite folders, plus Open File…, Open Folder… and Settings. Each part can be turned off there.

A portable copy

A portable TKTail (a TKTail.portable file beside TKTail.exe, see Where TKTail stores data) writes nothing into your Windows profile unless you turn an entry on. The entries point to that copy: after moving the folder they point to the old place - the Settings page says points to another TKTail.exe and Repair points them to the copy you run. The Jump List of a portable copy is off unless you turn on Also for a portable copy.

Removing everything

Settings > Windows Integration > Remove All… (or tktail integration remove-all --yes) removes the autostart entry, the Explorer entries, the shortcuts and the Jump List. Settings, history, alerts and incidents stay. To remove TKTail completely, also delete TKTail.exe and its data folder (Where TKTail stores data).

Where TKTail stores data, privacy and cleanup

TKTail keeps everything on this computer. It contacts nothing over the network, has no telemetry and no cloud sync, and its license works offline; it answers AI clients over HTTP only if you turn that on (AI integration). Settings > Files & Storage shows every location below with Open and Copy.

The data folder

Where
Normally%LOCALAPPDATA%\TKTail - per Windows user (for example C:\Users\<you>\AppData\Local\TKTail)
A folder you choseSettings > Files & Storage > Change Data Folder… - from the next start
Portabledata beside TKTail.exe, when a file named TKTail.portable is there (or with --portable)

tktail portable status prints which one is in use.

Changing the data folder - choose a folder on a local disk (not a network share); TKTail checks that it can write there and asks before it changes anything. The new folder is used from the next start; TKTail moves and deletes nothing. Your settings, workspace, alerts, incidents, custom formats, Saved Searches, Metric Sets and logs stay in the old folder: to take them along, exit TKTail and copy the old folder’s contents into the new one. Use the Default Data Folder goes back the same way. If the chosen folder cannot be used at a start (a removed drive), TKTail uses the default folder for that run and says why in the status bar and in Problems - the data in the chosen folder stays where it is. (The choice itself is the one line in %LOCALAPPDATA%\TKTail\data-folder.txt.)

What is in it

Your data - kept until you change or delete it:

File or folderContents
settings.iniSettings (Settings)
workspace.jsonThe main window’s tabs and splits, reopened at start (When TKTail starts again)
recent.txtRecent files and folders (paths and times only)
Alerts\Your alerts, one file each
alerts.jsonlThe alert history (limited by Settings > Alerts & Incidents)
Incidents\Alert incidents and their evidence: the records, events and metric samples an alert kept (limited by count, age and size; pinned ones stay)
Formats\Your custom format profiles (Custom formats)
Searches\Saved Searches
metric-sets.jsonYour Metric Sets
logs\TKTail’s own application log (rotated: Settings > Logging)
TKTail.licenseYour license, when you entered it in TKTail (License)
mcp-http.tokenThe token AI clients use over HTTP, encrypted for your Windows user (AI integration); made the first time HTTP is used
node.idThis TKTail’s random node ID, which AI clients see in every answer (Which TKTail answered); made once, never derived from your computer

Temporary files TKTail makes and removes again:

WhatWhereRemoved
Evidence copies (Incidents > Open Evidence as Log)%TEMP%\TKTail\Evidenceby Settings > Privacy & Cleanup > Remove evidence copies (default: a day after they were made, when TKTail starts) and by Clean Now - never one a tab shows
An interrupted save (settings.ini.<number>.tmp and similar)the data folderat the next start, and by Clean Now
A linked window’s start request (TKTail-linked-....json)%TEMP%when the window reads it; one left over a day by Clean Now
An export or saved results being written (<your file>.tmp)beside the file you chosewhen the export ends, fails or is cancelled

TKTail keeps no settings in the Windows Registry. The only Registry and profile entries are the optional Windows integration ones you turn on (startup, Explorer, shortcuts), removed with Remove All….

A .tktail file in a log folder is written only when you choose a format for a folder there (Folder formats).

Privacy

  • Logs you open stay where they are. TKTail reads them; it never copies them, except what an alert keeps as incident evidence and an export or copy you ask for.
  • Alerts keep a short preview of the matching line in the alert history (Settings > Alerts & Incidents: the line, only the matched text, or no text) and, in an incident, the records around the match. Windows notifications show the matching text unless you turn that off.
  • History: recent files and folders, search terms and Search Results sessions (their queries only) are remembered; Settings > Privacy & Cleanup turns each off and clears them.
  • The application log leaves file paths out unless you turn them on (Settings > Logging).
  • AI clients (MCP) get nothing until you allow AI access, then read only what is open in TKTail - plus folders you approve - see AI integration. Their answers name this TKTail by random IDs; your computer name and Windows account only if you tick them in Settings > AI Access.
  • The license is verified on this computer; nothing is sent.

Cleanup

Settings > Privacy & Cleanup > Clean Now removes TKTail’s temporary files that nothing uses now - it lists the places first:

  • evidence copies no tab shows (any age),
  • files an interrupted save left beside TKTail’s data,
  • linked-window start requests that are a day old.

It never removes your logs, exports, settings, alerts, incidents, custom formats or anything TKTail did not make; a file another program holds open is kept. The status bar says what was removed.

Persistent data has its own limits rather than a cleanup: the alert history and incidents (Settings > Alerts & Incidents), the application log (Settings > Logging), recent lists (Settings > Privacy & Cleanup).

Removing TKTail

  1. Settings > Windows Integration > Remove All… (or tktail integration remove-all --yes).
  2. Exit TKTail and delete TKTail.exe (and its folder, for a portable copy).
  3. Delete the data folder - %LOCALAPPDATA%\TKTail, or the folder you chose - if you do not want to keep your settings, alerts and incidents.

Command line

TKTail.exe is also a command-line tool. Everything here works from Command Prompt, PowerShell, shortcuts and scripts. The complete reference (every command, option, value format and exit code) is docs/CLI.md; tktail --help and tktail <command> --help print it in the console.

tktail below means TKTail.exe (add its folder to PATH, or type the full path).

Opening files and folders

tktail C:\Logs\service.log                   open (same as: tktail open ...)
tktail open a.log b.log --paused              several files, start paused
tktail open C:\Logs\*.log                     wildcards in the file name
tktail open server.log --line 150000          go to a line
tktail open huge.log --offset 8GB             go to a byte position
tktail open api.log --search ERROR            open and find
tktail open api.log --search "timeout|refused" --regex
tktail open session.fix --format fix          choose the record format
tktail open app.log --split-right             open next to the current pane
tktail folder C:\Logs                         show a folder in the Explorer
tktail folder C:\Logs --search-content "OutOfMemory" --recursive

If TKTail is already running, the command is passed to it and the console returns at once.

Windows Event Log

tktail eventlog list                          the event logs of this computer
tktail eventlog open System                   open a tab: the newest 1,000 events, then LIVE
tktail eventlog open Application --last 100 --level error,warning
tktail eventlog open System --live            only events from now on
tktail eventlog query System --last 20 --level error      print events, no window

More in Windows Event Log.

Places and monitoring

tktail favorites add C:\Logs\Service          add / remove / list favorite folders
tktail recent files                           recently opened files (also: recent folders)
tktail monitor add C:\Logs\service.log        keep watching a file in the background
tktail monitor list
tktail alerts list                            alerts (condition, evidence, whether it is evaluated)

Settings and Windows integration

tktail settings                               open the Settings window
tktail settings list                          all public settings, their values and when they apply
tktail settings get general.closeAction
tktail startup enable --tray                  start with Windows, hidden (or --minimized, --normal)
tktail integration status                     autostart, Explorer entries, Start menu, desktop, Send To
tktail integration open-with enable           add "Open with TKTail" to Explorer's menu of files
tktail integration explorer enable            add the TKTail submenu (files and folders)
tktail integration remove-all --yes           undo every integration
tktail portable status                        where settings are stored

Controlling the running window

tktail app activate                           bring the window to the front
tktail app tray                               hide it in the notification area
tktail app exit                               close TKTail (monitoring stops)
tktail ui open-dialog                         show File > Open

Linked windows

tktail --new-window                           a new, empty linked window of the running TKTail
tktail open app.log --new-window              app.log in a new linked window

Without a running TKTail the files open in the new main window. See Linked windows.

AI integration (MCP)

TKTail.exe mcp --stdio                        the MCP server an AI client starts (not run by hand)

Your AI client (for example Claude Code) starts this command and talks to it; it answers from the running TKTail window once you allow it there. See AI integration (MCP).

License

tktail license status                         the license in effect
tktail license info                           details for support (never the code)
type license.tktlic | tktail license activate --stdin
tktail license import license.tktlic          activate the license in a file
tktail license status --license-file x.license   the license a given file gives (verified as usual)

The license code is never taken as an argument: other programs and your shell history could read it there. See License.

For scripts

  • Exit codes: 0 success, 1 no match, 2 invalid arguments, 3 file not found, 4 access denied, 5 operation failed, … (full table in docs/CLI.md).
  • Machine-readable output: --output json, jsonl or csv on listing commands, e.g. tktail monitor list --output json.
  • Response files: tktail @args.txt reads arguments from a file (one per line).
  • No prompts: commands that change or delete things need --yes; --dry-run shows what would change.
  • --quiet prints only results and errors; --timeout 10s limits how long a command waits for the running instance.

License

TKTail shows which license is in use at all times - in the license badge on the right of the toolbar, just before the search box, and in short at the end of the status bar.

BadgeWhat it means
FREE · NON-COMMERCIALTKTail Free: free forever for personal, educational and other non-commercial use
TRIAL · 18 DAYSA Pro trial: commercial evaluation and testing are permitted while it is valid; it turns amber in its last three days
PRO PERSONAL · <name>A paid personal license: commercial use by the named person
PRO BUSINESS · <organization>A paid business seat: commercial use for the organization
INVALID LICENSE · FREEThe stored license could not be verified (changed or damaged); TKTail Free applies
DEVELOPER · <name>A Developer license, for developing and testing TKTail itself: every feature is available. It is not a paid license and is shown in the neutral text colour, never like one

The text always names the license - the colour (amber, blue, green, red) only repeats it. In a narrow window the badge shortens (FREE, TRIAL · 18D, PRO PERSONAL).

Final legal wording of the license terms is subject to the EULA; Help > About TKTail > View License Terms… shows the current draft for your edition.

Some features need a Trial or Pro license - for example linked windows and Metrics. Without one they stay visible, marked (Pro), and explain what they need when chosen. AI integration (MCP) for what is open in TKTail works in every edition, and so does following rotating dated log files - keeping their previous files open beside the LIVE one needs a Trial or Pro license.

Details

Click the badge (or Help > License…) for About / License: edition, licensed to, e-mail, organization, usage rights, trial or update dates, license ID, the license’s own description and a summary of its terms.

Hover the badge for a short summary; right-click it for License Details, Enter / Change License Code, Import License File, Copy License Information, Open License Folder, Reload License and Show License Owner in Application Chrome.

Copy License Information copies what support needs (product, version, edition, license ID, owner, usage, dates) - never the license code itself.

Entering a license code

You receive a license code by e-mail (a long line starting with TKT1.) or as a license file (.tktlic).

  1. Help > Enter License Code… (or right-click the badge).
  2. Paste the code into the box - line breaks added by your e-mail program do not matter - or click Paste from Clipboard, or Import License File….
  3. TKTail checks the code after a moment (or click Validate). A valid code shows its details - edition, your name, e-mail, organization, usage, license ID, dates, description. Check that it is yours.
  4. Click Activate License. The dialog confirms License activated successfully and the badge changes at once - no restart.

  • Checking a code works offline: the code carries a digital signature that TKTail verifies on your computer. Nothing is sent anywhere.
  • A code that was changed, damaged, is for another product or has expired is refused with a short reason (Invalid license code: …). Copy Diagnostics copies the technical result for support (never the code).
  • Changing a license (Change License Code…): your current license stays active until the new code has been verified and saved. If anything goes wrong, nothing changes.
  • The clipboard is read only when you paste or click Paste from Clipboard.
  • If a license file beside TKTail.exe is in use (see below), activating installs the new license but says that the one beside TKTail.exe stays in use - it takes precedence.

Trial and updates

  • When a trial ends, TKTail continues as TKTail Free (non-commercial use). Your settings, alert rules, formats and history stay as they are; About shows when the trial ended.
  • A paid license is perpetual. It includes updates for its update period; when that period ends the badge turns amber and the details say Updates ended <date> - this license does not expire: the versions released until then stay licensed.

Privacy

  • The e-mail address is never shown in the toolbar or the status bar - only in the tooltip and in About.
  • Hide the owner’s name (for screenshots or screen sharing): right-click the badge > Show License Owner in Application Chrome. The badge then shows only PRO PERSONAL / PRO BUSINESS.
  • The license code is never written to TKTail’s logs.

Command line

tktail license status
tktail license info
type license.tktlic | tktail license activate --stdin
tktail license import license.tktlic
tktail license status --license-file test.license   (which license a file would give)

The code is deliberately not accepted as a command-line argument - other programs and your shell history could read it there. Pipe it (--stdin) or import the file. See Command line and docs/CLI.md.

Where the license is kept

The license is a small file, TKTail.license - the signed code itself. Editing it makes the license invalid. TKTail looks for it in this order and uses the first valid one:

  1. a file given with --license-file <path> when TKTail is started (for testing an edition: only that file counts);
  2. TKTail.license beside TKTail.exe - e.g. a portable copy or a test installation that should have its own license;
  3. TKTail.license in your TKTail data folder - %LOCALAPPDATA%\TKTail\, the folder you chose in Settings > Files & Storage, or in portable mode data\ beside TKTail.exe (Where TKTail stores data). This is where Enter License Code and Import License File put it.

Help > License… shows which file is in use (Source), a file that was not valid and why (Ignored), and an installed license that is not in use because another one takes precedence. Help > Open License Folder shows the license file in File Explorer; Help > Reload License reads the files again (TKTail also notices a changed file when you switch back to it).

Moving to another computer: copy TKTail.license there and import it (Help > Import License File…) or place it in one of the folders above - it is verified again there. TKTail keeps no license data in the Registry.

Testing with generated logs

Want to know how TKTail behaves on your machine with your kind of load? Use TKTail Log Generator (TKTailLogGen), a separate free tool of the TKTail project. It writes synthetic log files at a rate, record size and format you choose. It is the same generator our own measurements use, so you can repeat them yourself.

It works offline: no network, no telemetry. It writes only the file you name, never replaces an existing file unless you say so, and stops before your disk runs low.

Follow a live log

The quickest way is the generator’s window:

  1. Run TKTailLogGen.exe.
  2. Choose Application log, 1000 lines/s, 500 B, Duration 60 seconds.
  3. Click Start + Open in TKTail.

TKTail opens the file and follows it LIVE, while the generator’s graph shows the actual rate.

The same from a console:

  1. Start a workload:

    TKTailLogGen generate -o C:\Temp\live.log --format applog --rate 1000 --line-size 500 --duration 5m
    
  2. Open C:\Temp\live.log in TKTail (tktail open C:\Temp\live.log). The tab shows LIVE, and new lines appear as they are written.

  3. The status bar’s growth segment shows the rate TKTail sees (about +1000 lines/s).

Press Ctrl+C in the console to stop early. The generator prints what it actually wrote: lines, bytes, the actual rate, and whether it could sustain the requested rate.

A huge file

TKTailLogGen generate -o C:\Temp\big.log --format plain --rate max --size 5GB

TKTail opens the file at its end at once, whatever its size, and indexes it in the background.

Check the space first. The generator plans every run: it shows the estimated output, the free space of the volume the file really goes to and the 2 GB that always stay free, and it does not start a run that would not fit (the window disables Start; the command line stops with exit code 3). --dry-run shows the plan without writing anything:

TKTailLogGen generate -o C:\Temp\big.log --format plain --rate max --size 5GB --dry-run

A run that reaches the reserve while writing stops by itself, with a complete last record. Details: Disk safety.

Alerts

TKTailLogGen generate -o C:\Temp\alerts.log --rate 500 --alert-every 1000 --duration 2m

Every 1,000th record is an ERROR that contains BENCHMARK_ERROR. Add an alert rule for BENCHMARK_ERROR in TKTail. After the run, the number of alerts should equal the “Expected BENCHMARK_ERROR records” line the generator printed.

Rotation

TKTailLogGen generate -o C:\Temp\rot.log --rate 2000 --line-size 300 --rotate-size 20MB --rotate-keep 3 --duration 3m

Every 20 MB, the file is renamed to rot.log.1 and a new rot.log starts. TKTail follows the log by name.

Errors with stack traces and payloads (multi-line records)

TKTailLogGen run multiline-mix-1000 -o C:\Temp\multiline.log

Writes 1,000 records/s for 60 s: 80 % one-line records, 10 % errors with an exception and a stack trace, 10 % requests with a pretty-printed JSON payload - about 2,560 source lines per second. In TKTail, click any line of a stack trace or a payload: the Inspector and the RECORD view show the whole entry it belongs to, and Copy Current Record copies all of its lines. --exceptions and --payloads choose other shares; multiline-exception-1000 and multiline-payload-json-1000 are the extreme cases.

Qlik script reload traces

TKTailLogGen run qlik-trace-1000 -o C:\Temp\reload.log

Writes 1,000 synthetic Qlik time blocks/s for 60 s: a line holding only the time, then loads (Orders << QVD_ORDERS_202610), Lines fetched: 25 000, TRACE lines and now and then the END IF script error - about 4,000 source lines per second. TKTail detects it as Qlik Script Trace; click any line of a block to see the whole block in the Inspector and the RECORD view. The content is generic test data, not a real reload.

Good to know

  • Records or lines. For one-line logs a record is a line. For multi-line records the generator always reports both: 1,000 records/s, ~2,560 source lines/s. TKTail’s status bar counts source lines.

  • Rate x record size = bytes per second. 100,000 lines/s at 100 B per record is 10 MB/s. At 1 KB per record it is 100 MB/s - 6 GB a minute.

  • Sequence numbers. Every record carries one (seq=000000012345). TKTailLogGen verify <file> checks that nothing is missing or duplicated.

  • Saved scenarios. --save-scenario saves the settings; TKTailLogGen run <scenario> repeats them. A scenario holds only workload settings, never paths or personal data.

  • Local results. What you measure is a result of your machine and disk, not a guarantee.

Everything else: docs/LOG_GENERATOR.md.

Troubleshooting

A program cannot write to its log while TKTail has it open

TKTail opens files with full sharing (read, write and delete), so normal log writers keep working and files can be rotated or deleted while they are open. Some writers, however, ask Windows for exclusive write access and fail while any program reads the file. Windows PowerShell 5.1 Add-Content is one example - it fails the same way with other viewers. Programs that open the file with sharing (most logging libraries, .NET FileStream with FileShare.ReadWrite) are not affected.

New lines appear late on a network share

The status bar says how the file is followed: AUTO 30 s means TKTail checks the share every 30 seconds because nothing changed for a while - the next change it sees brings it back to every second. Some shares send no change notifications and some servers report a new size only after their write cache is flushed; lines then appear with that delay. If you need a fixed, short delay, choose Poll with a shorter interval in the Inspector (Monitoring > Refresh); each check is one small request to the server. See Files on network shares.

The status bar says NO EVENTS

The file is in Event mode, and its folder does not deliver change notifications now (a share that dropped them, a folder that was removed). In Event mode TKTail does not check the file itself, so new lines appear only when the notifications work again - TKTail tries to restore them, at most once a minute, and then catches up. To have the file checked, choose Auto or Poll in the Inspector (Monitoring > Refresh).

The status bar says OFFLINE

The share holding the file cannot be reached. TKTail keeps what it has shown and tries again with growing pauses (up to a minute); nothing needs to be reopened when the share is back. The Inspector’s Monitoring > Connection row says how many tries failed.

Reveal Current File stops before the file’s folder

The folder tree does not show hidden folders unless … > Show Hidden Items is on, so a path through AppData, for example, ends at the closest visible folder. The file list still shows the right folder and selects the file.

A folder shows “more files not shown”

To stay fast, the file list shows at most 100,000 files of one folder. Type a filter (for example *.log): in very large folders the filter is applied while the folder is read, so matching files beyond that limit are found.

The Windows context menu says “(not available)”

Windows did not provide a menu for that item, or one of the programs that add items to it failed. TKTail keeps running; the rest of its own menu works.

Something else is wrong after changing settings

  • Settings > Restore Defaults… resets the page you are on (see Settings).
  • Start once with --safe-mode to ignore the saved workspace, monitored files, alert rules, custom formats and folder formats (.tktail).
  • tktail settings list shows every setting with its value; Settings > Files & Storage (or tktail portable status) shows which data folder is used.
  • Settings live in settings.ini in the data folder (Where TKTail stores data). Rename the file to start with defaults; a line TKTail cannot read is listed in Problems.

Finding out what TKTail did

View > Tool Views > Output lists what TKTail itself did and what went wrong - files that disappeared or were rotated, files that could not be opened, settings that could not be saved. The same entries are in logs\tktail.log in the data folder (Settings > Logging shows it and how much is kept); Open Log Folder in the Output panel opens that folder. For more detail, choose Debug in the Output view, or a lower level in Settings > Logging.

Reporting a problem

Please include what you did, what you expected and what happened, plus the output of tktail diagnostics (version, build, Windows version, settings state - without file paths or log contents unless you add --include-paths). The application log (tktail.log, see above) helps too; it contains no file paths unless log.includePaths is on.