AI Compass
Compass

Logging

What must be recorded, what may be recorded, and what a log that holds up in an incident looks like.

·2 min read·By Fachbereich Governance
DETAIL
3 sections

What belongs in a log

ItemWhy
Timestamp and case referenceLinks it to the business event
System, model and version with checksumEvidences which build decided
ParametersTemperature, context length, template with version
Result or its identifierWhat came out
Reviewer and review outcomeEvidences human control

Those five can be kept without any plaintext input and cover most evidence needs. The content of the input belongs there only where a purpose, a legal basis and a retention period exist for it.

What the logs must deliver

  • Unalterable, or with a traceable change history.
  • Access-restricted, with their own permissions.
  • Searchable, not merely storable. A log you cannot query does not help in an incident.
  • With a defined retention period per data category.
  • Kept separately from the business data, so deletion there does not invalidate the log.

The three evidence needs

NeedWhat must be shownRetention
AI Act, high riskOperation per the instructions, oversight, input dataat least six months
GDPRLawfulness, data subject rights, erasureby evidence need, often three years
Sectoral lawBy area: accounting, professional conduct, product safetyper sectoral law

The three periods differ and routinely conflict with the erasure duty. They belong set separately per data category, not as one period for everything.

Reproducibility is not the goal

A model run is not bit-reproducible on graphics cards. Forcing it costs throughput and still does not achieve it reliably. What is evidenced is therefore the result, not repeatability: model version, parameters, input reference, output, timestamp.

A log entry, concretely

{
  "ts": "2026-08-25T09:14:22Z",
  "case": "PO-2026-04417",
  "system": "quote-check",
  "model": "model-x-2026-06",
  "model_checksum": "sha256:9f2c…",
  "template": "procurement-quote-extract v3",
  "params": {"temperature": 0, "context": 8000},
  "result_id": "res-88f1c2",
  "confidence": 0.91,
  "reviewed_by": "m.huber",
  "review_outcome": "accepted",
  "changes": 0
}

No plaintext, no personal reference in the log itself, and still fully answerable. The result itself sits in the business application with its retention periods.

What is demanded in an incident

  • Period and extent of impact, derivable from the logs.
  • Which model version and which template were in use.
  • Whether and when a review took place.
  • Which decisions rested on it and who owned them.
  • When the incident was noticed, reported and resolved.

Anyone who can answer those five from the logs can answer questions. Anyone who has to reconstruct them cannot. See Preparing for audit.

A log schema that survives an audit

FREE ACCOUNT

Log schema and analysis queries

A complete schema for the log entry per request, with the queries an audit actually asks.

Access code2 items

No password needed. We send you a sign-in link. An account does not subscribe you to anything. The newsletter is separate.

Related courses and sources

PaperFreeDE

BSI on the security of AI systems

Technical guidance on operating AI systems securely. Free, and unusually concrete.

For security and operations in German-speaking countries; unusually concrete for an official source.

Bundesamt für Sicherheit in der InformationstechnikGo to offer
ArticleFreeEN

ENISA publications

Reports from the EU cybersecurity agency, including on securing AI systems and on the threat landscape. Free and in a European frame.

For security leads who need a European frame of reference rather than an American one.

Was this page helpful?
Logging