---
title: "EU AI Act record-keeping: logging requirements for AI systems"
description: "What the EU AI Act asks for in logging and record-keeping for high-risk AI systems, which dates apply, and how LLM tracing helps produce and retain those logs."
tags: [guide]
---

# 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.

**Start with Langfuse** [Sign up](/cloud)

**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](/docs/observability/overview) records each model call, tool call, and retrieval with timestamps, and [data retention](/docs/administration/data-retention), [audit logs](/docs/administration/audit-logs), and [export](/docs/api-and-data-platform/features/export-to-blob-storage) help keep those records for as long as required.

**Deployment architecture — your infrastructure (VPC / on-premises)**

UI, API, and SDK clients send requests to [Langfuse Web](/self-hosting/deployment/infrastructure/containers) (`langfuse/langfuse`), which serves the UI and APIs. [Langfuse Worker](/self-hosting/deployment/infrastructure/containers) (`langfuse/worker`) processes events asynchronously.

| Storage service | Purpose | Connections |
| --- | --- | --- |
| [PostgreSQL](/self-hosting/deployment/infrastructure/postgres) | Transactional data | Web → PostgreSQL; Worker → PostgreSQL |
| [Redis / Valkey](/self-hosting/deployment/infrastructure/cache) | Cache and job queue | Web → Redis / Valkey; Redis / Valkey → Worker |
| [ClickHouse](/self-hosting/deployment/infrastructure/clickhouse) | Observability data | Web → ClickHouse; Worker → ClickHouse |
| [S3 / Blob storage](/self-hosting/deployment/infrastructure/blobstorage) | Raw events and multi-modal attachments | Web → S3 / Blob storage; Worker → S3 / Blob storage |

Both containers can optionally connect to [LLM providers](/self-hosting/deployment/infrastructure/llm-api): Web for the playground, Worker for evaluations. Bring your own LLM API; it can also run in the same VPC or a peered VPC.

The optional [Langfuse AI Gateway](/self-hosting/configuration/ai-gateway) (`langfuse/ai-gateway`, beta) receives model requests from apps and coding agents. Gateway → Web resolves gateway API keys and uploads traces; Gateway → LLM providers relays the requests.

  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 [#articles]

| 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 [#timeline]

- **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 [#what-to-record]

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](/docs/observability/data-model) in Langfuse holds these in one place: nested observations for each step, the [prompt version](/docs/prompt-management/features/link-to-traces) used, [user and session IDs](/docs/observability/features/sessions), [scores](/docs/evaluation/scores/overview) from evaluators and reviewers, and [environments](/docs/observability/features/environments) and release tags.

## Keep the logs for the required period [#retention]

- **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](/docs/administration/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](/docs/api-and-data-platform/features/export-to-blob-storage).
- **Audit logs** record changes inside Langfuse, such as prompt releases and permission changes, with the acting user. See [audit logs](/docs/administration/audit-logs).
- **EU hosting or self-hosting** keeps logs in the EU or in your own infrastructure. See [EU data residency and GDPR](/resources/engineering/langfuse-eu-data-residency-gdpr) and [self-hosted vs Cloud](/resources/engineering/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](/resources/engineering/pii-masking-llm-applications).

## Cover model calls nobody instrumented [#gateway]

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](/docs/gateway/overview) records each call with the caller's identity. See [AI audit trail](/resources/engineering/ai-audit-trail).

## Use the logs for monitoring [#monitoring]

The Act expects logs to support monitoring, not just storage. Run [LLM-as-a-Judge](/docs/evaluation/evaluation-methods/llm-as-a-judge) evaluators on production traffic, review samples in [annotation queues](/docs/evaluation/evaluation-methods/annotation-queues), and set [alerts](/docs/observability/features/alerts) on error rates or score drops. For a full production workflow in regulated settings, see [how regulated teams get AI agents into production](/blog/2026-11-04-regulated-industries-ai-agents-production).

## FAQ

### Does Langfuse make my AI system compliant with the EU AI Act? [#does-langfuse-make-me-compliant]

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? [#how-long-to-keep-logs]

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? [#gpai]

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.

[Ask another question](/docs/ask-ai)

**Start with Langfuse** [Sign up](/cloud)

<!-- agent-instructions -->

---

## Agent Instructions

This page is part of the [Langfuse](https://langfuse.com) documentation, published as plain Markdown for AI agents. Every page is available as Markdown by appending `.md` to its URL, or by sending an `Accept: text/markdown` header. This page: `https://langfuse.com/resources/engineering/eu-ai-act-record-keeping.md`.

### Querying these docs

If the answer is not on this page, query the documentation instead of guessing:

- **Semantic search** across all Langfuse docs, returning an answer with the relevant pages and excerpts. Ask a specific, self-contained question:

  ```bash
  curl -sG "https://langfuse.com/api/search-docs" --data-urlencode "query=How do I trace a LangGraph agent?"
  ```

- **Index of every page**: <https://langfuse.com/llms.txt>, with per-section indexes [llms-docs.txt](https://langfuse.com/llms-docs.txt), [llms-integrations.txt](https://langfuse.com/llms-integrations.txt), and [llms-self-hosting.txt](https://langfuse.com/llms-self-hosting.txt).

### Before writing Langfuse code

- **Install the [Langfuse Agent Skill](https://langfuse.com/docs/api-and-data-platform/features/agent-skill).** It encodes Langfuse's own best practices for instrumentation, prompt management, and evaluation, and materially improves results.
- **Read [What does a good trace look like?](https://langfuse.com/docs/observability/best-practices.md)** before instrumenting an application.
- **Verify endpoints, parameters, and response fields** against the [OpenAPI spec](https://cloud.langfuse.com/generated/api/openapi.yml), or read the [API reference as Markdown](https://api.reference.langfuse.com/index.md), instead of inferring them from code examples.
- **Use the [Langfuse CLI](https://langfuse.com/docs/api-and-data-platform/features/cli)** (`npx @langfuse/cli api <resource> <action>`) to read or write traces, prompts, datasets, and scores from the terminal.

Found an error in these docs? Please open an issue at <https://github.com/langfuse/langfuse-docs/issues>.
