EU AI Act record-keeping: logging requirements for AI systems
The EU AI Act requires high-risk AI systems to log events automatically over their lifetime, and requires providers and deployers to keep those logs. For teams building with LLMs and agents, that raises practical questions: what to record, where to store it, and for how long. This guide summarizes the logging articles and shows how tracing produces records you can use. It is an engineering guide, not legal advice.
TL;DR: Article 12 requires high-risk AI systems to allow automatic recording of events over their lifetime. Article 19 requires providers, and Article 26(6) deployers, to keep those logs for at least six months, where the logs are under their control. After the Digital Omnibus amendment in 2026, the high-risk obligations apply from December 2, 2027 for Annex III systems and August 2, 2028 for systems under Annex I, as of November 2026. LLM tracing with Langfuse records each model call, tool call, and retrieval with timestamps, and data retention, audit logs, and export help keep those records for as long as required.
The optional AI gateway relays model requests from your apps and coding agents to your LLM providers and records them in Langfuse. LLM providers can also run in the same VPC or a peered VPC.
This page summarizes the regulation for engineers and is not legal advice. Whether your system is high-risk, and which obligations apply to you as a provider or deployer, is a legal question. Dates reflect the AI Act as amended by the Digital Omnibus, as of November 2026. Check the current text with your legal team.
What the logging articles say
| Article | Who | What it requires |
|---|---|---|
| Article 12 | High-risk AI systems | Technical support for automatic recording of events (logs) over the lifetime of the system |
| Article 19 | Providers | Keep automatically generated logs, to the extent they are under their control, for at least six months |
| Article 26(6) | Deployers | Keep logs generated by the system, to the extent they are under their control, for at least six months |
| Article 72 | Providers | Post-market monitoring, which the logs are meant to support |
Article 12 names the purposes the logs serve: identifying situations that may create risk or lead to a substantial modification, supporting post-market monitoring, and supporting deployers' monitoring of the system's operation. Other laws, such as sector rules in finance, can require longer retention.
Which dates apply
- August 2, 2026: transparency obligations under Article 50, such as telling people they are interacting with an AI system, apply.
- December 2, 2027: obligations for high-risk systems listed in Annex III, such as systems used in employment, credit scoring, or essential services, apply.
- August 2, 2028: obligations for high-risk systems that are safety components of products under Annex I apply.
Systems that aren't high-risk don't fall under Article 12, but many teams keep similar logs anyway for debugging, incident review, and their own risk management.
What to record for an LLM application
The Act describes the purposes of logging, not a schema. For an LLM or agent system, records that support those purposes usually include:
- Each request and response, with timestamps, the model and version, and parameters.
- Intermediate steps: retrieved documents, tool calls and their results, and agent decisions.
- The version of the system: the prompt version, application release, and configuration that produced the output.
- Who was involved: a pseudonymous user or session ID, and human reviews or overrides.
- Quality and risk signals: evaluation scores, user feedback, and errors.
A trace in Langfuse holds these in one place: nested observations for each step, the prompt version used, user and session IDs, scores from evaluators and reviewers, and environments and release tags.
Keep the logs for the required period
- Data retention per project deletes data after a set number of days, so you can keep at least six months, or longer where other rules apply. See data retention.
- Export writes traces, observations, and scores to S3, GCS, or Azure Blob Storage on a schedule, for archives that outlive the observability tool. See blob storage export.
- Audit logs record changes inside Langfuse, such as prompt releases and permission changes, with the acting user. See audit logs.
- EU hosting or self-hosting keeps logs in the EU or in your own infrastructure. See EU data residency and GDPR and self-hosted vs Cloud.
Logs of AI systems often contain personal data, so GDPR applies to them too. Mask what you don't need before it is stored. See PII masking for LLM applications.
Cover model calls nobody instrumented
Records are only complete if every call is captured. Model calls from apps nobody instrumented, scripts, and internal tools are easy to miss. Routing them through the Langfuse AI Gateway records each call with the caller's identity. See AI audit trail.
Use the logs for monitoring
The Act expects logs to support monitoring, not just storage. Run LLM-as-a-Judge evaluators on production traffic, review samples in annotation queues, and set alerts on error rates or score drops. For a full production workflow in regulated settings, see how regulated teams get AI agents into production.
FAQ
Does Langfuse make my AI system compliant with the EU AI Act?
No tool does. Langfuse helps you produce, retain, and review logs and evaluation records. Whether they meet your obligations depends on your system, your role as provider or deployer, and your processes, which your legal team should assess.
How long do I have to keep AI system logs under the EU AI Act?
At least six months for providers and deployers of high-risk systems, to the extent the logs are under their control, unless other EU or national law requires a different period. Financial services and other sectors often have longer requirements.
Do these logging rules apply to general-purpose AI models?
Articles 12, 19, and 26 apply to high-risk AI systems. Providers of general-purpose AI models have separate obligations, such as technical documentation. If you build a high-risk system on top of such a model, the logging rules apply to your system.