# Getting started

From the download to your first log in a few minutes: what TKTail needs, how to run it, and the
ways to open a log.

## What you need

- Windows 10 version 1607 or later, Windows 11, or Windows Server 2016 or later (x64). The
  [terminal](https://tktail.dev/help/bottom-panel/#terminal) needs Windows 10 version 1809 or Windows Server 2019; a few
  other things differ on the older ones (a display scale change, the dark title bar) - see
  [System requirements](https://tktail.dev/help/system-requirements/). Earlier versions of TKTail need Windows 10 version
  1809 to start ([Troubleshooting](https://tktail.dev/help/troubleshooting/#entry-point-not-found-closepseudoconsole-when-starting-tktail)).
- No administrator rights. TKTail never asks for elevation during normal use.
- No installer and no runtime to install.

## Get TKTail running

1. [Download TKTail](https://tktail.dev/download/) - the package `TKTail-<version>.zip`. It holds
   `TKTail.exe`, this Help (the `help` folder) and `THIRD_PARTY_NOTICES.txt`. The download page shows
   its SHA-256 and how to check it.
2. Extract the ZIP into a folder of your choice, for example `C:\Tools\TKTail`. Keep the `help`
   folder beside `TKTail.exe`: Help and F1 open it from there.
3. Run `TKTail.exe`. Your settings and data are kept in `%LOCALAPPDATA%\TKTail`
   ([Where TKTail stores data](https://tktail.dev/help/data-and-privacy/)).
4. Open a log - see below.

## Opening files

| How | Notes |
|---|---|
| **File > Open...** (Ctrl+O) | Select one or more files. |
| **Drag and drop** | Drag 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](https://tktail.dev/help/viewing-logs/#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](https://tktail.dev/help/viewing-logs/#drag-sources-into-the-workspace). Dropping a folder shows it in the Explorer. |
| **Explorer panel** | Double-click a file, or press Enter. See [Explorer](https://tktail.dev/help/explorer/). Event logs open there too: see [Windows Event Log](https://tktail.dev/help/windows-event-log/). |
| **File > Recent Files** | The last opened files (and **Recent Folders**). |
| **Command line** | `TKTail.exe C:\Logs\app.log` or `tktail open *.log --paused`. See [Command line](https://tktail.dev/help/command-line/). |
| **Windows Explorer** | Optional: **Settings > Windows Integration** adds **Open with TKTail** to Explorer's right-click menu - for one file or many (per user; see [Windows integration](https://tktail.dev/help/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](https://tktail.dev/help/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. The **Hide to Notification Area** button in the title bar, right before minimize (and **File >
Hide to Notification Area**) hides the window without asking. **File > Exit** (and **Exit TKTail** in the
tray menu) exits - it asks only 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.

Alerts watch only while TKTail runs, so exiting never stops them silently: with enabled alerts, closing
the window or **File > Exit** asks *Closing TKTail stops 4 active alerts* - **Keep Running in the
Notification Area** (the default: the window hides, the alerts go on), **Close and Stop Alerts**, or
**Cancel**. `tktail app exit` from a script exits without asking.

## 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](https://tktail.dev/help/settings/). **Help > TKTail Help** (F1) opens this guide in your browser, at the page of what you
are working in - from the `help` folder that comes with TKTail, so it works offline. **Help > Online Help** opens the
same guide at [tktail.dev/help](https://tktail.dev/help/), and **Help > TKTail Website** (or the *Website* link in
**Help > About TKTail**) opens the product's website, [tktail.dev](https://tktail.dev/).

## 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](https://tktail.dev/help/data-and-privacy/) 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](https://tktail.dev/help/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](https://tktail.dev/help/viewing-logs/) - following, pausing, moving around and copying.
- [Rotating dated log files](https://tktail.dev/help/rotating-dated-logs/) - a new file every day or hour followed as one log.
- [Search](https://tktail.dev/help/search/) - in a file, in all open files, in folders, over time.
- [Explorer](https://tktail.dev/help/explorer/) - browsing log folders and the Windows Event Logs.
- [Windows Event Log](https://tktail.dev/help/windows-event-log/) - Application, System and other event logs, LIVE.

---

The HTML page: https://tktail.dev/help/getting-started/
