Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Protecting secrets from AI

When an AI assistant reads your logs through TKTail (AI integration (MCP)), TKTail masks secrets in everything it sends - before it leaves TKTail. Your files are never changed, and TKTail’s own searches still use the real data: a search for a value still finds it; the assistant sees the record with the value masked.

This is not the same as allowing files for AI: access rules decide which files an assistant may read; data protection decides what of their content leaves TKTail. Both apply, always.

What is masked without you doing anything

The built-in rules are always on (every edition):

In the logWhat the assistant receives
Password=hunter2Password=***
Authorization: Bearer eyJhbGciOi...Authorization: Bearer ***
a JWT (eyJ...........)***
Server=db01;User Id=sa;Password=P@ssServer=db01;User Id=sa;Password=***
api_key=..., token=..., client_secret=...the value as ***
a session cookie (JSESSIONID=...)JSESSIONID=***
a private key blockthe key’s lines as ***

A field whose name says it is secret - password, token, access_token, authorization, cookie, api_key, … - is masked whole wherever it appears: a JSON log’s field, a structured field in a record, a column a search groups by.

Not masked by default: GUIDs, IP addresses and e-mail addresses - they are what investigations are made of. Add a rule if they are sensitive for you.

Your own rules

Tools > AI Data Protection… lists the built-in rules (always applied) and yours:

  • Add…, Edit…, Remove, Disable / Enable.
  • A rule is one of three kinds:
    • Field names - ssn; national_id: the values of these fields are masked whole (JSON keys, structured fields, and ssn: 123-45-6789 written in a line).
    • Value pattern (regex) - for example \bCUST-(?<secret>\d{6})\b: a capture named secret is masked (here: CUST-***), otherwise the whole match.
    • Literal text - for example ACME Corp: every occurrence (case ignored unless Match case).
  • Replace with - what the assistant sees instead (*** by default; for example [customer]).
  • Try it - type a line as your logs hold it and see what an assistant would receive, before you press OK.
  • Test… beside a value pattern opens the Regular Expression Tester: several lines of sample, every match and group, and the preview with the built-in rules.

A pattern that does not work is never kept - the dialog says why. If the rules file in TKTail’s data folder becomes unusable, TKTail stops answering AI assistants until you fix it in this dialog: your rules might have protected more than the built-in ones.

Assistants cannot change, disable or read these rules - only you can, here. An assistant can see that protection is active (and how many rules there are), never what they look for.

What is protected

Everything TKTail sends to an assistant: a record’s text, its fields, search results and their previews, the values of an aggregation (top values), Current Context, archive and history previews, the evidence an assistant reads back, and error messages. TKTail’s own identifiers (source ids, search ids, package ids) stay as they are, so an assistant can still refer to what it found.

Saved evidence packages have their own redaction (see Saving evidence) - it works on what is stored; AI data protection works on what is sent to an assistant.

Each AI call’s line in Output > Application says how many values were masked and by which rules - never the values.

AI Access Report

Tools > Generate AI Access Report… saves a plain text file (TKTail-AI-Access-2026-11-11-134218.txt) that answers “what can an AI assistant connected to this TKTail access right now?”:

  • whether AI access is on, which ways an assistant can connect (and whether HTTP listens on the network);
  • what it may read: what is open in TKTail, every AI access rule (allowed, excluded, in effect or not), how archives and rotated logs are treated;
  • what it may change (each permission and the tools it opens);
  • the license and what it includes;
  • the data protection rules (names and kinds - never what they look for);
  • warnings (a broad folder allowed, HTTP on the network, changes allowed).

It holds no secret - no log content, no rule pattern, no license code, no token. The Save dialog asks before it replaces an existing file.

Its Access policy line names the policy by an identity (ap- and 16 characters) - a fingerprint of the switches, rules, permissions, license capabilities and protection rules, never the rules themselves. The AI Investigation Report names the same identity for each call an assistant made, so what it could do and what it did can be matched.