LLM Audit Log Requirements: Required Evidence Fields in Prompt and Response Log Entries
An LLM log entry is audit-ready when it lets an independent reviewer reconstruct the interaction, confirm which controls were enforced, and verify the record was not altered. In practice that means each entry carries identity and attribution, timestamps and correlation IDs, model and version, prompt and response content or a protected reference, policy decisions, tool and data access, redaction details, and integrity metadata, with links to related entries.
Treat the log entry as an evidentiary record
For an auditor, a prompt and response log entry is evidence, not a debugging convenience. The test is whether someone who was not involved in the interaction can use the entry to understand what happened and rely on it.
Minimum fields for each prompt and response entry
Each entry should carry the following, with links to related entries:
- Identity and attribution
- Timestamps and correlation IDs
- Model and version
- Prompt and response content, or a protected reference
- Policy decisions
- Tool and data access
- Redaction details
- Integrity metadata
- Links to related entries
What an audit-ready entry establishes
| Question | What the entry shows |
|---|---|
| Who | The user, agent, or service that initiated and received the interaction. |
| What | The model, prompt, response, tool calls, and data accessed. |
| Under which controls | The policy state and the enforcement outcome applied. |
| In what sequence | Timestamps and identifiers that link entries across a session. |
| Whether it can be trusted | Integrity, access, and retention properties of the record. |
Balancing full capture against privacy and minimization
The field list allows prompt and response content to be recorded either directly or as a protected reference. Where content is redacted, the entry should carry redaction details so a reviewer can see what was altered and still follow the interaction.
Integrity, access control, retention, and linkage
Trust in a record depends on more than its content. Reviewers should look at the integrity, access, and retention properties of the log, and at whether integrity metadata is present on each entry.
Linkage matters as well. Timestamps, correlation IDs, and links to related entries let a reviewer place an interaction in sequence across a session.
Gaps to test for and flag
Sample entries and flag any where a reviewer cannot determine:
- Who initiated and received the interaction.
- Which model, prompt, response, tool calls, and data were involved.
- Which policy state and enforcement outcome applied.
- Where the entry falls in the sequence of a session.
- Whether the record’s integrity, access, and retention properties support relying on it.
Evaluating a runtime logging and governance layer
When assessing a runtime logging and governance layer, apply the same criteria: check whether it produces entries carrying the fields above consistently, so that evidence of AI agent activity is reviewable.