# Viewing logs

*Screenshot: A live log in the dark theme*

## 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](https://tktail.dev/help/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](https://tktail.dev/help/rotating-dated-logs/).

## 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](https://tktail.dev/help/large-and-network-files/).

## Moving around

| Action | How |
|---|---|
| Move the caret | Click, or Left/Right (Ctrl: by word), Up/Down, PgUp/PgDn |
| Start / end of the line | Home / End (with Word Wrap: of the row you see) |
| Beginning / end of the file | Ctrl+Home / Ctrl+End |
| Select with the keyboard | Hold Shift with any of the keys above |
| Scroll without moving the caret | Wheel, Ctrl+Up / Ctrl+Down, the scroll bars |
| Scroll sideways | Shift+wheel, horizontal wheel |
| Go to a line or byte offset | **Ctrl+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 record | **Alt+Down** / **Alt+Up** - by log entry, not by line: a stack trace or a payload is skipped as one ([below](https://tktail.dev/help/viewing-logs/#records-and-time)) |
| Go to a date and time | **Ctrl+Shift+G** (Edit > Go To Time) - the record whose time is nearest ([below](https://tktail.dev/help/viewing-logs/#records-and-time)) |
| Zoom | Ctrl+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.

*Screenshot: Go To Time: Date and time selected, 2026-10-06 04:49:10 typed, and the file's time range*

- 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](https://tktail.dev/help/metrics/#from-a-log-to-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.

*Screenshot: The file's time range in the status bar (TS 02:11:17.552 -> 07:42:08.6266) and the Inspector's Time range section; the RECORD view below*

## 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](https://tktail.dev/help/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](https://tktail.dev/help/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).

*Screenshot: A semicolon export (Qlik-style decimal commas, quoted names) detected as CSV (semicolon)*

**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 &lt;format&gt;
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](https://tktail.dev/help/local-configuration/). 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](https://tktail.dev/help/custom-formats/).
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](https://tktail.dev/help/custom-formats/).
- **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:

  | Field | Value |
  |---|---|
  | `timestamp` | 2026-10-03 20:37:46 (UTC - IIS writes W3C times in UTC) |
  | `cs-method` | GET |
  | `cs-uri-stem` | /api/customers |
  | `sc-status` | 500 |
  | `c-ip` | 198.51.100.46 |
  | `time-taken` | 705 |

  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](https://tktail.dev/help/custom-formats/).

## Tabs and splits

*Screenshot: Five tabs: the active one, LIVE dots and an unread alert on demo-app.log*

- 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.

*Screenshot: The same log in two panes; the right pane is the active one*

- Drop a file on a pane to open it there - see [Drag sources into the
  workspace](https://tktail.dev/help/viewing-logs/#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 it | What happens |
|---|---|
| between two tabs of a pane (also its own) | it moves there - a marker shows the place |
| in the **middle** of another pane | it 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 window | a new [linked window](https://tktail.dev/help/windows/#move-a-tab-to-another-window) with only this tab (Trial and Pro) |
| on another TKTail window | it 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](https://tktail.dev/help/windows/#move-a-tab-to-another-window).

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:

| Drag | from | Opens |
|---|---|---|
| one or several files (Ctrl / Shift selection) | the [Explorer](https://tktail.dev/help/explorer/)'s file list, or Windows Explorer | a log tab each (a saved `.evtx`: its events) |
| an event log (*System*, *Application*, ...) | the Explorer's **Windows Event Logs** | its event tab |
| one or several metrics | the [METRICS panel](https://tktail.dev/help/metrics/#the-metrics-panel) | a Metrics View - or into one (below) |
| a folder | the Explorer's tree, or Windows Explorer | the 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](https://tktail.dev/help/viewing-logs/#move-tabs).

## 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](https://tktail.dev/help/explorer/) keeps the look Windows gives it. On an older Windows the title bar
(before Windows 10 version 2004 / Windows Server 2022) and Windows' own scroll bars and tooltips
(before Windows 10 version 1809 / Windows Server 2019) stay light in the dark theme
([System requirements](https://tktail.dev/help/system-requirements/#features-that-need-a-newer-windows)).
**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](https://tktail.dev/help/viewing-logs/#records-and-time)), 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](https://tktail.dev/help/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:

| Segment | Click to |
|---|---|
| Monitoring paused | Resume all monitoring |
| LIVE / PAUSED | Pause / Go Live |
| Ln / Offset / Sel | Go to a line or offset (Ctrl+G) |
| Size | Show the Inspector |
| Encoding | Choose an encoding (the View > Encoding menu) |
| Format | View as another record format (the View > View As menu) |
| TS (time range) | Go To Time; *partial* / *not read*: read the file's times |
| Index: tail | Build the full line index |
| Alerts | Add Alert, Mark All Alerts as Read, Pause All Monitoring |

---

The HTML page: https://tktail.dev/help/viewing-logs/
