AI assistance
An AI assistant can investigate with TKTail: instead of you pasting log lines into a chat, or the assistant running ad-hoc commands on your machine, it asks TKTail - and TKTail answers with the parsed records, search results, summaries, Windows events, metrics, alerts and incidents of what you opened or approved, each answer pointing back to its evidence. This page is for everyone who wants to work with an assistant this way - administrators, developers, support engineers. You do not need to know how the connection works to use it; the technical side is in AI integration (MCP).
TKTail’s AI features were shaped by real production investigations: each gap an assistant hit there - answers too large to send, evidence lost to log rotation, alerts on files that change their name every day - became a feature.
Two ways people use it - each a complete walkthrough with a worked example:
- Investigate a production incident - for administrators, DevOps engineers, SREs and support: find what happened across logs, events and counters, keep the evidence before the logs rotate, and leave a record the next shift can rely on.
- Develop with a coding agent - for developers with Claude Code or another coding agent: after each build and run, the agent reads what the code actually did - errors, slow operations, warnings - and uses it for the next change.
How you and an assistant investigate together
VIEW -> SEARCH -> CORRELATE -> UNDERSTAND -> PRESERVE -> VERIFY -> MONITOR
open text, event logs, summaries, evidence hashes, alerts on
logs fields, Metrics, the top N, numbers packages sources the log and
time same minutes (redacted) named its series
You open the logs and decide what the assistant may do; the assistant asks TKTail the questions and proposes the next step; every answer names its evidence, so you can check it in the same window.
Why an assistant works better through TKTail
- Structured answers. A record arrives as a record - its time, its severity, its fields, the whole multi-line entry - not as text to be guessed at.
- Small answers - the work is done where the records are. TKTail searches, filters, extracts numbers, counts, groups and summarizes itself, and sends the result: the top 10 client addresses of 240,000 errors is a few kilobytes, not 240,000 records the assistant has to receive, read and count. Less data moved, less time, less of the assistant’s context used.
- Evidence you can check. Every result names its source, its line and its time, and carries a reference the assistant (or you) can open again in TKTail.
- Boundaries. The assistant reads only what is open in TKTail or below folders you approved; it changes nothing unless you allowed that kind of change; it cannot run programs or commands.
- Your view, shared. The assistant’s searches appear in your Search Results, marked AI; a file it opens appears as a tab.
What an assistant can do
| Capability | For example |
|---|---|
| Read the record you are on, and what happened before and after it | “Explain the error I am looking at.” |
| Search open logs and event logs - text, regular expressions, field conditions, time ranges | “Find every record of request R-41166.” |
| Compare a number in the text | “Which requests took 1000 ms or longer?” (elapsed: 1985.000ms counts) |
| Summarize what a search found, in TKTail | “The top 10 client IPs causing 500 errors”, “requests per minute”, “the average time-taken per URL” |
| Return only the fields it needs, or just the count | “How many timeouts were there?” |
| Find sequences across logs, joined by an ID | “Did a request fail downstream within 10 seconds?” |
| Read the Windows events of channels you opened | “What did the System log say around 22:11?” |
| Read Metrics TKTail collects (Trial / Pro) | “What did CPU and memory do in the minute around this error?” |
| Read your alerts, their incidents and the evidence each kept | “What happened in the last Payment errors incident?” |
| Preserve evidence before the logs rotate - only the records found, with their context, redacted | “Save these 57 results with 20 records of context.” |
| Keep a search for later, across restarts (pin it) | “Pin that search - we will come back to it.” |
| See whether an alert is alive and which file it reads | “Is alert 12 running, and which rotated file is it reading?” |
| Propose and check an alert - and, with your permission, save it | “Watch this log for payment failures.” |
| Explain a log’s format, write a custom format and preview it | “Why is this log plain text? Write a format for it.” |
| With approved folders (Trial / Pro): list and search logs you have not opened | “Find the IIS logs of yesterday below D:\Logs.” |
What an assistant cannot do
Through TKTail an assistant cannot: run commands, programs, scripts or PowerShell; start, stop or restart services; end processes; change firewall rules, IIS, settings or configuration files; delete, move or write files (the one exception is an evidence package in TKTail’s own Evidence Store - redacted, within its size limits; see below); read a file that is neither open in TKTail nor below a folder you approved; add an approved folder; acknowledge or delete incidents; delete evidence (it can only ask - you decide in TKTail). TKTail has no tool for these, and no permission turns one on. It does not repair anything by itself: it investigates and proposes; you decide.
Not available in this release (planned, not shipped): reading configuration files with secrets removed, process, service, TCP and IIS diagnostics, reading a performance counter TKTail does not already collect, opening a Windows Event Log channel on its own, testing an alert against past data, alerts on “N matches within a time window”, and managing incidents (acknowledging, notes, maintenance windows). How busy this PC is (CPU, memory) you see yourself in the bottom panel’s System view (System); an assistant reads the machine’s state only through the Metrics TKTail collects.
Quick start
- Open TKTail and open what you want to investigate - the logs, the Windows Event Log channels (for example System), a Metrics View (Trial / Pro).
- Allow AI access: Settings > AI Access (MCP) > Allow AI access (MCP). TKTail remembers it; turn it off there or with Tools > Allow AI Access (MCP).
- Connect your assistant. On the same page, Copy Client Configuration copies a ready entry for your assistant.
With Claude Code: save it as
.mcp.jsonin a folder and startclaudethere (details: AI integration (MCP)). - Ask something simple: “What am I looking at in TKTail?”
- Check the evidence: the answer names files, lines and times - open them in TKTail; the assistant’s searches are in Search Results, marked AI.
- Allow more only when you need it: folders beyond your open tabs (Investigation Roots), saving searches, alerts or formats - each is its own switch (Permissions).
Things you can ask
- “Show me the top 10 client IPs causing errors in the last hour.”
- “How many requests failed per minute between 10:00 and 11:00?”
- “Find requests where elapsed time exceeded 1000 ms, and group them by URL.”
- “What is the average and the maximum time-taken of the slowest URLs?”
- “Which accounts produced the most payment failures today?”
- “Did the service log a restart around 22:11, and what did the System event log say then?” (with System open)
- “What did CPU and memory do around the first error?” (Trial / Pro, with a Metrics View open)
- “Is the Payment errors alert running, and which of the dated files is it reading now?”
- “Create an alert for FATAL in the orders log, including the rotated files.” (with your permission)
A production incident, with an assistant
A synthetic example: an IIS site answers 500 for some clients since 10:05; the application writes an orders log.
- You open
u_ex261102.log(the IIS log of the day) andorders-2026-11-02.login TKTail, and the System channel. - “Which clients get server errors, and since when?” - the assistant searches
sc-status >= 500and lets TKTail summarize every match: the top 10 client addresses with their counts, and a per-minute histogram that starts at 10:05. It receives a few kilobytes, not 240,000 records. - “Which URLs are slow?” - a summary grouped by
cs-uri-stemwith the average and maximumtime-taken. - “What does the application log say at 10:05?” - the records around that time, and a search for
elapsed:values of 1000 ms or more. - “Anything in the System log?” - the events of the open System tab around 10:05.
- “What did the machine do then?” (Trial / Pro, with a Metrics View open) - CPU, memory and disk in the minutes around 10:05, next to the first errors.
- “Keep the evidence - the log rotates in an hour.” - the assistant saves the error records with 20 records around each, plus the System events of the same minutes, as one redacted evidence package (with Allow AI to save evidence and pin searches on), and verifies it.
- “Watch for this.” - the assistant proposes an alert on the orders log - on its dated series, so it follows tomorrow’s file too - and has TKTail check it. With Allow AI to manage alerts on, and after you say yes, it saves it; otherwise it gives you the definition to save yourself.
- “Is the alert running?” - TKTail reports its state, the physical file it reads now, how far it has read and when it last evaluated new lines.
Every step’s answer names its evidence; the evidence package keeps the records after the log is gone, and the alert’s incidents later keep the records around each match.
Incidents and deployments
Each time an alert fires, TKTail keeps an incident - the record that matched, the records around it, Windows events and counters of those minutes (Incidents). An assistant reads them: “What happened in the last Payment errors incident?”, “List the new incidents since 14:30” - new means not yet acknowledged by you. It can link an evidence package to an incident. Acknowledging, pinning and deleting incidents are yours, in the Incidents view - an assistant cannot change an incident.
After a deployment, ask about the time since it: “List the incidents of every alert since 14:33, and compare them with the hour before.”, “Search the orders log since 14:33 for errors that did not occur before.” - the assistant answers with incident lists and searches by time range. TKTail has no maintenance windows or named reference points yet: alerts that fire during a planned restart are incidents like any other (you acknowledge them afterwards).
Permissions
| Switch (Settings > AI Access (MCP)) | Default | What it allows |
|---|---|---|
| Allow AI access (MCP) | off | assistants may connect and read what is open in TKTail (the Safe Workspace) |
| Investigation Roots (Trial / Pro; Tools > AI Investigation Roots…) | none | below each folder you add and enable: listing, searching and opening log files - only you add folders |
| Allow AI to save custom formats | off | saving a format profile the assistant wrote |
| Allow AI to save searches and Metric Sets | off | saving, changing and deleting Saved Searches and your Metric Sets |
| Allow AI to manage alerts | off | creating, changing, enabling, disabling and deleting alerts |
| Allow AI to save evidence and pin searches | off | saving redacted evidence packages in the Evidence Store, within its limits, and pinning searches (deleting a package always needs you) |
How the assistant connects is separate: over stdio it is a program on your computer (every edition); over HTTP (Trial / Pro) it needs the bearer token TKTail shows you. The license decides which features exist (Metrics, HTTP, Investigation Roots); the switches decide what an assistant may do with them. Details and every refusal: Agent permissions.
AI assistant
| MCP (stdio on this PC, or HTTP with a token)
v
TKTail - Allow AI access, the license's features
|-- what is open in TKTail (Safe Workspace)
|-- folders you approved (Investigation Roots)
|-- changes: only with their own switch (formats, searches + Metric Sets, alerts, evidence packages)
v
logs, event logs you opened, Metrics, alerts, incidents
Search and summaries
An assistant answers analytical questions without reading every record: a search can summarize every match as it
finds it - grouped by up to four keys (a field such as c-ip, or a value taken from the text), the top N groups, a
histogram per second, minute, hour or day, and the count, sum, minimum, maximum and average of a number. It can ask for
only the count, or result pages with only the fields it needs. The summary says whether it covers everything
(the search completed, nothing over a bound) - an assistant reports that with the numbers. How much less crosses to
the assistant, measured: TKTail and scripting tools.
Rotated logs
Logs that start a new file every day - info-2026-11-05.log, info-2026-11-06.log, IIS u_ex261106.log - are one
series to TKTail. An assistant should search and watch the series, not one day’s file: an alert made on today’s file
follows tomorrow’s, also after a restart and without a tab. Its incidents always name the physical file where the
match was, and the alert’s status shows which file it reads now. Details: Rotating dated log files.
Preserving evidence
Under load a rotating log may keep only minutes of history. When an assistant finds what explains a problem, it can preserve it at once - instead of copying a whole log with a shell command:
search -> aggregate / read -> pin the search (if the investigation goes on) -> save evidence
-> verify the package -> link it to the incident -> a shareable copy for the vendor
- Save evidence keeps the records the search found and the context asked for - by records (an error and its stack trace are one record) and / or by seconds - plus, if asked, other logs, event logs and Metric Sets of the same time window. TKTail goes straight to those records’ place in the file: 57 errors with 20 records of context from a 1 GB trace became a 142 KB package in 0.35 seconds, 47 MB (4.7 %) of the file read (measured).
- Why through TKTail and not the shell: an assistant with only a shell keeps evidence by copying whole logs - gigabytes, secrets included, with nothing saying where the copy came from. Through TKTail it gets bounded ranges, the source’s identity and offsets, redaction, hashes and a record of who asked (you or an AI client, over which connection), when and why (the note) - and the package stays until you delete it.
- Redacted before anything is written: Authorization / Bearer headers, JWTs, passwords and connection-string passwords, API keys, private keys - and your own rules. Everything the assistant later reads from a package is the redacted package; there is no “unredacted” option for it.
- Pinning keeps a search across restarts and outside the assistant’s limit of 5 searches - but only its references: the bytes are safe once they are in an evidence package. Pinning with preserve does both at once.
- Verification checks the package’s hashes; a package stays valid after the original log is gone.
- Deleting a package: the assistant can only ask; you confirm or reject it in the Evidence Library.
Requests that work well:
| You ask | The assistant |
|---|---|
| “Save these 57 results with 20 records of context.” | saves the search’s results with 20 records before and after each |
| “Include the IIS log and the Application event log for ±15 seconds.” | adds those sources for the same window |
| “Create a redacted evidence package for the vendor escalation.” | saves it with a note; you make the shareable copy in TKTail |
| “Pin this search and preserve its evidence.” | pins it and saves a package at once |
| “List the saved evidence.” | lists the packages: when, what, how big, how many secrets were redacted |
| “Verify the package’s integrity.” | reads the package and reports VALID / MODIFIED / INCOMPLETE |
| “Delete the duplicate package.” | asks you: the package is marked in the Evidence Library, and only you delete it |
| “The vendor wants the whole trace file.” | saves the whole open file - redacted, compressed, paced - only when you really need it |
Everything about packages - the library, redaction rules, limits, sharing: Saving evidence.
Alerts with an assistant
The recommended order: the assistant looks at the log and its format, writes the condition as a search and runs it on the log, checks the proposed alert with TKTail (it tells what is invalid and whether it would be evaluated now), and asks you before saving. After saving, it checks that the alert is alive (state, current file, last evaluation). TKTail cannot yet replay an alert over past data to show how often it would have fired - run its condition as a search over the period instead. Alerts and monitoring.
Metrics and Windows events
With Trial / Pro, the assistant reads the Metrics TKTail collects - the Metric Sets, current values, samples over a
period, summaries - and relates them to log times (Metrics). It reads the Windows Event Log channels and
.evtx files you opened (Windows Event Log); open System or Application yourself when the
investigation needs them.
Evidence and which TKTail answered
Results carry the source, the line or event, the record’s own time and a reference to open it again; incidents keep
the records around each match even after the file rotated. Every answer also names the TKTail that produced it - this
installation (nodeId) and this run (instanceId) - so an assistant does not mix up two computers or two runs.
Which TKTail answered.
When TKTail is hidden, closed or restarted
- Hidden in the notification area (the Hide to Notification Area button in the title bar, or Keep Running in the Notification Area when exiting with enabled alerts asks): TKTail keeps running - alerts keep evaluating, an assistant keeps getting answers.
- Closed: alerts stop and assistants get no window to ask (TKTail is an application, not a Windows service).
- Restarted: alert definitions, their enabled state, incidents and their evidence, the workspace and the settings
come back; enabled alerts start watching again at the end of each file (lines written while TKTail was closed are not
evaluated); the assistant talks to a new run (a new
instanceId) - earlier incidents keep the run that captured them. What survives a restart?
Assistants that work with TKTail
| Client | Tested | Connection | Notes |
|---|---|---|---|
| Claude Code | yes | stdio, HTTP | the client of TKTail’s acceptance runs (setup) |
| Other MCP clients (Claude Desktop, Visual Studio Code, …) | not qualified | stdio, HTTP | a client of MCP 2025-03-26, 2025-06-18, 2025-11-25 or 2026-07-28 can connect - protocol-compatible, not tested by TKTail (Connect any MCP client) |
Questions
Does an assistant get unrestricted file access? No. It reads what is open in TKTail; with Trial / Pro also log files below folders you approved. Nothing else.
Can it see passwords? It sees what your logs contain. Search results and records are sent as the log has them - if a log writes tokens or passwords, an assistant you connect reads them there. Evidence packages are different: secrets are replaced before a package is written, and an assistant only ever reads the redacted package. Close logs with secrets, or do not allow AI access while they are open.
Does my data leave the computer? TKTail itself contacts nothing over the network. What it returns to an assistant goes to that assistant - for most assistants, to its AI service. Allow access only while you want the assistant to see what you are looking at.
Can it restart a service or run PowerShell through TKTail? No - TKTail has no such tool.
Can it read the System event log? When you opened System in TKTail, yes; it cannot open a channel itself.
Can it change my alerts? Only with Allow AI to manage alerts on, and it should ask you first. Alerts it saved are marked as made by an AI client in Manage Alerts.
Do alerts keep running when TKTail is in the tray? Yes. When TKTail is closed, they stop.
Can I see which source an answer came from? Yes: every result names its file and line or its event, and opens in TKTail.
Which TKTail did it talk to? Each answer names the installation and the run (above).
More
AI integration (MCP) - connecting, HTTP, what is recorded · Agent permissions · Agent quickstart - the loop an agent follows · Investigation playbooks · MCP tool reference · the AI Agent Harness of each release.