Skip to content
TKTail

AI

AI-assisted investigation

TKTail gives an AI agent structured, bounded investigation capabilities instead of forcing it to improvise with raw files, shell commands and one-off scripts. The agent asks; TKTail searches, parses, counts and correlates where the records are, keeps the proof, and answers with the result - each answer naming the TKTail that produced it.

You can build these investigations yourself - with PowerShell, Python or C#. TKTail gives you a tested, reusable, bounded implementation already: fewer one-off scripts, more reusable investigation.

Works with your logs, not only built-in formats

Will an AI understand your application's logs? TKTail reads 35+ formats as fields out of the box - IIS, JSON lines, CSV, syslog, Apache / nginx and more. For your own format, the agent drafts a custom format from a sample of records, previews it on real records - each one a match, a partial match or no match - and saves it as a profile when you allow it. From then on TKTail parses every record itself; no model reads your log line by line.

Teach TKTail the format once. Let every later search, alert, evidence package and AI session work with structured fields.

  1. Sample - a bounded sample of records - not the whole log
  2. Draft - a format from a template: line, multi-line, delimited, application log
  3. Preview - on real records: which match, which fields, which types
  4. Save - a reusable profile - only with your switch on
  5. Use the fields - in searches, summaries, alerts and evidence
  6. Reuse - next week, in a new session: no format work again

A proprietary line:

2026-11-08 12:32:11.391|ACCOUNT=ACC-1042|ORDER=ORD-AB1234|STATUS=PENDING|ELAPSED=1350|NOTE=risk check
In the lineField
2026-11-08 12:32:11.391timestamp
ACC-1042account
ORD-AB1234order
PENDINGstatus
1350elapsed (ms)

Then the agent asks, and TKTail answers with a summary: Which accounts have the most pending orders? · Show orders with elapsed over 1000 ms. · Average elapsed per account?

Saving a format needs Allow AI to save custom formats (off by default). Making it the permanent choice for a file or folder, and deleting a format, stay with you in Custom Format Studio. Shared meanings across formats (semantic profiles) and a record-size summary are planned - not in the current release. A format never widens what the agent may read.

Teach TKTail your log format - the tutorial · Custom Format Studio

Custom Format Studio: a format drafted from a log, its fields and every sample record checked

What an agent can do through TKTail

The connection is the Model Context Protocol (MCP) - the plumbing. What matters is what the agent can do through it:

  • Search

    text, regular expressions, fields and time ranges across open logs, folders and event logs - bounded result pages

  • Structured records

    the whole logical record parsed by its format - fields, severity, time - not a line of text

  • Aggregation

    group by, top N, time histograms and number summaries computed inside TKTail, over every match

  • Correlation

    ordered sequences across sources within time windows, joined by keys

  • Metrics

    Windows Performance Counters of the Metric Sets you collect - current values, history, summaries

  • Windows Event Log

    channels and saved .evtx files, searched like logs

  • Alerts

    conditions on logs and counters - an agent saves one only with your consent and can check that it is alive

  • Incidents

    what an alert captured - the trigger and its evidence - readable after the logs rotated

  • Incident managementplanned

    acknowledge with a note, baselines, maintenance windows, annotations through MCP

  • Evidence

    the records that matter, redacted and hashed, kept after the source rotates or is deleted

  • Provenance

    every answer names the TKTail and the run that produced it

  • Permissions

    off until you enable it; every kind of write behind its own switch

Do the work where the records are

Instead of sending thousands of records to a model, TKTail searches, filters, extracts, groups, aggregates, builds histograms, projects and counts next to the data - and sends only the useful result. The model reads an answer, not a log.

Historical benchmark — TKTail 1.1.0 - measured: Which 10 clients sent the most POST requests answered 503? over iis-100mb (1,365 matches) - TKTail 1.1.0, suite competitive-bench-v1, each answer checked against the ground truth. Measured on TKTail 1.1.0 (commit aa57462840, Release - Shipping PGO fc87e24fd604) on 2026-11-06. Superseded by competitive-bench-v2 (Historical benchmark — TKTail 1.3.0-rc.1). The current release is TKTail 1.2.1; the release candidate in testing is TKTail 1.3.0-rc.6.

