Audit logs are several data types, not one
A single audit record often combines content that carries personal or regulated data with information that does not. Placement decisions are easier when each component is treated separately.
| Log component | Examples | Placement guidance |
|---|---|---|
| Content that may contain personal or regulated data | Prompts and completions | Keep in a region and storage tier you control. |
| Reduced records | Metadata and policy decisions | May move to central monitoring, only where legal review confirms the transfer is acceptable. |
Comparing storage placement options
The pipeline described in this guide uses two placements: a regional store for full records and a monitoring layer for permitted fields.
| Placement | What it holds | Condition |
|---|---|---|
| Regional store | Full records | Records stay in the region that applies to the data. |
| Central or federated monitoring | Search over permitted fields, using reduced records such as metadata and policy decisions | Only where legal review confirms the transfer is acceptable. |
Where residency risk enters the logging pipeline
Residency risk enters wherever a record is created, transformed or stored. If those steps are not controlled at capture time, content may be stored or moved before it has been classified, redacted or routed.
Audit log pipeline with residency boundaries
- CaptureGateway, agent runtime and tool-call layer emit records.
- Classify and reduceContent is labeled, redacted or reduced to metadata.
- Regional storeFull records stay in the region that applies to the data.
- MonitoringCentral or federated search over permitted fields.
A decision framework for placement
Apply these steps to each log component, in order.
- Classify. Label each component of the record, such as prompts, completions, metadata and policy decisions.
- Redact or reduce. Redact content or reduce it to metadata where the full content does not need to travel.
- Partition by region. Keep components that contain personal or regulated data in a region and storage tier you control.
- Route reduced records. Send only reduced records to central monitoring, and only where legal review confirms the transfer is acceptable.
- Enforce at capture time. Apply the steps above before storage, so every record is classified, redacted and routed before it is written.
Questions to verify with each provider and platform
- Does the provider retain prompts or responses, for how long, and in which region?
- Can abuse-monitoring or similar retention be limited or disabled for your account and regions?
- Can logs be pinned to a region, with customer-managed keys and controlled replication?
- Do observability and tracing tools capture full payloads by default, and can that be turned off?
- Can you produce a complete, consistent audit record without relying on provider-side logs?
Runtime controls that keep records consistent
A placement design only holds if every record is produced the same way. If each application, gateway or agent framework formats and routes its own logs, classification and redaction will vary and residency rules will be applied unevenly. The reliable approach is to apply them at one enforcement point, before a record is written anywhere.
At runtime, that point needs to see the agent identity, the tool being called, the arguments and the policy outcome. It should attach consistent identity and decision context, apply the redaction or reduction rule for each field, and route the record to the correct regional store. It should also write a record when a call is denied or sent for approval, since those events matter in an investigation.