Skip to content

Audit & data handling

This page describes, factually, what MATVIS records, how long it keeps it, how it can be exported, and where it lives in each deployment model.

What is recorded

Every request screened by the firewall is stored as an analytics event, visible in Firewall analytics. By default each event contains:

  • the timestamp and direction (inbound or outbound),
  • the firewall configuration the request was validated against (config_id),
  • the verdict (valid / blocked / monitored / pseudonymized / allowlisted), overall severity, and each filter's individual result, severity and score,
  • the screened content, exactly as it was sent,
  • each filter's detection details, which include the values it matched. When PII anonymization is enabled on the filter, the event also holds the pseudonymized version of the content and the table that maps each placeholder back to the original value. The original content is kept either way.

For a tool scan, the event's tool-scan entry carries the reason, the tool name, the name of the argument that matched and, for PII, which entity types were found, how many and the highest score. It never carries the tool arguments or the tool result themselves.

To stop storing content, or to stop storing events at all, change the Data retention mode.

Data retention

Data retention is one system-wide setting with three modes. An administrator chooses it under Users › Data Protection, in a table that compares the modes; every change is confirmed first, and it applies to every request screened from that moment on. A new install starts in Full Retention; an install upgraded from a version with the "Store verdicts only" switch starts in Metadata Only if that switch was on.

Mode What is stored per event Message cache Firewall analytics Syslog / Splunk HEC
Full Retention Everything listed above, the screened content included. Used, in Valkey: per entry the verdict and the positions of the PII values found, sealed, for 12 hours. No content. The full event. Every scan.
Metadata Only The verdict, severity, block reason, configuration, timestamp and each filter's result, severity and score, including which PII entity types were found and the score of each match. No message text, no pseudonymized text, no matched values and no placeholder mapping. For a tool scan, also no tool name, no MCP server name and no argument name. Not used: no cache entry is written to Valkey. The event, with Not stored in the Prompt column. Every scan.
Zero Retention Nothing. No event is written, no cache entry, and nothing about the request is written to the database. Filter sessions (beta) are refused: nothing of a session is kept. Not used: no cache entry is written to Valkey. No new events. A notice on the page says so; events kept from before the switch are still shown. Every scan, the only place results go.

In every mode the request itself is screened the same way, the caller gets the same answer, and the SIEM export is the same: it never contains content. In Zero Retention the syslog and Splunk HEC feeds are the only place a result goes, so an outage of those loses the events for good; nothing is buffered. The switch to Zero Retention is allowed without a SIEM configured.

Outside Full Retention a repeated message is always screened again, which can make responses slower. Leaving Full Retention empties the message cache as part of the switch.

In Firewall analytics, an event without stored content shows Not stored in the Prompt column, is not matched by a prompt search, has an empty Prompt column in the CSV export, and shows each filter's result, severity and score but not what it matched.

Stored data actions

Switching the mode does not change events stored before: records written in Full Retention keep their content until one of these actions, on the same page, removes it.

  • Remove messages and tool data from stored records (offered in Metadata Only) removes the message text, pseudonymized text, matched values and placeholder mappings from every analytics event stored so far. The verdict, severity, scores, block reason, configuration and timestamp stay. It runs in the background, shows its progress, can be run again after a failure, and cannot be undone. Once the last record is cleared the analytics table is vacuumed, so the space the old row versions took is freed for reuse at once. Switching to Metadata Only offers the same removal right after the switch, unchecked by default: it only runs when the admin ticks it.
  • Delete all records deletes every analytics event and every cache entry, in any mode, after a confirmation that states how many events it deletes. The tables' storage is freed at once. Switching to Zero Retention offers the same deletion as part of the switch, unchecked by default: it only runs when the admin ticks it.
  • Clear cached scan results empties the message cache at any time. It is only available in Full Retention, since nothing is cached in the other modes.
  • Check database, in the Stored data section, reads every stored event and shows, the same in every mode, how many events there are, how many contain messages or tool data, how many do not, and how many cannot be decrypted with this deployment's keys. Under it, Metadata Only says whether every event is already in the Metadata Only form (an unreadable event does not count as one), and Zero Retention says how many events from before the switch are kept (from the live count, so also before any check); Full Retention has nothing to apply. The check only reads, runs in the background, and keeps its last result across restarts. The message cache is not checked.