WorkflowSent to the AI (MCP answers)MCP callsExternal scriptTime
Full records - every record read whole, counted by a script3.55 MB1,380yes16.1 s
Projection - only the needed field, counted by a script559.3 KB15yes3.19 s
TKTail aggregation - grouped and counted in TKTail, top 104.4 KB1no1.14 s

The aggregation answer is 805x smaller than full records and 127x smaller than projected pages; the count alone is 965 B. These are the bytes and calls measured - not tokens, not cost.

Raw speed is a different question. In the benchmark's 8 cold scenarios the fastest was C# (.NET 10) (8) - the benchmark shows every result, losses included. TKTail's AI value is not that it always out-scans a compiled program: it is reusable, structured investigation with persistent context, permissions you control and bounded answers.

Measured so far: the data and the calls one question needs, and how long TKTail and the scripts take. Whole investigations by an agent - time to a conclusion, tokens as the model's provider reports them, an agent with a shell against an agent with TKTail - are published here with their method and raw data once they are measured.

For Operations

From an incident to a verified fix

Administrators, DevOps engineers, SREs and support: an assistant investigates what happened on the machine where it happened.

  1. Incidentan alert fired, or someone reports a symptom
  2. Searchthe logs and event logs you opened or approved
  3. Correlatethe same minutes across logs, the Event Log and Metrics
  4. Preserve evidencethe records that explain it, redacted, before the logs rotate
  5. Record root causethe conclusion in the evidence package's note - the next shift reads it
  6. Verify the fixthe same search after the change - the counts compared

Today the conclusion lives in the evidence package and its note. Incident annotations, baselines and maintenance windows through MCP are planned - not in the current release.

Investigate a production incident

For Developers

Runtime facts for a coding agent

TKTail is the runtime-observation layer. It does not edit source code - a coding agent such as Claude Code works with the code; TKTail tells it what the program actually did.

  1. Codethe agent changes the code
  2. Build / runthe program runs and writes its logs
  3. TKTailfollows the growing log, its events and counters
  4. Logs + events + metricserrors, slow operations, warnings - counted and compared
  5. Coding agentreads the facts, not a wall of text
  6. Next changeand the next run shows whether it helped

The same questions after every build: did the error go, did the slow operation get faster, which warning is new.

Develop with a coding agent

TKTail: a live application log beside its process metrics - what a coding agent reads after a run

More than a search result

A search answers "3,554 requests matched". An investigation needs proof that survives the log: the records that matter, where each byte came from, secrets removed, and a way for someone else to check nothing changed.

  1. Found - the agent finds the records that explain the problem
  2. Preserved - TKTail keeps those records and their context - not a copy of the whole log
  3. Redacted - tokens, passwords, connection strings and keys removed before anything is written
  4. Recorded - where every byte came from, and a SHA-256 for every file
  5. Kept - still verifiable after the source log rotated or was deleted

Measured on a 1.0 GB synthetic trace: 57 results with 20 records on each side became a 142 KB package in 0.35 s. TKTail read 47 MB of the file (4.7 %) - never all of it.

Console output is not equivalent: it has no source identity, no byte ranges, no redaction, no hashes and no failure state - and it is gone when the window closes. A capture that fails says so (in the Evidence Library and to the agent) instead of looking saved.

Saving evidence

The Evidence Library: saved packages with their notes, sources, time ranges and redaction counts

Controlled access for AI

Give the agent the investigation capability it needs - not the machine-level capability it does not.

