Audit

The Audit page (/audit) shows who asked a Topic, GraphRAG Topic or Agent what, when and in which way, and which answer they got. It also shows every document upload and delete, every change to the settings a Topic, GraphRAG Topic, Agent or Pipeline is started with, and every start, stop and delete. Use it to answer questions such as "who asked about this customer last week?" or "who changed this Topic’s prompt?".

The records hold personal data: names, e-mail addresses, questions and answers. So only users with the permission Read Audit Records (AUDIT_READ) see the page. Looking at records and exporting them is recorded too.


1. Who may see what

Task Permission

Open the Audit page and a record, filter, export

Read Audit Records (AUDIT_READ)

Change how long records are kept (Admin → Audit Settings)

View LLM Config (CONFIG_VIEW) to see the page, Manage LLM Config (CONFIG_MANAGE) to change it

Pseudonymise the records of a deleted user

Read Audit Records and Manage Users (USER_MANAGE)

A fresh installation has a built-in role AUDITOR with only Read Audit Records and Edit Own Profile. Give it to people who must check the records but should not administer the platform. Auditors are often not administrators, so Audit has its own entry in the navigation menu, not one under Admin. The ADMIN role has the permission too. The default USER role does not.

With Read Audit Records, a link Audit records also appears at the top right of a Topic’s, GraphRAG Topic’s and Agent’s page and on a user’s page in User Management. It opens the list filtered to that Topic, Agent or user.


2. What is recorded

Kind What a record holds

Questions

One record per question to a Topic, GraphRAG Topic or Agent: who asked, when, in which way, the question, the answer, the sources, notes (for example a refused topic or a blocked question), the tools and Topics that were called, and how long it took. Attachments are listed with name, type and size, never with their content

Uploads

Every document upload and delete: file name, type, size, a fingerprint (SHA-256) of the file, and whether it replaced an earlier version. Never the content

Reads

When someone reads the stored text pieces (chunks) of a Topic directly, for example through the Topic’s REST interface: how many were returned, never the text

Settings changes

Every change to a Topic’s, GraphRAG Topic’s, Agent’s or Pipeline’s settings and to the global LLM configuration, from the UI or the REST API: each changed setting with its old and new value. Passwords and keys are listed as changed, without their values. Also start, stop, restart and delete of a Topic, GraphRAG Topic or Agent, the delete of an AI or Docling server, and the token a scheduled Agent run receives (see the note below)

Audit access

Who looked at which list page or record, who exported records, who pseudonymised a deleted user and who changed the retention time

Only changes a person makes are recorded. What the platform does by itself, for example an Agent that restarts after a Pipeline change, has no record of its own.

A scheduled Agent run gets a short-lived token for each run. A Pipeline that runs often asks for one every few minutes. To keep the list readable, only the first token per Agent, Pipeline and owner is recorded in each hour, and again at once when the Pipeline’s owner changes. The app setting AUDIT_SERVICETOKEN_INTERVAL (default 1h) changes this time: a shorter time records more tokens, 0 records every token. With several replicas of the app, each replica records its own first token.

Questions, uploads and reads are written by the Topics, GraphRAG Topics and Agents themselves, not by this app. A Topic that runs an older version of the image writes no records. Stop and start it to update it.

The servers write their records in small batches. A new record can therefore take a few seconds to appear. If the database cannot be reached, a server keeps its records and tries again; the chat does not wait for it. Only after a long outage, when its buffer is full, does a server drop its oldest records.


3. The list

The list shows the newest records first. Open it with Audit in the navigation menu. By default it shows only Questions.

Filter What it does

Kind

Questions, Uploads, Reads, Settings changes, Audit access, or All

From, To

Only records in this time range. Times are in your browser’s time zone

Resource

One Topic, GraphRAG Topic or Agent. A deleted one is shown as Deleted resource with the start of its id

Way in

How the request arrived: UI (this app’s chat or upload), API (a REST call), MCP (a tool call, for example from another Topic or an AI assistant), AGENT (an Agent asked a Topic), SCHEDULE (a scheduled Agent run)

Outcome

For example ANSWERED, BLOCKED_INPUT (the question was refused by the content rules), BLOCKED_OUTPUT, CENSORED (parts of the answer were blacked out), ERROR, ABORTED, REJECTED, SUCCEEDED

User

The person who asked, or the person a call was made for. A deleted user is shown as Deleted user with the start of their id

Text in question, answer, document or setting

Words to look for

Click Search (or press Enter) to apply the filters. The filters are kept in the page address, so the browser’s back button, and Back on a record, return to the list as you filtered it.

The columns are When, Who, Where, Way in, Outcome and Question or action. If a call was made for someone else, Who names both, as <caller> for <user>. Drag a column border in the header to read text that is cut off.

Export

Export CSV and Export JSON download the records the filters show, at most 50,000. The CSV file opens in spreadsheet programs; the JSON file holds the complete records. Every export is recorded with the filter that was used.


4. A record

Click a row to open the record. It shows, depending on the kind:

  • Who: name, user name and e-mail, and, for a call made by a service or for someone else, on whose behalf. Links open all records of this user and the user’s page.

  • When: when it was asked or started, when it finished and how long it took.

  • Where: the Topic, GraphRAG Topic or Agent, the way in, the chat session, and which server answered. Links open all records of this resource and the resource’s page.

  • For a question: the Question, the Answer, How it was answered (outcome, model, whether the answer was kept in the chat history, who aborted it), the Sources, Notices, Tools and topics called, and the questions of a human approval step with their answers.

  • For an upload: the document’s details, never its content.

  • For a settings change: each changed setting with Before and After. A created or deleted resource shows its settings.

  • Call tree: when an Agent asked Topics, or a Topic asked another Topic, the related records of the same question are shown as a tree. Click an entry to open it.

  • Full record: the complete record as it is stored, for checks in detail.


5. How long records are kept

Admin → Audit Settings (/admin/audit-settings) sets how long records are kept: at least 30 days, at most 3,650, 180 days (six months) by default. Older records are deleted automatically, about once an hour.

A longer time lets auditors look further back, but keeps more personal data. A shorter time deletes records sooner. This cannot be undone: records already deleted do not come back when you raise the number again. A change is itself recorded.

Records cannot be changed or deleted in any other way, not even directly in the database: the database refuses it. The only exceptions are the automatic deletion after the retention time and the pseudonymisation below.


6. Deleted users and pseudonymisation

When a user is deleted, their records stay until their retention time ends. For an erasure request you can replace the user’s name, display name and e-mail address in these records with a pseudonym.

  1. Open Audit and click Deleted users… (shown only with Manage Users).

  2. The dialog lists every deleted user whose records still carry their name: the last user name, the id and the number of records.

  3. Click Pseudonymise and confirm. The name, display name and e-mail address become deleted-user-<first 8 characters of the id> in every record of this user.

Questions and answers stay as they are, so they may still name the person. Pseudonymising cannot be undone. Nothing is pseudonymised automatically.


Troubleshooting

Problem Cause and fix

Audit is not in the navigation menu

Your role lacks Read Audit Records

A Topic’s questions do not appear

The Topic runs an older image that writes no records. Stop and start it. A new record can also take a few seconds

A list page shows an error instead of records

The app could not record that you looked at the records, so it shows none. Check that the app’s database can be reached

Saving a setting fails with an audit error

A settings change that cannot be recorded is not saved. Check the database

Records older than the retention time are still there

The deletion runs about once an hour, in small steps. After a shortened retention it can take a while

Deleted users… is missing

Your role lacks Manage Users