AI Security
What Do AI Logs Need to Keep?
Build a useful operating record without routinely copying prompts, answers or confidential material into telemetry.
Top One Percent AI · Practical guidance with linked sources.
An AI assistant starts taking twice as long to answer employee questions. The operations team wants enough information to identify the failing step. An engineer suggests capturing every prompt and answer until the fault is fixed. That may help debug the problem, but it can also put confidential employee or customer material into a system with different users, vendors and retention settings.
Design the normal record around the questions your team must answer. Decide separately what to do when it truly needs the text.
Start with the smallest useful record
For a slow policy assistant, an opaque request identifier, operation name, approved model or deployment version, duration, and a coarse outcome can help locate a failing step. A time span records how long an operation took. A few linked spans can show whether the delay occurred during search, model processing, or an approved downstream call. The labels need to mean the same thing across components.
Do not assume labels are harmless. A document title may reveal a pending acquisition. A free-form error can include text copied from a request. Review the emitted fields and actual stored records, not just the dashboard names. Restrict who can tie an opaque request identifier back to a person or record.
Treat message capture as a separate choice
The OpenTelemetry conventions for generative-AI spans mark message recording as opt-in and discuss the risks of collecting large or sensitive content. These conventions do not tell you how a particular vendor is configured. Verify the behavior in your application, its collector, and the destination that stores traces.
Recreate the error with fictional material first. If the real text is necessary, decide who can approve collection, which cases are in scope, who can see the result and when capture ends. Check the handling of any approved copies. Existing incident preservation requirements may take priority over ordinary deletion, so coordinate with the people responsible for evidence and records.
Test the controls before the support team needs them
In a test environment, use a fictional customer record and one unmistakable dummy value. Trigger a normal error and inspect the destinations the team controls. The operator should find the request and identify the failing stage without finding the dummy text. If the value appears, identify the component that recorded it and correct the configuration before expanding use.
Run a second check on the approved diagnostic path if one exists. Confirm its access restrictions and that normal collection resumes afterward. If a hosted component is outside your view, record the gap rather than declaring that no copies exist.
Ask for a log review people can finish
For an AI security workshop, give the audience a cleaned trace and a short support question. Ask what it can answer, what it cannot answer, and whether extra collection would materially change the decision. The output is a list of approved fields and a named process for exceptions. Do not ask a facilitator to work with production logs in an event session.
The NIST Generative AI Profile offers broader context on data privacy risk. Define the support question and who owns the log review in the event brief.