Only one of these jobs runs at a time; while one runs, the others are unavailable and the page says which one is running.

What deletion does and does not reach

Deleting content or records changes what the database holds and what MATVIS can return. It does not rewrite the physical disk: freed row versions are reused by later writes rather than overwritten, the database's write-ahead log still carries the deleted rows until it is recycled, and a backup, replica or disk snapshot taken before the deletion still contains them. Treat those as part of your own data handling. MATVIS does not run a VACUUM FULL (it would block every write while it rewrites the table) and makes no claim that deleted content cannot be recovered from the disk, the log or a backup.

Retention

  • Analytics events are retained according to your deployment's data retention policy. In Metadata Only, or after their messages were removed on the Data Protection page, they no longer contain message content; in Zero Retention none are written.
  • The internal message cache deduplicates repeated requests. It is kept in Valkey, in memory only (nothing is written to disk), and only in Full Retention. Each entry is found by a keyed digest of the message, which reveals nothing of it without the deployment's pseudonymisation secret, and holds the verdict and the positions of the PII values found, sealed with a key derived from that secret: no message text, no pseudonymized text, no matched value and no placeholder mapping. On a repeated message the masked text and the mapping are rebuilt from the request's own text. Entries expire after 12 hours, are not found again once the configuration they were scanned with changes, and are removed when Full Retention is switched off, when the cache is cleared and when all records are deleted. Outside Full Retention no cache entry is written to Valkey.
  • The configuration copy in Valkey holds, in every mode, what the Firewall API reads on each request: the firewall, tool, model and ICAP configurations as the database stores them (their text included, such as topic examples, custom patterns and block messages), the hashes of the API keys with their scope, state and expiry (never a key itself), the license and the Splunk HEC add-on settings. Model provider secrets and the Splunk HEC token are sealed there with a key derived from the deployment's projection secret. It holds no message content and nothing about a request, is kept in memory only, and MATVIS builds it again from the database after Valkey restarts.
  • Filter sessions (beta) run in Full Retention only. A session's placeholder mapping (the originals of its PII placeholders), its bindings and its open stream are kept in Valkey, in memory only, sealed with a key derived from the deployment's pseudonymisation secret, for the session's idle time-out plus one minute. They are deleted when the session ends, when Full Retention is switched off, when all records are deleted and when message content is purged. In Metadata Only and Zero Retention a call with a session is refused and nothing of a session is kept.

Export to a SIEM

Firewall events can be forwarded to a SIEM, configured under the dashboard App Store:

  • Syslog (RFC 5424), and
  • Splunk HEC.

The exported payload contains verdicts and metadata only. It carries the timestamp, direction, firewall id, source IP, MATVIS version, model id, trace and span id, session id, whether the result came from the message cache, and each filter's result. The verdict holds valid, action, monitoring_mode, modified, severity, severity_level, block_reason, block_message, handling, source and highest_severity_filter. There is no status field. It does not include the prompt or response text, whatever the Data retention mode. In Zero Retention it is the only record of a screened request.

Data location per deployment model

  • SaaS: events are stored in the MATVIS-hosted environment.
  • On-premises: events are stored in your own infrastructure. No prompt or document leaves your environment.
  • Air-gapped: as on-premises, with no outbound connectivity at all.
  • The message cache runs in a Valkey bundled with the deployment by default. With a Valkey of your own (Kubernetes, valkey.enabled: false, for example a managed cloud service), its entries are kept there: in Full Retention only, sealed verdicts and PII positions for 12 hours, no content; so is the configuration copy, with its secrets sealed.

See Deployment models for the full comparison.