An agent with a shell works with the authority of the Windows account that runs it and solves a question by writing and running code. Through TKTail it gets named investigation operations - search, summarize, read records, Metrics and events, save evidence - each with a defined answer, a permission and bounds. TKTail adds this boundary inside Windows security; it never replaces it.

  1. Windows accountthe operating system's security - always underneath; TKTail never replaces it
  2. Connectionstdio on this PC, or HTTP with a token
  3. AI access switchoff until you turn it on
  4. Scopewhat is open + folders you approved
  5. Per-change switchesformats, searches, alerts, evidence - each off by default
  6. Confirmationdeleting evidence needs you
  7. Boundsanswer sizes, pages, stored results, waits, regex limits, quotas
Off until you enable it
AI access is a setting; nothing answers before you turn it on, and turning it off refuses the next call.
Your scope, not the account's
An agent reads what you opened in TKTail and, with Trial / Pro, the folders you approved as Investigation Roots - not everything the Windows account can read. Only you add folders.
Read, change and delete apart
Alerts, Saved Searches, Metric Sets, custom formats and evidence - each kind of change a separate switch, off by default.
People decide what is consequential
Deleting evidence is a request; you confirm or reject it in TKTail. Incidents and folder approvals are not available to agents at all.
No code execution
TKTail runs no shell, script or program for an agent: it offers named operations with defined answers and bounds.
Content is data
A log line that tells an AI to read a secret changes nothing in TKTail: permissions come from your settings and license only.
Provenance
Every answer names the TKTail node and run that produced it; evidence names each source's identity and byte ranges, with SHA-256 hashes.
Redaction, exactly
Evidence packages and pinned search snapshots are redacted before they are written. Ordinary reads of a log return its text as stored - secrets included: AI access means reading what is open in TKTail.

Preview: Security & trust - access rules, secret masking, audit reports, Forensic Mode and Evidence

