Davy
Thin squares stacked at mirrored angles to form a symmetric badge, with a small solid blue square at the center
AI Security

How to Keep Audit Logs of AI Use

Decide what an AI audit log should record, who may read it, how long to keep it and how to test it, so you can answer clients, auditors and incident reviews.

In brief

  • A useful AI audit log shows who did what, with which model, on which data, under which policy, and what happened.
  • Logs hold sensitive information themselves. Limit who can read them, protect them from edits, and decide when content is logged and when only metadata is.
  • Test the log with a drill: pick an answer from last week and see whether you can reconstruct how it was produced.

An AI audit log is the record that lets you answer, weeks later, what happened. A client asks which of your people used an AI tool on their file. An auditor asks how you control access to sensitive data. A manager sees a strange output and wants to know where it came from. Without a log, each of those questions ends in a shrug.

What to record

Think in terms of the questions you will need to answer, then work backward to the fields.

FieldThe question it answersCaution
User and teamWho did this?Use a stable identity, not a display name
TimeWhen?Use one time zone, and record it
Assistant or workflowIn which tool or assistant?Include version if instructions change often
Model and providerWhich model produced the answer?Record the exact model name, since models change
Processing regionWhere was the request processed?Matters for contracts and data location promises
Sources usedWhich documents or data did it draw on?Record identifiers, not the full text
Policy appliedWas it allowed, masked or blocked, and by which rule?Log blocked attempts too
Action and resultWhat did the assistant do, and did it succeed?Include tool calls and any approval
ApproverWho confirmed an action that changed something?Required for actions that change data

Metadata or content?

The hardest design choice is whether to log the full text of prompts and answers. Content makes investigations easy and also creates a second copy of sensitive information. A reasonable default is to log metadata for everything and content only where a specific need justifies it, such as high-risk workflows, regulated work or a period of investigation. If you log content, apply the same masking and access rules you apply to the data itself, and be clear with employees about what is recorded.

Protect the log itself

A log that anyone can read is a leak, and one that anyone can edit is worthless as evidence. Restrict access by role, so administrators can manage the system without reading client content. Keep the log in storage that resists tampering, with changes recorded. Encrypt it. NIST's security control catalog (SP 800-53) has an audit and accountability family that covers the points above: what events to log, what each record should contain, protecting audit information, reviewing it and retaining it. NIST's log management guide (SP 800-92) describes the lifecycle from generating logs to disposing of them. Neither is written for AI, but the principles apply directly.

Retention

How long to keep logs depends on your obligations: client contracts, regulators, your own retention schedule and any legal hold. Metadata is usually small and valuable and can be kept longer. Content is bulky and risky and is usually kept for a shorter, defined period. Set the periods with legal or compliance, write them down, and make sure deletion actually happens when the period ends.

Someone has to read them

A log nobody looks at is a record of regret. Assign a person to review a sample each week at first, and set alerts for patterns that matter: a surge of blocked requests, large exports, use outside normal hours, a new model suddenly handling client data, or an assistant calling a tool it never used before. Reviewing the first month closely teaches you what normal looks like.

Test it with a drill

Pick three questions your log should answer. For example: who used a particular model on a given client's files last month? Which documents did this specific answer draw on? Who approved this action? Then try to answer them using only the log. If you cannot, you have found the gap before anyone needed the answer. Run the drill again after any change to the system.

What Davy records

Davy's security page says the model used, the processing region, the applied policies and the result of the action are logged, and that access to the logs is limited according to the relevant permissions. As with any vendor, confirm what the log contains in practice by looking at a sample, and ask how long it is kept and who at the vendor can read it. The Enterprise page covers the administration and policy controls larger organizations usually want around it.

About This Post

Frequently asked questions.

Should we log the full text of prompts and answers?

Only where you have a reason. Metadata answers most questions and carries less risk. Log content for high-risk workflows or investigations, and protect it with the same masking and access rules as the underlying data.

How long should we keep AI logs?

Match them to your existing retention schedule, client contracts and any regulatory requirements, and let legal or compliance set the numbers. Keep metadata longer than content, and make sure deletion actually runs.

Who should be able to see the logs?

A small group with a clear need, such as security, compliance and a few administrators. Access should be logged as well, and administrators who manage the system should not automatically be able to read client content.

Does having logs satisfy a SOC 2 audit?

Logging supports monitoring and access controls, but an audit asks for evidence that your controls are designed and operating, not only that logs exist. Talk to your auditor about what they need to see.

Next Step

Get in touch with us.

Secure AI that helps you speed up your work.