Skip to content
Anexet
Abstract illustration for “Data Retention”

Data Retention

Data retention is the length of time data is kept before it is removed. In Anexet, rotation groups clear whole databases on a size, time or record-count trigger, and event records follow their own cleanup period.

Anexet Team
November 12, 2026Read 4 min

What data retention means

Data retention is the length of time that data stays in a store before it is removed. The period is a decision about purpose, not a storage setting: data is kept for as long as someone can justify needing it, and then it leaves the system.

Retention cuts both ways. Keep too little and an investigation finds no records of the event it was opened for. Keep too much and every old record becomes part of the damage when a data breach happens. The risk is highest for sensitive data, which deserves a shorter period than ordinary files.

Three ways to measure a period

Anexet does not run one timer for every record. A period is measured by time, size or count, and a rotation group can combine them.

MeasureWhat it countsWhy it matters
TimeAn interval, for example every first day of the monthGives a predictable schedule, but says nothing about how much data is stored
SizeThe database, its search index, the files on disk or the total amount of dataStops one store from growing without limit
CountThe number of records in the databaseKeeps each database small enough for fast search

How rotation clears data

Rotation works on whole databases. The group keeps one active database, and a rotation condition moves writing to the next database in the queue.

  1. 1

    Fill the active database

    The active database takes new records until one of the rotation conditions is met.

  2. 2

    Clear the next database

    The next database in the queue is cleared completely, both its tables and its index, before anything is written to it.

  3. 3

    Move the writing

    New records go to the cleared database, while the previous one stays available for search.

  4. 4

    Start the cycle again

    When the queue reaches its end, it returns to the first database, so the oldest data is always the first to go.

Why the cycle sets the real period

A record is removed when the database that holds it is cleared, not on its own date. The real lifetime therefore depends on the number of databases in the group and on the trigger that switches them.

Clearing removes everything in a database at once, so the size of the group is also a retention decision, not only a capacity one. A purge of this kind works on the whole database, not on single records.

What it looks like in Anexet

In the Central Server settings, the Rotation tab of a rotation group holds the conditions that switch its databases. The checked conditions decide when a group switches databases, and the time window limits when the switch may run. Central Server is the component that stores captured data for Anexet DLP and the other modules.

The checked conditions decide the switch, and the time window sets when it can run.

Sizing for larger deployments

The system requirements set limits for larger deployments. For 500 or more users, rotation must be set by database size or by period, with the limits below. The two rules are alternatives, so meeting one of them is enough.

Rotation ruleUpper limitStatus
Database size2 TB per databaseOption one
Time periodOne monthOption two

Common mistakes

Most retention gaps come from a rotation that does less than its owner expects:

A rotation that never switches keeps every record, whatever the written policy says.

  • Setting only a size trigger, so a quiet database never fills up and its records are kept without an end date
  • Reading the interval as the deletion date, although a record leaves only when its whole database is cleared
  • Deleting a database from the group and assuming its files are gone, while the database stays on disk after deletion
  • Adding a script without checking how a failed script is handled, since with rotate_on_fail set to false a failure stops the rotation
  • Keeping backup copies with no period of their own, so data cleared from the group survives elsewhere

Where to start

Start by opening the Rotation tab of each rotation group and writing down which conditions are checked and how many databases sit in the queue. Compare that with the period in your policy: a group with only a size condition has no time limit at all. A group that has never switched keeps everything, whatever its settings say.

A database that never switches is not kept on purpose. It is simply kept.

Anexet Team

How Anexet handles this

Anexet runs on-premise, so the saving rules and rotation groups live in the organization's own infrastructure and are set in the console.

Retention begins with the saving rule. Data that matches no rule is not stored, and the rotation groups then decide how long the stored data stays.

  • Saving rules

    Each rule selects the captured data to write, and the first matching rule applies.

  • Rotation conditions

    Size, search index, files on disk, total data, interval and record count can each switch a group, and a time window limits when the switch runs.

  • Rotation scripts

    Scripts can run before a switch, after it or on an error, for example to copy a database before it is cleared.

  • Event log cleanup

    Event records are removed after their retention period, for the event levels selected in the cleanup settings.

Anexet DLP

Learn more

Frequently Asked Questions

Common questions about this term and how Anexet handles it.

No. Data retention is the length of time data stays in a store and the mechanism that enforces it. A retention policy is the written rule that sets those periods for each type of data and gives the reason for each one.

No. Rotation clears a whole database, so every record in it leaves at the same moment. The age of a record depends on when the queue returns to its database.

No. Disabling rotation stops the switch triggers, so no database is cleared and the active database keeps filling. Older databases stay available for search.

There is no fixed number. More databases make the cycle longer and keep data for longer, while fewer databases clear it sooner. Choose the number from the period the policy allows and the size limits for the deployment.

Protect your data with Anexet

See how Anexet stops data leaks, monitors employee activity, and keeps you compliant, in a quick live demo.

Request a demo