Settings, AI Access: AI access and every kind of write behind its own switch, off until turned on
What the tested solutions provide
DimensionTKTailPowerShell, Python and C# benchmark helpers
Purpose-specific operationsbuilt-in search, aggregate, records, metrics, events, evidencenot in the helper the helper is code; the agent writes or runs code
Arbitrary code execution neededn/a no - for the supported operationsnot in the helper yes - the diagnostic itself is a program
Filesystem scope narrower than the accountbuilt-in open sources + approved foldersnot in the helper whatever the account can read
Separate read / change / delete permissionsbuilt-in one switch per kind of changenot in the helper
Confirmation of destructive actionspartial evidence deletion; alert / search deletion: switch onlynot in the helper
Resource boundsbuilt-in fixed caps; an operation budget is plannednot in the helper
Secret redactionpartial evidence and pinned snapshots; normal reads are rawnot in the helper
Evidence with provenance and hashesbuilt-in source identity, byte ranges, SHA-256, verificationnot in the helper prints an answer
Actor auditpartial a log line per AI call and change; no client identity yetnot in the helper
Cancellationbuilt-in an agent cancels its own searchesnot in the helper end the process
Durable investigation contextbuilt-in pinned searches, evidence, formats, incidentsnot in the helper
Installation and runtimebuilt-in one TKTail.exe, deployed oncen/a Windows PowerShell 5.1 is part of Windows; Python, PowerShell 7 or the .NET runtime may need installing (a C# helper can also be self-contained or NativeAOT, a Python helper frozen); the helper must be written and deployed

Helpers: the PowerShell, Python and C# programs of the reproducible benchmark - competent, purpose-built code that answers each question. They can be extended to do more; this compares what the tested programs do, not what the languages can do. A hardened script setup is possible - a dedicated low-privilege account, a JEA endpoint, an allow-listing host - and is configuration and engineering your team adds and maintains.

TKTail governs TKTail's tools - not other tools the AI client has (a shell, file access), not what the client sends to its model provider, and not the rights of the Windows account. Not yet available: naming which AI client acted, a separate approval of each consequential operation, time-limited permissions, an append-only audit log. On a developer machine a coding agent usually has a shell already - TKTail then adds a stable, structured way to read what the program did, not a sandbox.

Permissions and access model · What each tool may do

No diagnostic runtime stack required

An AI agent that investigates through TKTail starts with investigation tools - not by assembling a scripting environment on the machine being diagnosed.

Through TKTail

  1. An approved native executableone portable package, Windows system DLLs only, no additional runtime
  2. Controlled MCPoff until you allow it; what is open plus the folders you approve
  3. Structured investigationsearch, aggregate, correlate, preserve - named operations with bounded answers

With a helper written for the question

  1. Runtime discoverywhich language runtimes and versions the machine has
  2. Helper creationa parser, a filter and a counter, written for this question
  3. Dependency managementa runtime, packages or a build to bring, approve and keep current
  4. Validationis the output right, complete and safe to keep?

One package (README.txt, THIRD_PARTY_NOTICES.txt, TKTail.exe, help/); TKTail.exe is native x64 code with the C runtime linked in statically and imports only Windows system DLLs - no .NET. Windows: Windows 10 version 1607 or later, Windows 11, or Windows Server 2016 or later - x64.

Normal local investigation needs no .NET runtime, no Python, no PowerShell 7, no external database, no log server and no agent service: no additional runtime dependencies.

A runtime is not always missing: Windows PowerShell 5.1 ships with Windows, a C# helper can be published self-contained or as NativeAOT, a Python helper can be frozen into one executable. The larger difference is a one-off helper against prebuilt investigation capabilities that are documented and tested with every release.

For operators: portable - extract and run, no installer and no administrator rights for normal use; no external backend, database or agent service for normal workstation use.

Deployment and the machine being diagnosed · System requirements · Download

You can build these capabilities yourself

PowerShell, Python and C# are excellent tools, and a team can build parsers, aggregation, authorization, evidence, redaction, audit and persistence with them. TKTail exists so that this infrastructure does not have to be written, tested, secured and maintained again for every investigation environment - and so the next investigation starts with the formats, searches and evidence of the last one.

Built into the tested solution?
CapabilityTKTailBenchmark helper (PowerShell / Python / C#)
Large-file searchyesyes - for the question it was written for
Structured formats (35+ built in)yesno - one layout, in the code
Your own formats (Custom Format Studio, reusable profiles)yesno
Aggregation (group, top N, histogram, numbers)yesone fixed summary per program
Metrics (Performance Counters)yes - Trial / Prono
Durable Metrics historyplannedno
Windows Event Logyesno
Rotating file seriesyesno
Compressed history (.gz)plannedno
Alertsyesno
Evidence packages: redaction, provenance, hashes, verificationyesno
Incident management (notes, baselines, maintenance)plannedno
Saved and pinned searchesyesno
Access control for AI clientsyesno
MCP interface for AI clientsyesno
Offline Help and an AI guideyesno

Every capability with the release it shipped in and each tested helper's state, read from the helpers' source:the capability matrix of the investigation workflow.

Evidence a custom helper would have to implement

  • the selected records and their context (by records and by seconds)
  • several sources in one package (logs, event logs, Metric Sets)
  • each source's identity (file identity, not only its name) and exact byte ranges
  • the format the records were read with and their parsed fields
  • secret redaction with built-in and your own rules, before anything is written
  • a SHA-256 for every file and for the archive, and a manifest
  • verification: VALID, MODIFIED, INCOMPLETE
  • atomic finalization, cancellation and visible failure states
  • size quotas and free-disk protection
  • a library: list, look up, share a copy, delete with confirmation
  • permissions for AI clients and an MCP contract
  • everything kept across restarts and after the source rotated

Each one also needs tests, security review, documentation and maintenance. We do not estimate the hours - it depends on your team.

An administrator's question

Without TKTail

  1. ask the AI
  2. it writes a PowerShell script
  3. you check the output
  4. it writes the next script
  5. evidence is copied by hand
  6. next time: start again

With TKTail

  1. search
  2. summarize in TKTail
  3. Metrics and Windows events of the same minutes
  4. save redacted, hashed evidence with a note
  5. next time: the formats, pinned searches and evidence are there

A developer's run

Without an integrated runtime view

  1. the agent changes the code
  2. it writes helper scripts to read logs and process state
  3. it debugs those helpers
  4. repeats for the next run

With TKTail

  1. the agent changes the code
  2. it asks TKTail: errors, slow operations, what changed since the last run
  3. the next change

AI clients

  • Claude Code - tested: real Claude Code sessions against the shipping build are part of the release acceptance (for TKTail 1.2.0: Claude Code 2.1.302 with the model claude-opus-5-5).
  • Other MCP-compatible AI clients - protocol-compatible (standard MCP over stdio; Streamable HTTP with Trial or Pro), not tested by us.

Connecting an AI client

Shaped by real production investigations

Each gap an assistant hit in a real investigation became a capability:

Answers too large to send to a model
aggregation, projection and count-only answers
Evidence lost when a log rotated
evidence packages, kept after the source is gone
A search repeated because it was closed
pinned searches, kept across restarts
A few records that matter in a huge log
evidence of exactly those records and their context

Release candidate - for testing, not the recommended release

Preview - TKTail 1.3.0-rc.6 (Release Candidate)

AI access in TKTail 1.3.0-rc.6

  • AI access rules - exactly the files, folders and event logs you allow; default deny, an exclusion always wins: every edition (TKTail 1.2.1: Trial / Pro, as Investigation Roots).
  • Secrets masked in everything TKTail sends to an assistant - passwords, tokens, keys and your own rules (AI Data Protection); your files and TKTail's own searches keep the real data.
  • AI Investigation Activity: each call an assistant made, the decision about it and its scope, per client session - with its report; the AI Access Report says what an assistant could reach right now.
  • Forensic Mode: TKTail performs no intentional persistent application writes to the investigated environment while strict Forensic Mode is active.
  • Why an alert fired: the evaluation trace of every incident - each condition, whether it held and contributed, the counter samples it was decided on.

In TKTail 1.2.1, the current Stable release, an assistant reads the sources open in TKTail and the folders approved as Investigation Roots (Trial / Pro), and ordinary reads return records as stored - the controls above describe that release.

AI Access Rules: allowed folders and files, an exclusion and an Event Log rule

Open the full-size screenshot (839 × 504)

AI Access Rules: allowed folders and files, an exclusion and an Event Log rule - TKTail 1.3.0-rc.6
AI Investigation Activity: an assistant's calls - allowed or refused and why

Open the full-size screenshot (1241 × 714)

AI Investigation Activity: an assistant's calls - allowed or refused and why - TKTail 1.3.0-rc.6

Preview: Security & trust

The release candidate TKTail 1.3.0-rc.6 reads 17 archive and compression formats - each one searched, aggregated, kept as evidence and open to AI clients over MCP, where it lies; 2 more are named and not read.

TKTail 1.2.1, the current Stable release, does not read archives or compressed logs: every format here was qualified in a release candidate - 1.3.0-rc.1 or later.

Archive and compressed log formats - the Preview's compatibility matrix · JSON

Its own documentation for AI agents, inside TKTail.exe

The release candidate TKTail 1.3.0-rc.6 carries its own documentation for AI agents, compiled into the executable: version-matched to that exact build, available offline, read one small topic at a time - nothing to download, nothing injected into a session.

Topics
503
Size
327 KB compressed (845 KB of text)
Bound to
TKTail 1.3.0-rc.6, commit 98535203bc - pack format 1, document schema 1

How an agent reads it: the MCP tools tktail_list_knowledge and tktail_get_knowledge; the command line tktail knowledge list | get | export | verify.

Topics by category
CategoryTopics
start1
concepts8
workflows2
permissions3
limits1
help420
product1
tools64
compatibility1
licensing1
errors1

The current Stable release, TKTail 1.2.1, is documented by this site's Help and its own AI Agent Harness.

Download the release candidate