AI · Investigation workflow
From a production symptom to durable evidence
What does it take to go from a production symptom to a reliable diagnosis and durable evidence?
A storm of 503 responses, a slow endpoint, an error nobody has seen before. Every investigation needs the same things: the right records, read with their structure, counted and correlated - and proof that still holds when the log has rotated. This page compares two ways to get there on Windows: TKTail, and purpose-built helpers written in C#, Python and PowerShell 7 - for an operator and for an AI agent.
C#, Python and PowerShell can do everything on this page, and teams build excellent diagnostic tooling with them. The difference is where the work lives: in a helper it is designed, written, tested, deployed and maintained for each environment; in TKTail it is a prebuilt investigation capability you reuse. Where a helper is faster, this page says so.
- Execution
- A purpose-built program can be faster at the one question it was written for - the published benchmark shows it, losses included.
- Investigation
- TKTail turns a question into a structured answer and keeps the proof - redacted, hashed, verifiable - without code written first.
- Production operation
- Profiles, searches, alerts and evidence are reusable, from one portable executable with no additional runtime stack on the machine being diagnosed.
Three ways to compare
Three different questions, three different answers. Read the one you are asking - a raw benchmark answers the first, not the other two.
Execution: the same work, timed
Once equivalent code exists, how fast does it run?
An execution comparison is fair only when both sides do the same work. Benchmark v2 measures it level by level - raw reads, line framing, a literal search, a structured search, an aggregation, done identically by every program, every answer checked equal - on TKTail 1.3.0-rc.1 (a release candidate): TKTail's engine takes less time at some levels and more at others, shown as measured. The purpose-built run compares programs with the complete TKTail workflow. The programs split lines, read one or two fields and count; TKTail also decodes and validates the text, frames records, builds typed fields, keeps the results pageable with their offsets, records the source's identity and answers over MCP - so that run is not an engine comparison, and a purpose-built program is expected to be quick at its one question.
| Scenario | Cold: lowest median | TKTail cold | Warm: lowest median | TKTail warm |
|---|---|---|---|---|
literal-errorCount the lines containing the literal text ERROR (case-sensitive). | C# (.NET 10)482 ms | 869 ms1.80x the lowest median | C# (.NET 10)332 ms | 418 ms1.26x the lowest median |
elapsed-ge-1000Count the records whose "elapsed: <number>ms" is 1000 or more (the number read exactly; 1000.000 counts). | C# (.NET 10)876 ms | 6.02 s6.9x the lowest median | C# (.NET 10)739 ms | 5.26 s7.1x the lowest median |
count-5xxCount the requests with sc-status 500 or higher. | C# (.NET 10)1.25 s | 6.10 s4.9x the lowest median | C# (.NET 10)935 ms | 5.36 s5.7x the lowest median |
count-slowCount the requests with time-taken 1000 (ms) or more. | C# (.NET 10)2.20 s | 12.4 s5.6x the lowest median | C# (.NET 10)964 ms | 5.41 s5.6x the lowest median |
top-ip-5xxThe 10 client addresses (c-ip) with the most requests with sc-status 500 or higher, with their counts. | C# (.NET 10)1.39 s | 8.09 s5.8x the lowest median | C# (.NET 10)2.03 s | 5.54 s2.7x the lowest median |
top-uri-5xxThe 10 URL paths (cs-uri-stem) with the most requests with sc-status 500 or higher. | C# (.NET 10)1.30 s | 6.31 s4.8x the lowest median | C# (.NET 10)2.14 s | 5.76 s2.7x the lowest median |
per-minute-5xxRequests with sc-status 500 or higher per minute (the W3C time is UTC), in time order. | C# (.NET 10)1.28 s | 6.24 s4.9x the lowest median | C# (.NET 10)2.03 s | 5.71 s2.8x the lowest median |
top-ip-503-postThe 10 client addresses with the most POST requests answered 503. | C# (.NET 10)1.27 s | 6.05 s4.8x the lowest median | C# (.NET 10)2.08 s | 5.11 s2.5x the lowest median |
Lowest median, over every cold and warm scenario of this run: C# (.NET 10) in 16 of 16. TKTail is shown with its factor against the lowest - where it loses, the table says so.
Benchmark v2: the same work, level by levelThe full benchmarkWhat TKTail does that the programs do notMethodology
Investigation: question, answer, evidence
From a symptom, how do you reach a correct answer - and keep the proof?
Here the unit of work is an investigation, not a scan: the right sources and their format, a search, a count, a correlation, an answer someone can check - and evidence that survives the log. What matters is the time to a correct, evidenced answer, the data that has to move, the code that has to be written first, and what is left for the next person.
- Questionthe symptom, in words
- Sources and formatwhich logs, event logs and counters - read as records
- Searchthe records that match
- Aggregatecounted and grouped where they are
- Correlatethe same minutes elsewhere
- Answersmall, structured, checkable
- Evidencekept, redacted, verifiable
Historical benchmark — TKTail 1.1.0: "Which 10 clients sent the most POST requests answered 503?" over iis-100mb (1,365 matches), measured through TKTail's MCP: every record read whole sent the AI client 3.55 MB in 1,380 MCP calls; TKTail's aggregation sent 4.4 KB in 1 MCP call - 805x less. A script that aggregates locally can return a small answer too, once it is written and run. Bytes and calls as measured, not tokens.
End-to-end, an agent with TKTail against the same agent writing PowerShell, Python or C#: run 20261108T200818Z-ai-workflow-bench-v1 (a pilot) - see the AI workflow benchmark. The AI workflow benchmark
Scenario 1: a 503 incidentScenario 3: your own formatScenario 4: an AI agentThe evidence pipeline
Production operation: run it again, elsewhere, safely
What does it take to run it again next week, on another server, by someone else?
A diagnosis that worked once is not yet an operational capability. Production adds deployment, repeatability, monitoring, permissions, a lifecycle and maintenance - for TKTail and for a helper alike.
| Dimension | TKTail | A custom helper |
|---|---|---|
| Deployment | one portable package; no additional runtime on the machine being diagnosed | the program and what it needs to run - see Deployment |
| Repeatability | Saved Searches (versioned) and format profiles - named, run again by a person or an AI client | the script and its parameters, versioned and reviewed by your team |
| Monitoring | alerts with incidents and their evidence; dated series followed; back after a restart | a scheduler or service, state, notification - see Scenario 2 |
| Permissions | AI access off until allowed, Investigation Roots, one switch per kind of change - inside Windows security | the identity that runs it; a low-privilege account, JEA or an allow-listing host you configure |
| Lifecycle | versioned releases with release notes; settings, alerts and Saved Searches of earlier versions load unchanged | your versioning, your upgrades of its runtime and packages |
| Maintenance | a format change is one profile in Custom Format Studio | a format change is a change to each parser, and to its tests |
Scenario 2: monitoringDeploymentWhat you would buildCapability matrix
Comparison mode: Investigation
Scenario 1: an HTTP 503 incident
Customers report failed checkouts. Which clients and endpoints got 503 responses, since when, what else happened on the server in those minutes - and how do you keep the proof?
The tested helpers already answer one of these questions - the top 10 clients of 503 POST requests is a scenario of the benchmark - and each could be extended to every other step. The lanes list what that takes.
- Built in Built into TKTail
- In the tested helper the tested helper already does it
- DetermineObtainAdaptImplementIntegrateMust be implemented or integrated in the helper
TKTail
Built into TKTail
Deployment: TKTail.exe from one portable package - no additional runtime on the machine being diagnosed.
- Built inOpen the logs: the IIS log or its dated series - for an AI agent also a log folder you approve as an Investigation Root (Trial / Pro)
- Built inDetect the format: IIS W3C is recognized from its content; a format TKTail does not know becomes a profile in Custom Format Studio
- Built inSearch: sc-status = 503 and cs-method = POST over the incident window, across the series
- Built inAggregate: top clients, top endpoints, requests per minute - computed by TKTail over every match, for an AI agent working with you (MCP)
- Built inCorrelate: the System and Application event logs and, with Metrics (Trial / Pro), CPU, memory and disk of the same minutes
- Built inSave evidence: the results with records of context and the event log of the same window - redacted before anything is written
- Built inVerify: VALID, MODIFIED or INCOMPLETE - also after the log has rotated
- Built inKeep and share: the Evidence Library keeps it until you delete it; a shareable copy leaves out local paths
C# helper
Must be implemented or integrated in the helper
Deployment: A framework-dependent .NET 10 console program: the .NET runtime has to be on the machine that runs it. Publishing it self-contained (the runtime bundled) or as NativeAOT (a native executable) removes that step.
- DetermineFiles, layout, time zone: which files cover the incident (rotation), the field layout (#Fields can change within a file), the time zone (W3C times are UTC)
- ObtainBuild and runtime: the .NET SDK on a build machine; on the machine being diagnosed the .NET runtime - or a self-contained or NativeAOT build instead; approval to run it there
- In the tested helperTop 10 clients: a streaming read, W3C fields from #Fields, the 503 POST filter and the top 10 clients (top-ip-503-post)
- AdaptEndpoints and timeline: the top endpoints and a per-minute timeline of the 503 POSTs - the tested helper has both for all 5xx, so a small change
- IntegrateEvent Log and counters: an Event Log reader and performance counters (.NET APIs), joined with the log results on one time line
- ImplementEvidence: the records with their context, secret redaction, source identity, a manifest with SHA-256, verification
- ImplementKeep and share: where packages live, for how long, a copy without local paths
- IntegrateA usable answer: an answer a person or an AI agent can use - the tested helper prints one JSON line
Python helper
Must be implemented or integrated in the helper
Deployment: A CPython script: a Python runtime has to be on the machine that runs it (and any package a further step needs). A frozen, self-contained executable is an alternative.
- DetermineFiles, layout, time zone: which files cover the incident (rotation), the field layout (#Fields can change within a file), the time zone (W3C times are UTC)
- ObtainBuild and runtime: a Python runtime on the machine being diagnosed, and any package a step needs - or a frozen executable; approval to run it there
- In the tested helperTop 10 clients: a streaming read, W3C fields from #Fields, the 503 POST filter and the top 10 clients (top-ip-503-post)
- AdaptEndpoints and timeline: the top endpoints and a per-minute timeline of the 503 POSTs - the tested helper has both for all 5xx, so a small change
- IntegrateEvent Log and counters: an Event Log binding or wevtutil output, and the counters (a binding or typeperf), joined with the log results on one time line
- ImplementEvidence: the records with their context, secret redaction, source identity, a manifest with SHA-256, verification
- ImplementKeep and share: where packages live, for how long, a copy without local paths
- IntegrateA usable answer: an answer a person or an AI agent can use - the tested helper prints one JSON line
PowerShell 7 helper
Must be implemented or integrated in the helper
Deployment: A PowerShell script run with PowerShell 7, which is installed separately. The same script also runs on Windows PowerShell 5.1, which ships with Windows 10, Windows 11 and Windows Server 2016 and later.
- DetermineFiles, layout, time zone: which files cover the incident (rotation), the field layout (#Fields can change within a file), the time zone (W3C times are UTC)
- ObtainBuild and runtime: PowerShell 7 on the machine being diagnosed - or the Windows PowerShell 5.1 that ships with Windows, where the same script runs; your script policy - execution policy, signing (the benchmark started it with -ExecutionPolicy Bypass)
- In the tested helperTop 10 clients: a streaming read, W3C fields from #Fields, the 503 POST filter and the top 10 clients (top-ip-503-post)
- AdaptEndpoints and timeline: the top endpoints and a per-minute timeline of the 503 POSTs - the tested helper has both for all 5xx, so a small change
- IntegrateEvent Log and counters: Get-WinEvent and Get-Counter (PowerShell cmdlets on Windows), their output joined with the log results on one time line
- ImplementEvidence: the records with their context, secret redaction, source identity, a manifest with SHA-256, verification
- ImplementKeep and share: where packages live, for how long, a copy without local paths
- IntegrateA usable answer: an answer a person or an AI agent can use - the tested helper prints one JSON line
Comparison mode: Investigation
Find the cause, preserve the proof
A rotating log may keep only minutes of history. Once a search finds what explains the incident, TKTail turns the hits into a package that no longer depends on the log - every step below is in the current release.
- Search hita result with its source, line, byte offset and the record's own time
- Contextrecords or seconds around each hit - plus other logs, event logs and Metric Sets of the same minutes
- Redactionbuilt-in rules and yours, before anything is written; a rule that cannot run stops the save
- Provenancethe file's identity, the byte ranges, format and encoding, the search, the TKTail that made it
- Manifest and hashesmanifest.json and README.txt; a SHA-256 for every file and for the package
- VerificationVALID, MODIFIED, INCOMPLETE or UNSUPPORTED - also after the source is gone
- Evidence Librarykept until you delete it; linked to an incident; a shareable copy without local paths
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. How it was measured
Script output is not a verified evidence package - and the tested helpers do not claim to be one.
| Aspect | Script output (the tested helpers) | TKTail evidence package |
|---|---|---|
| What it holds | the answer as one JSON line (a count, a top 10); two record scenarios write the matching records to a file | the hits, the records around them, other sources of the same minutes, optionally every record parsed |
| Where each record came from | not recorded | the file's identity, byte ranges, format and encoding, the search |
| Secrets | as the log has them | redacted before anything is written; the manifest lists the rules that ran |
| Integrity | none | a SHA-256 for every file and for the package |
| Verification | none | VALID, MODIFIED, INCOMPLETE or UNSUPPORTED |
| A capture that fails | the process's exit code and error output | says so - in the Evidence Library and to an AI agent - instead of looking saved |
| After the log rotated | the output stays; nothing ties it to its source | independent of the log, still verifiable |
| Sharing | copy the file | a shareable copy without local paths, file identities or the TKTail's id |
Equivalent evidence in a helper
A helper can implement equivalent evidence functionality. Each of these then has to be designed, implemented, tested and maintained:
- 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
What the package proves - and what it does not
What the hashes prove: the package is unchanged since TKTail wrote it - not who made it. Verifiable investigation evidence, not a legal chain of custody. There is no unredacted package, by design. Not in the current release: packages of 4 GiB or more, watching numbered log generations to save them before they are deleted, an editor for redaction rules in the window.
Comparison mode: Production operation
Scenario 2: the 503s come back
The fix is deployed. How will you know if it happens again - tonight, after a restart, after the log rotates?
TKTail: one chain, reused
Built into TKTail
- Saved Searchthe question kept and versioned - sources, conditions, time; run again by you, or by an AI client
- Alertthe same condition language, a severity, how often to notify, what evidence to keep; an alert made from a search keeps its own copy of the condition
- Watchingenabled alerts watch their files with or without a tab, hidden in the notification area too, and follow a dated series to its newest file
- Incidenteach firing keeps the trigger record, the records around it and - when asked - Windows events and metric samples; still there after the log rotated
- Evidencea search's results saved as a package and linked to the incident
- Restartalerts, incidents and Saved Searches come back; enabled alerts watch again from the end of each file
Limits, plainly: TKTail is an application, not a Windows service - alerts run while it runs (hidden in the notification area too, or started with Windows), and lines written while it was closed are not checked. Not in the current release: alerts on Windows Event Logs or on sequences, e-mail, webhook or script actions, testing an alert against past data.
A custom helper: an operational service to build
Must be implemented or integrated in the helper - in C#, Python or PowerShell 7 alike
- Persist the questionthe query logic and its parameters, versioned with the helper
- Schedule or serveTask Scheduler (part of Windows) or a Windows service - its account, permissions and failure handling
- Keep statewhere it last read; rotation and truncation; files that appear while it is stopped
- Notifya channel (mail, chat, the event log), throttling, repeated matches
- Restart behaviourno line missed, no duplicate alert after a restart or a crash
- Log itselfwhat it checked and when - so a stopped helper is not mistaken for a quiet log
- Retentionhow long occurrences and their records are kept, and where
- Exporteach occurrence with its records, for the ticket
Comparison mode: Investigation
Scenario 3: a proprietary log format
Your order gateway writes its own format. Which accounts have the most pending orders - and which orders took longer than a second?
Teach TKTail the format once.
2026-11-08 12:32:11.391|ACCOUNT=ACC-1042|ORDER=ORD-AB1234|STATUS=PENDING|ELAPSED=1350|NOTE=risk checkTKTail: describe it once
Built into TKTail
- Custom Format Studioa template (line, multi-line, delimited, application log), the fields named, every sample record previewed: a match, a partial match or no match
- A reusable profilesaved once and used for the files it names - an AI agent can draft and check one, and save it only with your permission
- Every feature reads fieldssearch by field, aggregate, alert on a field condition, evidence with parsed records, an AI agent asking about accounts and orders
A custom helper: a parser per tool, kept in step
Must be implemented or integrated in the helper
- A parser per toolchainone for each language your helpers are written in - in the benchmark, three: C#, Python and PowerShell
- The hard partsmulti-line records, types, timestamps and time zones, malformed lines
- In stepevery parser and its tests changed when the format changes
- Shared by every usemonitoring, evidence and the AI path need the same parser - packaged so each of them can use it
- Profilerecords, fields, time, severity
- Searchby field and time
- Aggregategroup, top N, numbers
- Alerta field condition
- Evidenceparsed records in the package
- AIanswers in fields, not lines
Comparison mode: Investigation - Preview (release candidate 1.3.0-rc.3)
Scenario 4: the old logs too - rotations and archives
The incident began three days ago. The folder holds app.log, app.log.1.gz, support-bundle.zip and older-logs.tar.gz - where else does order 7741 appear?
Search folders, compressed rotations and archive entries without unpacking them first.
app.log
app.log.1.gz
support-bundle.zip (api/api.log, worker/worker.log)
older-logs.tar.gz (logs/app-2026-11-05.log ...)TKTail: the folder is the scope
Built into TKTail
- One folder searchthe plain and compressed logs read where they lie - app.log and app.log.1.gz, each generation once
- Archive contents on requestthe logs inside support-bundle.zip and older-logs.tar.gz only when asked, narrowed by entry masks; the answer says which archives it left out
- One answereach result names its archive and entry; one aggregation and one evidence package across files and archives
- A rotating log in one tabwhen app.log rotates the same tab moves on and the previous file closes; its previous files are its rotation history
- Its history, whatever the namingapp.log.1.gz or app-2026-11-08_23-00.log.gz beside app.log - a number or a date and time: the generations newest first by their rotation key; the agent never parses names
- An entry as a taba log inside support-bundle.zip opened where it lies - no temporary copy, the first lines at once
A custom helper: unpack, then search
Must be implemented or integrated in the helper
- Unpack firstgzip, ZIP and TAR decoded by another library or tool into a temporary folder that must be cleaned up
- Hostile inputexpansion bombs, sizes, encrypted and damaged archives - each handled on purpose
- One generation onceapp.log.1 next to app.log.1.gz is the same log - not counted twice
- Provenancea result must still name the archive and entry it came from, for the evidence
Comparison mode: Investigation
Scenario 5: an AI agent investigates
An agent is asked: "Which clients sent the most POST requests that failed with 503?" What happens next?
Through TKTail
- AI clientClaude Code or another MCP-compatible client
- Controlled MCPstdio on this PC, or HTTP with a token - off until you allow it
- Narrow tools50 named operations with schemas - 39 read, 11 change data, each change behind its own switch
- Search and aggregate locallyTKTail searches and groups where the records are
- A small structured answer4.4 KB for the top 10 - reading every record through MCP instead took 3.55 MB
- Evidencea redacted, hashed package - with your permission
Through a general shell
- AI clientwith a general shell or language runtime
- The account's authoritywhat the account the client runs as can reach
- Inspect the environmentwhich runtimes exist, where the logs are, their format
- Write codea parser and a counter for this question
- Run itand fix what fails
- Parse the outputthen the next question; the evidence is what the agent decides to copy and record
- Every record read whole (no aggregation)
- 3.55 MB · 1,380 MCP calls
Historical benchmark — TKTail 1.1.0: "Which 10 clients sent the most POST requests answered 503?" over iis-100mb (1,365 matches), measured through TKTail's MCP: every record read whole sent the AI client 3.55 MB in 1,380 MCP calls; TKTail's aggregation sent 4.4 KB in 1 MCP call - 805x less. A script that aggregates locally can return a small answer too, once it is written and run. Bytes and calls as measured, not tokens. The measurement
- Shell access is not insecure in itself: it is a general capability, governed by the account it runs as and by what your team adds - a low-privilege account, JEA, an allow-listing host.
- TKTail offers a narrower, product-level capability boundary: named investigation operations with schemas, bounds and provenance, inside Windows security.
- TKTail does not replace Windows ACLs - everything it reads, the account it runs as can read - and it cannot sandbox a separate shell an AI agent also has.
| Status | Control | What it does |
|---|---|---|
| Implemented | AI access switch | off by default, read on every call |
| Implemented | Investigation Roots | folders only you approve, paths judged where they really lead (Trial / Pro) |
| Implemented | Write switches | four, each off by default |
| Implemented | Resource bounds | answer size, pages, kept results, concurrency, waits, regex limits, evidence quotas |
| Implemented | Provenance | every answer names the TKTail and run that produced it |
| Partial | Destructive actions | deleting evidence needs you; alerts, Saved Searches and Metric Sets are deleted with their switch alone |
| Partial | Audit | a log line per call and per change - which client acted is not recorded |
| Partial | Redaction | evidence and pinned snapshots; normal reads return the log as it is |
| Planned | One-use approval | of each consequential operation |
| Planned | Operation budget | per call, with approval for heavy work |
| Planned | Append-only audit | tamper-evident |
| Planned | Untrusted-data marking | answers that say log content is data, not instructions |
Permissions and access modelWhat each tool may doControlled access for AI
One investigation runtime, for an operator and an AI agent
The operator and the agent use the same open sources, the same profiles, the same searches - the agent's appear in Search Results, marked AI - and the same alerts, incidents and evidence packages. The operator decides what the agent may read and change; the agent searches, counts and preserves; either picks up where the other stopped, and the next shift reads the evidence instead of starting over.
- Tested: Claude Code 2.1.302 with the model claude-opus-5-5, in the TKTail 1.2.0 qualification against the shipping executable - a production incident, a handover from evidence alone and two developer runs, every figure equal to the ground truth.
- Other MCP-compatible AI clients connect the same way - standard MCP over stdio, Streamable HTTP with Trial / Pro - and are protocol-compatible, not tested by us.
Before, during and after an incident
Before: prepare once
- profiles for your formats (Custom Format Studio)
- Saved Searches for the questions you ask again
- alerts with the evidence to keep when they fire
- Metric Sets collecting the counters that matter (Trial / Pro)
- Investigation Roots and AI permissions decided in advance
During: investigate
- search logs and event logs: text, regular expressions, fields, time, numbers
- aggregate: top N, per minute, number summaries (for AI clients)
- the Windows Event Log of the same minutes
- Metrics around this time (Trial / Pro)
- sequences across sources, joined by a key
- an AI agent over MCP, on the same sources
After: keep what you learned
- evidence packages - verified, shareable, kept until you delete them
- incidents with the records, events and samples their alert kept - acknowledge, pin, export
- pinned searches across restarts
- the conclusion in the package's note, for the next shift
- a Saved Search and an alert, so the next time is faster
Not in the current release: incident notes, maintenance windows and baselines, and incident management by an AI client.
Comparison mode: Production operation
What would you have to build?
A feature-equivalent custom solution is possible. These are the subsystems it needs - each to design, implement, test, document and maintain. We do not estimate the effort: it depends on your team, your formats and your requirements.
- Parser and profilerecords, fields, types, time, severity, multi-line framing - for every format
- Search semanticstext, regular expressions with safety limits, fields, time ranges, numbers - across files and event logs
- Aggregationgroup by keys, top N, histograms, number summaries over every match
- Cancellationstop at a safe point, say what is partial
- Bounded resultsanswer sizes, pages, kept results, waits
- Source identitythe same file after a rename or rotation; a stale reference refused
- Provenancewhich installation, which run, which search produced an answer
- Access policywhat an AI client may read and change, decided by the user
- Monitoringfiles watched without a tab, dated series, restarts
- Alert stateversions, throttling, cooldown, incidents, acknowledgement
- Evidencecontext capture across sources, before the log rotates
- Redactionbuilt-in and custom rules, stopping when a rule cannot run
- Integrityhashes, a manifest, verification
- Persistencesearches, profiles, alerts, incidents and packages across restarts
- MCP / APItools with schemas, permissions, refusals and examples that are tested
- Documentation and testsa user guide, an agent guide, tests for every release
Comparison mode: Production operation
Bring an investigation tool, not a diagnostic runtime stack
The machine being diagnosed is where the evidence is - often a production server with a change process. Everything brought to it has to be approved, installed, kept up to date and removed again - TKTail too: it is one more executable to approve. The question is what else each approach brings: the fewer general-purpose tools an investigation needs there, the less there is to approve.
TKTail 1.2.1 on the machine being diagnosed
- One package
- README.txt, THIRD_PARTY_NOTICES.txt, TKTail.exe, help/ - TKTail.exe 7.2 MB; extract it and run TKTail.exe, no installer
- Native code
- a Windows x64 executable, C++ with the C runtime linked in statically; no administrator rights for normal use
- Windows DLLs only
- only Windows system DLLs - the release manifest lists each one, static and delay-loaded; no .NET, no Visual C++ redistributable
- Windows
- Windows 10 version 1607 or later, Windows 11, or Windows Server 2016 or later - x64
- How it was checked
- Tested on Windows 11; every Windows function TKTail imports is checked against Windows 10 1607 / Windows Server 2016. This version has not been run on Windows 10 or Windows Server yet - a clean-machine run is still an operator step.
- Signature
- not Authenticode-signed yet - approve it by the SHA-256 the download page and the release manifest give
The Windows DLLs TKTail.exe imports, from the release manifest
ADVAPI32.dll, bcrypt.dll, COMCTL32.dll, COMDLG32.dll, CRYPT32.dll, d2d1.dll, d3d11.dll, dwmapi.dll, DWrite.dll, GDI32.dll, KERNEL32.dll, ole32.dll, OLEACC.dll, OLEAUT32.dll, pdh.dll, SHELL32.dll, SHLWAPI.dll, USER32.dll, UxTheme.dll, wevtapi.dll, WS2_32.dll
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.
The tested helpers on the same machine
- C# helper
- A framework-dependent .NET 10 console program: the .NET runtime has to be on the machine that runs it. Publishing it self-contained (the runtime bundled) or as NativeAOT (a native executable) removes that step.As benchmarked: Built by the benchmark with dotnet build -c Release; Framework-dependent (SelfContained false), win-x64; No ReadyToRun, no NativeAOT; Run as the built CompetitiveBench.exe, one question per process; measured with .NET SDK 10.0.403.
- Python helper
- A CPython script: a Python runtime has to be on the machine that runs it (and any package a further step needs). A frozen, self-contained executable is an alternative.As benchmarked: CPython, the standard library only; Started with the interpreter that runs the benchmark (python bench.py); measured with Python 3.13.0 (CPython).
- PowerShell 7 helper
- A PowerShell script run with PowerShell 7, which is installed separately. The same script also runs on Windows PowerShell 5.1, which ships with Windows 10, Windows 11 and Windows Server 2016 and later.As benchmarked: Started as pwsh -NoProfile -NonInteractive -ExecutionPolicy Bypass -File powershell/bench.ps1; The same script runs unchanged on Windows PowerShell 5.1 (measured as well); measured with PowerShell 7.6.9 (and Windows PowerShell 5.1.26100.9818).
Windows PowerShell 5.1 ships with Windows 10, Windows 11 and Windows Server 2016 and later, so a PowerShell helper may need nothing installed; a C# helper can be published self-contained or as NativeAOT; a Python helper can be frozen into one executable. Installing a runtime is therefore not the main difference. The larger one is a one-off helper against prebuilt investigation capabilities - formats, search, aggregation, correlation, evidence, monitoring and access control that already exist, are documented and are tested with every release.
Fewer tools on the host: TKTail can often avoid bringing additional general-purpose tooling - a runtime, a package set, a scripting environment an agent assembles first - onto the machine being diagnosed. That says nothing against those tools; it is less to approve, patch and govern.
Download and system requirementsSystem requirements (Help)No diagnostic runtime stack required
Capability matrix
What TKTail has built in, beside what the three tested helpers of the published benchmark implement - read from each helper's source, linked in its column. The helpers are competent programs written for fixed questions; each could be extended. This compares the tested programs, not the languages.
- Built in (since x.y) shipped in the published release x.y
- Preview (release candidate x.y.z-rc.n) in a published release candidate, for testing - not in the stable release
- Planned designed, not in a published release
- Implemented in the tested helper read from its source
- Not implemented in the tested helper it could be added - it is not in the program measured
| Capability | TKTail | Tested C# helper | Tested Python helper | Tested PowerShell 7 helper |
|---|---|---|---|---|
| Huge-file search | Built in (since 1.0)files of any size with bounded memory; text, regular expressions, fields and time ranges across files and event logsHelp: Huge-file search | Implemented in the tested helperstreams the file in 1 MB blocks - for each of its fixed questions | Implemented in the tested helperreads the file line by line with a 1 MB buffer - for each of its fixed questions | Implemented in the tested helpera .NET StreamReader, line by line - for each of its fixed questions |
| Structured format profile (records, fields, time, severity) | Built in (since 1.0)35+ formats recognized from their content, multi-line records framed; one profile serves every featureHelp: Structured format profile (records, fields, time, severity) | Not implemented in the tested helperIIS W3C field positions are read from the #Fields header inside the program; the application log is searched as text | Not implemented in the tested helperIIS W3C field positions are read from the #Fields header inside the program; the application log is searched as text | Not implemented in the tested helperIIS W3C field positions are read from the #Fields header inside the script; the application log is searched as text |
| Custom Format Studio (a new format, previewed on real records) | Built in (since 1.0)templates for line, multi-line, delimited and application logs; every record previewed as a match, a partial match or no matchHelp: Custom Format Studio (a new format, previewed on real records) | Not implemented in the tested helpera new format is new parsing code | Not implemented in the tested helpera new format is new parsing code | Not implemented in the tested helpera new format is new parsing code |
| Aggregate / group by (top N, histograms, number summaries) | Built in (since 1.1)up to four keys, top N, per second / minute / hour / day, count, sum, minimum, maximum, average - over every match, for AI clients (MCP)Help: Aggregate / group by (top N, histograms, number summaries) | Implemented in the tested helperfixed groupings coded per question: the top 10 of one field, counts per minute | Implemented in the tested helperfixed groupings coded per question: the top 10 of one field, counts per minute | Implemented in the tested helperfixed groupings coded per question: the top 10 of one field, counts per minute |
| Numeric conditions (a number in the text compared as a number) | Built in (since 1.1)for AI clients and in Saved Searches - Advanced Search shows such a condition but cannot create one yetHelp: Numeric conditions (a number in the text compared as a number) | Implemented in the tested helperfixed thresholds coded per question (elapsed at least 1000 ms, status 500 and up, time-taken at least 1000) | Implemented in the tested helperfixed thresholds coded per question (elapsed at least 1000 ms, status 500 and up, time-taken at least 1000) | Implemented in the tested helperfixed thresholds coded per question (elapsed at least 1000 ms, status 500 and up, time-taken at least 1000) |
| Windows Event Log (channels and saved .evtx files) | Built in (since 1.0)history and LIVE, filters and search, beside the logsHelp: Windows Event Log (channels and saved .evtx files) | Not implemented in the tested helperreads one log file; an Event Log reader is a .NET API to integrate | Not implemented in the tested helperreads one log file; an Event Log binding or wevtutil output to integrate | Not implemented in the tested helperreads one log file; Get-WinEvent is a PowerShell cmdlet on Windows - its output to integrate |
| Metrics (Windows Performance Counters) | Built in (since 1.0)Trial / Pro: Metric Sets beside the logs, Show Metrics Around This TimeHelp: Metrics (Windows Performance Counters) | Not implemented in the tested helpera performance-counter API to integrate (the helper reads only its own CPU time and memory for the benchmark) | Not implemented in the tested helpera counter binding or typeperf output to integrate (the helper reads only its own CPU time and memory for the benchmark) | Not implemented in the tested helperGet-Counter is a PowerShell cmdlet on Windows - its output to integrate (the helper reads only its own CPU time and memory for the benchmark) |
| Correlation across sources (sequences in time windows, joined by a key) | Built in (since 1.0)one thing, then another, within seconds - across logs and event logsHelp: Correlation across sources (sequences in time windows, joined by a key) | Not implemented in the tested helperone file, one question per run | Not implemented in the tested helperone file, one question per run | Not implemented in the tested helperone file, one question per run |
| File Series (a dated rotating log followed as one log) | Built in (since 1.0)the next file LIVE, alerts follow the series - previous files kept open with Trial / ProHelp: File Series (a dated rotating log followed as one log) | Not implemented in the tested helperone file path per run - choosing the files of a period is the caller's | Not implemented in the tested helperone file path per run - choosing the files of a period is the caller's | Not implemented in the tested helperone file path per run - choosing the files of a period is the caller's |
| Compressed history (.gz, .zip, .zst, .tar.gz) | Preview (release candidate 1.3.0-rc.1)a log's compressed generations (.gz, .zst) searched where they lie with its plain ones, nothing unpacked; ZIP and TAR contents when the search asks for them; evidence from them - not in Stable 1.2.1 | Not implemented in the tested helperplain files only | Not implemented in the tested helperplain files only | Not implemented in the tested helperplain files only |
| Archives as sources (7Z, RAR, XZ, BZIP2, LZ4, TARs) - browse, open an entry, search | Preview (release candidate 1.3.0-rc.2)the Explorer lists an archive's logs, an entry opens as a tab, searched and kept as evidence where it lies - nothing unpacked, no other program run; not in Stable 1.2.1 | Not implemented in the tested helperplain files only - unpacking is the caller's | Not implemented in the tested helperplain files only - unpacking is the caller's | Not implemented in the tested helperplain files only - unpacking is the caller's |
| Folder search across compressed rotations and archive entries | Preview (release candidate 1.3.0-rc.2)compressed logs searched with the plain ones; archive contents only when asked, narrowed by entry masks; the answer says what the scope left out - not in Stable 1.2.1 | Not implemented in the tested helperone plain file path per run | Not implemented in the tested helperone plain file path per run | Not implemented in the tested helperone plain file path per run |
| A rotating log followed in one tab (app.log -> app.log.1, a new dated file) | Preview (release candidate 1.3.0-rc.2)the same tab moves to the new file and the previous handle closes; reading history is never interrupted; previous files in its rotation history - not in Stable 1.2.1 | Not implemented in the tested helperone run reads the file it is given and exits - following a rotation is the caller's | Not implemented in the tested helperone run reads the file it is given and exits - following a rotation is the caller's | Not implemented in the tested helperone run reads the file it is given and exits - following a rotation is the caller's |
| A log's history whatever its rotation naming (a number, a date, a date and time, or both) | Preview (release candidate 1.3.0-rc.3)one rotation model: generations newest first by their rotation key, compressed ones included, the key given to AI clients - no folder search or name parsing; numbers that are names never group; not in Stable 1.2.1 | Not implemented in the tested helperone file path per run - finding and ordering a log's rotated files is the caller's | Not implemented in the tested helperone file path per run - finding and ordering a log's rotated files is the caller's | Not implemented in the tested helperone file path per run - finding and ordering a log's rotated files is the caller's |
| An archive entry or compressed log opened as a tab without unpacking it | Preview (release candidate 1.3.0-rc.3)the tab reads the entry where it lies - no temporary copy, memory bounded whatever its size, the first lines at once and the rest in the background; not in Stable 1.2.1 | Not implemented in the tested helperplain files only - unpacking is the caller's | Not implemented in the tested helperplain files only - unpacking is the caller's | Not implemented in the tested helperplain files only - unpacking is the caller's |
| AI agent documentation inside TKTail.exe - its own version, offline, one topic at a time | Preview (release candidate 1.3.0-rc.3)compressed in TKTail.exe, bound to its version and commit, read offline one small topic at a time (tktail_list_knowledge, tktail_get_knowledge); the AI Agent Harness ships the same; not in Stable 1.2.1 | Not implemented in the tested helperits usage is in its source and the benchmark's README | Not implemented in the tested helperits usage is in its source and the benchmark's README | Not implemented in the tested helperits usage is in its source and the benchmark's README |
| Alerts and incidents | Built in (since 1.0)text, field and counter conditions; each firing keeps an incident with the records, events and samples around it - while TKTail runsHelp: Alerts and incidents | Not implemented in the tested helperone run answers one question and exits | Not implemented in the tested helperone run answers one question and exits | Not implemented in the tested helperone run answers one question and exits |
| Reusable monitoring (saved definitions, restarts, dated series) | Built in (since 1.0)Saved Searches, alerts and monitored files come back after a restart; an alert's runtime status since 1.1Help: Reusable monitoring (saved definitions, restarts, dated series) | Not implemented in the tested helperno scheduler, state or notification - each run is started by its caller | Not implemented in the tested helperno scheduler, state or notification - each run is started by its caller | Not implemented in the tested helperno scheduler, state or notification - each run is started by its caller |
| Evidence package (the hits, their context, other sources of the same minutes) | Built in (since 1.2)records or seconds of context; other logs, event logs and Metric Sets of the window; kept after the log rotatesHelp: Evidence package (the hits, their context, other sources of the same minutes) | Not implemented in the tested helperprints the answer as one JSON line; two record scenarios write the matching records to --output - no context, no manifest | Not implemented in the tested helperprints the answer as one JSON line; two record scenarios write the matching records to --output - no context, no manifest | Not implemented in the tested helperprints the answer as one JSON line; two record scenarios write the matching records to -Output - no context, no manifest |
| Redaction of secrets | Built in (since 1.2)evidence packages and pinned snapshots, before anything is written - built-in rules and your own; normal reads return the log as it isHelp: Redaction of secrets | Not implemented in the tested helperoutput as the log has it | Not implemented in the tested helperoutput as the log has it | Not implemented in the tested helperoutput as the log has it |
| Provenance and source identity | Built in (since 1.0)every answer names its TKTail and run; a reference into a file that changed is refused; evidence adds byte ranges (1.2)Help: Provenance and source identity | Not implemented in the tested helperthe answer names no source identity or byte range | Not implemented in the tested helperthe answer names no source identity or byte range | Not implemented in the tested helperthe answer names no source identity or byte range |
| Integrity verification (SHA-256: VALID, MODIFIED, INCOMPLETE) | Built in (since 1.2)every file and the package hashed - the hashes show it is unchanged, not who made itHelp: Integrity verification (SHA-256: VALID, MODIFIED, INCOMPLETE) | Not implemented in the tested helperno hashes | Not implemented in the tested helperno hashes | Not implemented in the tested helperno hashes |
| Evidence Library | Built in (since 1.2)list, verify, link to an incident, a shareable copy; deleting needs your confirmationHelp: Evidence Library | Not implemented in the tested helperoutput files are wherever the caller put them | Not implemented in the tested helperoutput files are wherever the caller put them | Not implemented in the tested helperoutput files are wherever the caller put them |
| MCP interface for AI clients | Built in (since 1.0)stdio in every edition; HTTP with a token with Trial / ProHelp: MCP interface for AI clients | Not implemented in the tested helpera command-line program: arguments in, one JSON line out | Not implemented in the tested helpera command-line program: arguments in, one JSON line out | Not implemented in the tested helpera command-line script: arguments in, one JSON line out |
| Permission boundary for AI clients | Built in (since 1.0)off until allowed; scope = what is open plus approved folders (Trial / Pro); one switch per kind of change - inside Windows security, never instead of itHelp: Permission boundary for AI clients | Not implemented in the tested helperruns as the identity that starts it; a low-privilege account, JEA or an allow-listing host can restrict that - configuration you add | Not implemented in the tested helperruns as the identity that starts it; a low-privilege account or an allow-listing host can restrict that - configuration you add | Not implemented in the tested helperruns as the identity that starts it; a low-privilege account, JEA or an allow-listing host can restrict that - configuration you add |
| Resource governance (bounded answers, pages, concurrency, quotas) | Built in (since 1.0)fixed caps on answers, pages, kept results, running searches and waits; evidence quotas since 1.2; a per-operation budget is plannedHelp: Resource governance (bounded answers, pages, concurrency, quotas) | Not implemented in the tested helperstreaming keeps memory small (a 1 MB buffer; a longer line stops the run); no bound on answer size, distinct keys or run time | Not implemented in the tested helperstreaming keeps memory small (line by line); no bound on answer size, distinct keys or run time | Not implemented in the tested helperstreaming keeps memory small (line by line); no bound on answer size, distinct keys or run time |
| Cancellation (partial results marked partial) | Built in (since 1.0)searches stop at a safe point and say they are partial; an AI client cancels only its own searchesHelp: Cancellation (partial results marked partial) | Not implemented in the tested helperend the process | Not implemented in the tested helperend the process | Not implemented in the tested helperend the process |
The matrix is data: website/src/data/capabilities.json. Every TKTail release named is a published release, every helper statement is checked against the helper's source file by the website's tests, and thebenchmark publishes those sources with its results.