Where AI Usage Logs Are Kept, and Who Reads Them
AI usage logs are the traces that show who sent how many requests to your box, and when. When something happens, the first question is what happened. The record answers it; memory does not. 📒
This article explains where logs are kept, what should be recorded, who should read them and how long they are kept. This article covers the defender’s side only; it does not describe how to carry out an attack.
Where are logs kept?
BU BÖLÜMÜN ÖZETİ
- In the provider console
- On your own server
- Inside the plugin
In three places, at three levels of detail. None gives the full picture alone.

In the provider console
Every provider offers a page showing your account’s usage: tokens by day, by model and by key. OpenAI notes that a team’s usage can be tracked on the usage page. This record is reliable and is kept independently of you. Its weakness is that it does not know the visitor: it says which key spent, not which person asked. 📊
On your own server
If requests pass through your server, you can record each one too: the time, the visitor’s address or account, which box, how many tokens and the result. This record sees what the provider cannot: who, from where and how often. Whether the rate limit works can be seen only here, because a refused request never reaches the provider. That limit is described in what is a rate limit for AI.
Inside the plugin
If you use a ready-made chat plugin, the conversation history usually sits in the plugin’s own table. It shows the content and may not show cost or refused requests. Read once what your plugin records and for how long. Some keep everything indefinitely, which is a responsibility of its own. 🧩
What should be recorded?
A lot of logging is not good logging. Five fields answer most questions.
The minimum fields
For each request these are enough: the time, which workflow or box, a marker that tells visitors apart, the input and output token counts, and the result. The result takes three values: answered, hit the limit, returned an error. With these five fields you can see why the bill grew, what the limit did and when an attack began. Token counts come back with the provider’s response at no extra cost. 🗂️
Refused requests
The most valuable record is of the refusals. If the number of requests hitting the limit jumps, someone is trying. If there are none at all, the limit may be too wide or switched off. OWASP recommends continuous logging and monitoring to catch unusual consumption. Unless you count those who knock, you cannot know the door is being tried.
Who reads them, and how often?
BU BÖLÜMÜN ÖZETİ
- A weekly look
- Alerts
- Access rights
Keeping a log is half the job. The other half is someone looking.

A weekly look
One person, once a week, five minutes: total requests, refused requests, the visitor who asked most, the most expensive day. What you look for is change, not a number. Is anything different from last week? Most weeks nothing is, and the page is closed. In the week something is, you have caught the problem within days. 👀
Alerts
For the hours when nobody is looking, alerts are set: a spending threshold, an unusual number of requests in an hour, errors in a row. An alert should go to at least two people and land in a channel that is actually read. An alert sent to a mailbox nobody opens has not been set.
Access rights
Who may reach the logs should also be written down. According to IBM’s 2025 Cost of a Data Breach report, 97 per cent of the organisations that reported an AI-related breach had no proper access control. Conversation logs contain customer information and should not be a table anyone can read. The number of people who read the log should equal the number who need to. 🔐
How long are they kept?
BU BÖLÜMÜN ÖZETİ
- Numbers and text separately
- Incident records
- Deletion needs an arrangement too
Keeping them for ever is as wrong as not keeping them.
Numbers and text separately
Numerical records, meaning time, tokens and result, can be kept for a long time; they contain no personal data and show the trend. Text records are kept short: as long as troubleshooting needs. Keeping the two kinds in separate places for separate periods eases both the work and the obligation. 📅
Incident records
If an incident occurred, the records of that period are kept separately: they will be needed in writing to the provider, in speaking to an insurer and in drawing the lesson. A screenshot and an export of the console are taken on the day; the provider may not keep detailed history indefinitely. An incident record cannot be produced after the incident.
Deletion needs an arrangement too
Set records whose retention period has ended to delete automatically. Work left to manual deletion is not done, and the table grows for years. The period is decided once and deletion is automated. The whole frame is in the AI audit guide. 🧹
What does it mean for the business?
BU BÖLÜMÜN ÖZETİ
- Bill, security, quality
- Without a log
- Lock list: usage logs
A log is a management tool as much as a security tool. The same table answers three questions.

Bill, security, quality
A log shows why the bill grew. It shows when an attack began and whether the limits helped. It shows which questions the bot struggles with. One logging arrangement is enough for three separate needs. It is set up once. 🎯
Without a log
A business that keeps no log sees only the invoice after an incident: how much. The questions of when, from where and how have no answer. The same incident can recur, because its source was never found. An incident without a log is an incident without a lesson. What to do in its first minutes is in how to rotate a leaked API key.
Lock list: usage logs
This article’s lock list has four lines, in order. One: name two people with access to the usage page of the provider console. Two: on your own side, record the five fields for every request, including refusals. Three: set alerts for spending and unusual requests, sent to two people. Four: set a retention period for text logs and automate deletion. When a key needs changing is explained in when to rotate an API key. Forecast: provider consoles will add views that flag unusual usage by themselves. Update log. 30 November 2026: first publication. Forecasts on this page are re-read when they fall due; one that proves wrong is corrected here, not deleted.
How does Adapte Digital review logging?
BU BÖLÜMÜN ÖZETİ
- A single delivery package
- What is reviewed
- Where to start
In the Attack File one question is asked: how many requests reached your box last month, and how many were refused?
A single delivery package
Adapte Digital does not charge a monthly management fee. Work starts with a single delivery package whose scope is written down in advance: 36,000 TRY + VAT. If the work grows, the new need is defined as a separate add-on package, priced by what will be delivered rather than by the hours spent. 📦
What is reviewed
Where logs are kept, which fields are recorded, who reads them and how long they are retained is established; questions that cannot be answered are written down as missing records.
Where to start
Which packages are open, and at what price, is shown on our campaign pages, item by item. 🧭
Quick Summary
- Logs are kept in the provider console, on your own server and in the plugin.
- Five fields per request are enough; refused requests are recorded too.
- One person looks weekly; alerts go to two people.
- Numerical records are kept long, text records briefly.
- A log answers questions about the bill, security and quality at once.
Short Glossary
- Usage log
- A usage log is a trace kept to store the time and details of each request made to a system.
- Retention period
- A retention period is the length of time a record is kept before it is deleted.
- Access control
- Access control is the set of rules that limits who can reach a piece of data.
Frequently Asked Questions
Next Step
Try to answer this: how many requests reached your box last week, and how many were refused? If you cannot find the answer, your logging is incomplete.
Sources: OWASP Gen AI Security Project — LLM10:2025 Unbounded Consumption · IBM — 2025 Cost of a Data Breach Report: Navigating the AI rush · OpenAI Help Center — Best practices for API key safety
Updated: November 2026
Sık Sorulan Sorular
Recording the full text of questions and answers helps with troubleshooting, and customer messages may contain personal data. The decision should be deliberate: what is recorded, why and for how long? For most businesses the middle way is to keep the numbers always and the text briefly, with limited access. The log itself must not become a source of leaks. This article is not legal advice. ⚖️
It is enough for the bill. To see who asked and whether the limits work, you need your own log.
Not necessarily. Keeping numbers always and text briefly, with limited access, suits most businesses. Ask your lawyer about legal obligations.
Not noticeably. Writing one line per request is negligible beside the time of the model call.
