Retention: Set How Long GraphnAI Keeps Personal Data
Choose how many days each store of personal data is kept, and let the database delete older rows on its own. This supports the GDPR Art. 5(1)(e) storage limitation principle.
On this page
- Overview
- Prerequisites
- Step-by-step
- Review the current retention
- Change a retention period
- What a save does
- Recommended minimum and hard limits
- Where a value comes from
- The settings
- Fixed retention
- Change the Graphne audit log or Triage audit log
- Export a person's data and retention
- Configuration
- Troubleshooting
This guide supports your compliance work. Review it with your counsel. It isn't legal advice.
Overview
GraphnAI keeps telemetry, alerts, sessions, conversations and audit records only as long as you choose. Each store has a retention period in days. When a row is older than the period, the database deletes it. This is the storage limitation your DPIA and records of processing rely on.
The Retention tab of Settings > Privacy & Data lists 12 stores you can set. It also lists a few Fixed retention stores that the product sets. Every store has a default, a recommended minimum and a hard limit on each side.
The export summary of Export a person's data reports each store's retention. It reads the same values, so the file you hand to a person matches this tab.
Prerequisites
- Role: Admin. Other roles see "You need the Admin role to use this page."
- Data: none. The tab works on a new server.
- Time to plan: a shorter retention deletes data and can't be undone. Agree the periods with your counsel and your SOC before you shorten any.
Step-by-step
Review the current retention
- Open Settings > Privacy & Data.
- Select the Retention tab.
The table has these columns:
| Column | Shows |
|---|---|
| Data | The store and the reason behind its default |
| Keep for | The number of days. Edit it here. |
| Default | The days GraphnAI uses when nothing else is set |
| Set by | Where the current value comes from: Default, Environment variable or Set here |
| Allowed range | The hard limits, for example "30 to 1,095 days" |
Change a retention period
- In the Keep for column, type a whole number of days on the row you want.
- Read the message under the box. A red message is a hard limit and blocks the change. An amber message is a recommendation. See Recommended minimum and hard limits.
- Select Review changes. The button stays disabled until at least one value differs from the saved one and none is invalid.
- In the Save retention? dialog, check each line. It reads, for example, "Telemetry events: 90 → 60 days". The dialog also lists the stores whose indexes change.
- Select Save. Select Cancel to leave everything as it was.
GraphnAI shows "Retention saved." with the number of indexes it updated, or "Retention saved. No index changes." when nothing needed rebuilding.
You can change several rows in one save. Rows you didn't touch stay as they are.
What a save does
| Change | What happens |
|---|---|
| A shorter value | The dialog warns "Data older than the new limit is deleted, usually within minutes. This can't be undone." The database deletes rows older than the new limit shortly after the save. |
| A longer value | The dialog reads "The new limits apply as soon as you save." Rows are kept for the new length from then on. Rows already deleted don't come back. |
Deletion isn't instant. The database removes expired rows in the background, so older rows can stay visible for a few minutes after you save. A store with a large number of rows can take longer, because GraphnAI rebuilds its expiry index first. The old setting keeps working until the new one is ready.
[!WARNING] Shortening a retention period deletes data permanently. A restore from backup is the only way back, and it brings back everything the backup held.
Recommended minimum and hard limits
Each store has two kinds of lower limit:
- Hard limit. GraphnAI refuses a value below it, or above the longest allowed. The row turns red with "Can't be shorter than 30 days." or "Can't be longer than 1,095 days." The Review changes button stays disabled.
- Recommended minimum. A value below it's allowed. The row shows an amber note, "Shorter than the recommended 90 days.", with the reason. The same note repeats in the save dialog. You can still save.
A value that isn't a whole number shows "Enter a whole number of days."
Where a value comes from
The Set by column tells you which source wins. GraphnAI checks them in this order:
- Set here. A value you saved on this tab.
- Environment variable. Two stores can also be set at start with a server setting: Session history and Decision records. GraphnAI applies it when nothing is saved here.
- Default. The value in the table below.
A value saved on the tab always wins over the environment variable. It doesn't merge with it. To use the environment variable's value again, ask your support contact to clear the saved value.
[!NOTE] Operator note: the database applies every period through a TTL index. Session history starts from your session history setting and Decision records from your decision record setting. Both are server settings your deployment team sets.
The settings
All values are days. A dash means the store has no recommended minimum.
| Data | Default | Allowed range | Recommended minimum | Why |
|---|---|---|---|---|
| Telemetry events | 90 | 30 to 1,095 | none | Behavioral baselines need 30 days of events. Regulators' reference for security logs is 6 to 12 months. |
| Detection alerts | 365 | 30 to 1,095 | 90 | Shorter than 90 days can cut off alerts an investigation still needs. |
| Behavioral baselines | 365 | 30 to 1,095 | none | Baselines refresh while an account is active. Older ones belong to accounts that stopped signing in. |
| Session history | 270 | 1 to 365 | 30 | Shows where an account signed in. Shorter than 30 days hides recent sign-in paths. |
| Graphne conversations | 90 | 1 to 730 | 7 | Graphne conversations hold free text that can name people. |
| Graphne audit log | 90 | 30 to 1,825 | 90 | Graphne's sealed audit trail. Investigations look back up to 90 days. |
| Triage audit log | 730 | 30 to 1,825 | 456 | Sealed record of triage decisions. 456 days covers a SOC 2 Type II audit window. |
| Investigation reports | 365 | 30 to 1,825 | 90 | Reports hold an incident's timeline and findings. |
| Graphne feedback | 730 | 1 to 1,825 | none | Analysts' ratings of Graphne answers. |
| Notifications | 90 | 1 to 730 | none | In-app notices for platform users. |
| Decision records | 730 | 90 to 1,825 | none | Model decisions and their inputs, and the pseudonym map that reads them back, kept for review. Over 12 months needs a written reason in your DPIA. |
| Remediation actions | 730 | 30 to 3,650 | 456 | Approved changes and their evidence. 456 days covers a SOC 2 Type II audit window. |
Telemetry events also covers the relationships and entities built from events. Decision records also covers the pseudonyms that go with them.
Fixed retention
Below the table, Fixed retention lists stores the product sets. The list reads "Set by the product. They can't be changed here."
| Store | Days | Why |
|---|---|---|
| AI governance audit | 2,555 | Kept 7 years as the AI governance record. Your DPIA needs a written reason for this period. |
| AI incidents | 730 | Sealed record of AI incidents. |
| Posture history | 90 | Daily posture scores for the trend charts. |
| AI usage log | 730 | AI usage and cost per request. |
| Absence checks | 7 | Short-lived checks that an account is gone from the directory. |
| Rollback watches | 30 | Watches that undo a change if it breaks something. |
Change the Graphne audit log or Triage audit log
These two stores are sealed. GraphnAI checks their integrity so you can prove no record was altered. Changing their retention keeps that check working.
- A shorter value. The check follows it at once.
- A longer value. Rows already deleted can't be restored, so the check keeps using the previous, shorter value until the new one has been in force for its full length. For example, after you raise the Triage audit log from 730 to 1,095 days, the check uses 730 days for the next 1,095 days.
You don't need to do anything. The integrity check doesn't report the deleted rows as removed.
Export a person's data and retention
In Export a person's data, the last line of the file is a _summary row. Besides the counts, purposes and recipients, it gives each exported store's retention in days, for both the stores on this tab and the fixed ones. A store with no expiry has no entry. Use it to answer how long you keep a person's data in an access request (GDPR Art. 15).
Configuration
The tab is the configuration. Only an Admin can save a value, and each save is recorded in the audit log with the Admin's name.
- A saved value survives restarts and upgrades.
- At each start, GraphnAI makes every expiry index match the effective value. A server at the defaults loses nothing.
Troubleshooting
I set it to 60 and older alerts are still there. The database removes expired rows in the background, usually within minutes. Wait, then reload. A store with many rows can take longer.
"Retention settings aren't ready yet. Try again in a minute." The server is still applying retention after a restart, or another save is in progress. Try again in a minute.
The Review changes button is disabled. No value differs from the saved one, or a row shows an error. Fix the red row. Enter a whole number of days inside Allowed range.
A row says "Shorter than the recommended" and I want to save anyway. The note is a recommendation. Select Review changes and Save. Record your reason in your DPIA.
I changed an environment variable and nothing happened. A value saved on this tab wins. The Set by column reads Set here. Ask your support contact to clear the saved value to return to the environment variable.
I made a retention longer and the deleted data is gone. Rows deleted under the old period don't come back. The longer period applies to rows from then on.
A store is missing from the table. Fixed stores appear under Fixed retention and can't be edited. Stores that hold no personal data have no expiry.
"You need the Admin role to use this page." Ask an Admin to open the tab. See Users and Roles.
The export summary has no retention for a store. The store has no expiry. See Export a person's data and retention.