Skip to content
Innopulse Consulting
EU AI Act

EU AI Act: logging and record-keeping duties under Article 12

What Article 12 of the AI Act requires for automatic logging of high-risk AI systems, what belongs in an audit-proof log, retention periods and how to reconcile logging with the GDPR.

Leutrim Miftaraj
Leutrim Miftaraj
Founder & CEO
·Updated ·6 min read

Automatic logging is one of the inconspicuous but hard technical duties of the EU AI Act. Article 12 requires high-risk AI systems to be designed so that they automatically record events throughout their lifecycle. Unlike risk classification or a fundamental rights impact assessment, this duty cannot be met with a document; it has to be built into the system’s architecture. Overlook it, and an otherwise compliant system fails the audit on the one piece of evidence that decides traceability.

What Article 12 actually requires

The core is traceability. Logging must make it possible to record events relevant to identifying situations in which the system may present a risk within the meaning of Article 79 or undergo a substantial modification. It must also facilitate post-market monitoring and support human oversight. For certain high-risk systems, notably remote biometric identification, the AI Act names minimum content: the period of each use, the reference database checked against, the input data that led to a match and the identity of the persons who verified the result.

A principle follows that applies beyond these mandatory cases: log enough to reconstruct afterwards what the system did, when, on what basis, and who oversaw it. A log that records only “request processed” does not serve the purpose.

What belongs in an audit-proof log

In practice, one record per relevant event works well, containing: a timestamp; a unique transaction ID; the version of the model and application; a reference to the input data (not necessarily the data itself); the result or classification; any human review or correction with the reviewer’s identity; and security-relevant events such as errors or anomalies. Immutability is essential: logs that can be altered afterwards are worthless as evidence. Write them to append-only storage or protect their integrity cryptographically.

The retention question

The AI Act requires providers to keep automatically generated logs, to the extent they are under their control, for a period appropriate to the system’s purpose and of at least six months, unless more specific Union or national law provides otherwise. Deployers have parallel retention duties for the logs generated in their area of responsibility. Six months is the floor, not the standard: in regulated sectors or for long-lived decisions, a considerably longer period may be appropriate.

The conflict with data protection

This is where the most delicate tension arises. Comprehensive logging and data minimisation under the GDPR pull in opposite directions. The answer is not to give up either but to design deliberately: log references and metadata rather than full personal content, pseudonymise where possible, separate logs technically and legally from production data, and define retention and deletion rules for the logs that respect both the AI Act minimum and the GDPR limits. Document this balancing exercise; it is exactly where a supervisory authority will ask.

The right granularity

Too little logging misses the purpose of traceability; too much creates mountains of data nobody analyses, high costs and new privacy risks. The rule of thumb: log at the level where a decision or a risk-relevant event occurs. Not every technical intermediate step, but every point where the system makes an assessment, crosses a threshold or is reviewed by a human. Define these event types once, deliberately, rather than reflexively logging everything or nothing.

Logging as an operational advantage

Beyond the duty, good logging is an operational advantage. The same records the AI Act requires are the basis for observability, error analysis and model monitoring. Setting up logging properly once gives you the data to detect drift, investigate incidents and demonstrate system quality over time.

What to do

Start with an inventory: which high-risk systems do we operate or supply, and what do they record today? In most cases some logging exists, but rarely in a form that is immutable, complete and subject to a defined retention period. Define the log schema, integrity-protected storage, retention period and deletion logic in agreement with data protection, and anchor the result in your technical documentation under Annex IV. Add a reference to each system’s logging in your AI inventory, so the chain of evidence runs from the system overview to the concrete, unalterable log. The related duties are summarised in our glossary entries on high-risk AI and technical documentation.

About the author
Leutrim Miftaraj
Leutrim Miftaraj
Founder & CEO · Innopulse Consulting

Founder of Innopulse Consulting, IT project lead and business analyst. Mandates incl. EDA, MeteoSwiss, FSO, SERI, FINMA, Swisscom and BLS. MSc FFHS, PMP, IREB CPRE. Author of “Identity Over Discipline”.

Topics
ai act loggingai act article 12ai act record keepinghigh-risk ai logsai act log retention
Working on something similar?

Let's talk.

If this article maps to a problem you're actively working on, send us a short description — we'll respond with a practical next step.