Skip to main content

Manage log retention and purge

Enterprise Tier

Request records age out of the management plane on fixed defaults that are set by the operator of the deployment, not in the Console. No Console or API operation purges request records on demand. Prompt and response bodies routinely carry the most sensitive data an organization handles, so the retention that applies, and the limits of what a customer can change, belong in any compliance statement.


Retention has three parts: how much is captured in the first place, how long the management plane keeps it, and what happens to the archived copy. How much request detail is captured is decided in the request-log mode, described in Control request log data.

Persona: Platform operator working in the Admin Console, in coordination with compliance and data-governance stakeholders.

Estimated time: 15 to 20 minutes to confirm the logging mode and record the retention that applies.

When this guide applies​

Typical cases:

SituationWhat it covers
A retention policy specifies a maximum age for request recordsThe default retention that applies, and who controls it
A compliance review asks where request records live and for how longThe active store, the archive, the audit log, and any SIEM copies
A right-to-erasure or subject-access request requires specific records to be deletedHow such a request is handled, and what a purge does not reach
Different apps or routes carry different retention obligationsChoosing the single deployment-wide logging mode that satisfies the strictest obligation in scope

Outcomes​

By the end of this guide:

  • The logging mode that decides what request records exist has been confirmed.
  • The retention that applies to request records and MCP request logs has been recorded, together with who can change it.
  • The way an erasure request is handled has been agreed with compliance stakeholders.
  • The relationship between request-log retention, audit-trail retention, and any external SIEM copies is understood, so a claim about "where the data lives and for how long" can be made accurately.

Prerequisites​

  • Administrator access to the Admin Console, typically the super_admin role, to read the logging mode.
  • A logging mode already chosen and active for the deployment. Retention governs whatever records the mode produces. See Control request log data.
  • Agreement with compliance stakeholders on the retention the organization requires, so it can be compared with the defaults below.

Step 1: confirm the logging mode and its scope​

Retention only governs records that exist, so the first step is to confirm what the deployment is configured to capture. The request-log mode is deployment-wide: a deployment running in metadata-only mode has no prompt or response bodies to age out, while one running in full mode stores the largest record and has the strongest case for a short retention window.

  1. Review the deployment's active logging mode, configured in Control request log data.
  2. Note whether the mode captures prompt or response bodies. These carry the most sensitive content and usually warrant the shortest retention.
  3. When the deployment's request-log mode is Off, no request records are stored, so there is no retention to account for and nothing to erase.
  4. Record the obligations each app, route, or data classification in scope carries, as the basis for comparing them with the retention that applies, recorded in the next step.

This mapping is what shows which obligation is the strictest. Because the capture mode is deployment-wide, the mode and the retention posture built on it must satisfy the most sensitive class of data that shares the store.

Step 2: record the retention that applies​

The management plane keeps request records for a fixed period, set by the archival job that runs against its database. These values are deployment settings (Helm values or environment variables of the archival job). No Console screen or API sets them. The archival job does not run in every deployment, and the table below shows the defaults where it does.

RecordDefault retentionWhat happens at the endCustomer can purge
Request log bodies, request headers, and LLM parameters7 daysThe row is copied to object storage, then the bodies, headers, and parameters are cleared from the database.No
Request log metadata rowNo expiryKept.No
MCP request logs30 daysThe row is deleted. A value of 0 turns pruning off.No
Usage rollups, hourly48 hours to 90 days, by intervalThe row is deleted.No
Usage rollups, daily365 daysThe row is deleted.No
Guardrail trigger recordsNo expiryKept.No
Billing transactionsNo expiryKept.No
Audit logNo expiryKept. No Console or API operation deletes audit records.No
Spans, logs, and metrics on the management plane1 dayDeleted from the telemetry store.No
Diagnostic bundles and repair logs, managed deployments90 daysDeleted.No

Archival by deployment type​

The archival job is what ages out request bodies and MCP logs. Without it, both are kept indefinitely.

Deployment typeArchivalValues
Hosted Agent Router ServiceOnRequest log bodies 7 days, MCP logs 30 days, hourly rollups 90 days.
Managed EnterpriseOpt-in at creation, GCP only30 days for both request log bodies and MCP logs.
Self-managed management planeOff unless the install uses --enable-archivalChart defaults apply once enabled.

The archive bucket​

On hosted and managed deployments, a 90-day delete rule applies to the archive bucket. Bucket soft delete can keep objects for a few additional days after the rule fires. The rule is part of Tetrate's infrastructure configuration, not a Console setting. On a self-managed management plane, the bucket's lifecycle is set by the operator, and Agent Router does not delete archived objects.

What happens when a tenant closes​

  • Hosted Agent Router Service. Closing a customer sets a deleted_at marker and blocks new organization API keys. Existing keys and data planes keep working, and no data is deleted by the closure itself.
  • Managed Enterprise. A Tetrate operator runs deprovisioning. It empties the buckets and deletes the cloud project, which the cloud provider retains for 30 days before final removal. The audit log is removed with the project.

For a trial that ends on a hosted deployment, deletion is therefore not automatic. A customer that needs the data removed at the end of the trial has to ask Tetrate.

Records that are not sent to the management plane are not covered by these defaults. Under the metadata-only mode, prompt and response bodies are not sent. Full records sent to a customer's own backend are governed by that backend. See Control request log data.

Step 3: handle an erasure request​

Agent Router has no Console screen or API operation that purges request records on demand. A right-to-erasure or subject-access deletion that has to reach the management plane has to be raised with Tetrate. No self-service path exists.

A deletion that is requested but not confirmed cannot be attested to. Written confirmation of the removal should be requested and kept with the record of the request: what was removed, when, on whose authority, and how the removal was verified. A purge reaches the active store only. It does not remove the archived copy in object storage, any copy exported to a SIEM, or the audit record that the request was made.

Step 4: account for the audit trail and external SIEM copies​

Request-log retention governs request records. It does not govern two other places the same activity may be recorded, and a complete retention statement has to account for all three.

  • The audit trail is outside the request-log retention. Administrative actions are recorded in Agent Router's audit log, which is not subject to the request-log retention above. No Console or API operation edits or deletes audit records, so a purge of request records does not remove the audit record that a request was made. Audit records are sealed in signed checkpoints that make tampering detectable. See Audit Agent Router activity for the audit surface and Audit log events reference for the event vocabulary.
  • Exported copies live under the SIEM's retention. Where request or audit records are exported to an external SIEM, those copies are governed by the SIEM's retention policy, not Agent Router's. Removing a record from the active store does not remove any copy already delivered to the SIEM; that copy ages out, or is purged, on the SIEM's own terms. See Export audit and policy decisions to a SIEM.

"The record has been deleted" is therefore only true for the store it names. A right-to-erasure response that has to cover every copy must address the active store, the archive (Step 2), and any external SIEM separately, each on its own retention clock.