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).
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. TKTail counts, groups and summarizes itself: the top 10 client addresses of 240,000 errors is a few kilobytes, not 240,000 records the assistant has to read and count.
- 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?” |
| 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; read a file that is neither open in TKTail nor below a folder you approved; add an approved folder; acknowledge or delete incidents. 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, and alerts on “N matches within a time window”.
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.
- “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 alert’s incidents later keep the records around each match.
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 |
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)
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.
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 toolbar’s Hide to Notification Area button, 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. TKTail does not remove secrets from log records - if a log writes tokens or passwords, an assistant you connect reads them. Close such logs, 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.