The EU AI Act requires high-risk AI systems to be able to log events automatically over their lifetime (Article 12). Providers must keep the logs they control, and deployers must keep the logs of high-risk systems under their control for at least six months unless other law says otherwise (Article 26(6)). The Act sets exact log contents only for remote biometric identification; for everything else you decide what is enough to trace the system. This guide covers what to log, how long to keep it and where it should live. It supports our EU AI Act compliance page. Not legal advice.
What must be logged
Article 12 says high-risk systems must technically allow automatic recording of events. The logs must give traceability suited to the system's purpose and help with three things: spotting situations that create risk or require a substantial modification, post-market monitoring, and the deployer's monitoring of operation under Article 26(5).
Only for remote biometric identification does the Act list contents: start and end time of each use, the reference database checked, the input data that led to a match and who verified the result. For other high-risk systems, the Act leaves the field list to you. A practical starting set, from general practice:
| Log item | Why it earns its place |
|---|---|
| Timestamp and system version | Ties each output to the model and configuration that produced it |
| Input reference (or input where allowed) | Lets you reconstruct a decision without storing more personal data than needed |
| Output or decision and confidence | The thing an affected person or authority asks about |
| Human review action and reviewer role | Shows oversight happened |
| Overrides, stops and errors | Evidence for incident and risk-signal review |
| Configuration and data changes | Explains why behaviour changed |
Retention
| Who | Minimum | Source |
|---|---|---|
| Deployer of a high-risk system | At least six months, for logs under its control, unless other law applies | Article 26(6) |
| Provider of a high-risk system | At least six months for logs under its control, unless other law applies | Article 19 |
| Financial institutions | Keep the logs as part of the documentation they already keep under financial services law | Articles 19 and 26(6) |
Six months is a floor. Sector rules, record-keeping laws and your own dispute window may require longer. Data protection law pulls the other way: logs that contain personal data need a lawful reason and a deletion rule. Settle both with counsel before you set one number for everything.
Where logs live
Put logs where an examiner or authority can get them without asking engineers to dig. Three questions decide it:
- Who controls the log? If a vendor runs the system, the vendor may hold the log. Your contract must give you access and retention for the period you need. See vendor AI tools under the EU AI Act.
- Is it tamper-evident? Use append-only or write-once storage, or sign each batch, so you can show nothing was altered.
- Can it be searched by system, date and person affected? A log nobody can query does not meet a request.
Keep logs apart from the system's operating data, with access limited and reviewed. If you use a gateway in front of models, its logs are a natural source; see AI gateway.
Common logging gaps
These are gaps to check for, drawn from general practice.
- The vendor keeps the logs and the contract gives you none.
- Logs record the call but not the model version, so a changed output cannot be explained.
- Human review happens but is not recorded.
- Logs are kept for days, not months, because they sit in an application's debug store.
- No one owns the question: who may read the log, and who answers a request.
- Personal data in logs has no deletion rule.
- Logs exist for the primary system but not for the tools or agents it calls.
A logging check in six steps
- List each high-risk system and who operates it.
- Write the log fields you will keep and why each is needed.
- Set retention by system and tie it to your counsel's reading.
- Name where each log lives and who controls it.
- Test a request: pick one past output and rebuild what happened from logs alone.
- Review quarterly and after any system change.
Questions we hear
Do all AI systems need logs under the Act? Article 12 applies to high-risk systems. Other systems may carry transparency duties, and good practice still favours logs.
Can we log the full prompt? Sometimes. Weigh traceability against data protection, and consider storing a reference instead.
A sample log record
A starting schema, from general practice, that a team can adapt. It is not prescribed by the Act.
| Field | Example value | Note |
|---|---|---|
| event_time | 2026-11-27T14:03:11Z | Use one time standard across systems |
| system_id and version | credit-score-v4.2 | Version must change when the model or prompt changes |
| request_ref | hash or case number | Store a reference where the input holds personal data |
| output | decline, score 412 | The decision as it left the system |
| reviewer_role and action | credit officer, upheld | Record who and what, not free-text opinion |
| override_reason | income data corrected | Needed to learn from overrides |
| retention_class | high-risk, 6 months minimum | Drives deletion |
Run one rebuild test a quarter: pick a past output and recreate what the system saw and did, from the log alone. If you cannot, the schema is missing a field.
A first engagement
Duczer East reviews logging for your in-scope systems and hands back a log standard, a retention table and a gap list. Scope is agreed in writing first.



