Privacy, redaction and audit log
Control how much prompt and response content axonpush stores, add redaction rules, and read the organisation audit log.
The organisation’s privacy policy decides how much content from your LLM calls, tool calls and logs axonpush keeps. It runs on the server before an event is stored, so redacted text never reaches storage, search or analytics. Owners and admins edit it in Settings → Privacy.
Evidence of what your agents did is covered separately in Audit. Personal fields in workspaces are covered in Activity.
Choose a content capture mode
| Mode | Dashboard label | What is stored |
|---|---|---|
metadata_only | Metadata only | Prompt, message, completion, tool argument and tool result fields are replaced with [REDACTED]. Timings, token counts, model and other metadata are kept. |
redacted | Redacted preview | The same content fields are cut to a 256-character preview ending in [REDACTED_PREVIEW]. |
full | Full content | Content is kept in full. Your explicit rules below still apply. |
Content fields are recognised by name, including prompt, messages,
completion, input, output, response, tool arguments and results, retrieval
documents, the OpenTelemetry gen_ai.* content attributes and MCP tool arguments
and results.
An organisation that has never saved a policy captures Metadata only. Once a
policy is saved, a policy with no contentCaptureMode keeps full content, so set
the mode explicitly whenever you save one through the API.
Add redaction rules
These apply in every capture mode:
- Max stored string length. Longer strings are cut and end in
[TRUNCATED]. The default is 4096 characters. Set it to limit full content too. - Always-redacted paths. One dotted attribute path per line, such as
user.emailormetadata.customer_id. The value at that exact path becomes[REDACTED]. - Regex redaction rules. Click Add rule, enter a Pattern (Go regular
expression syntax) and a Replacement, which defaults to
[REDACTED]. Patterns that do not compile are skipped.
Click Save. Changes apply to new events; events already stored are not rewritten.
Always on
Whatever the policy says, axonpush also:
- replaces values under credential-shaped keys, such as
authorization,cookie,password,secret,client_secret,api_key,access_token,refresh_token,session_tokenandprivate_key, with[REDACTED]; - masks credentials inside free text:
Bearertokens, JWTs,ak_keys, token and signature query parameters, and PEM private keys.
Set the policy with the API
PATCH /organizations/{orgId}/telemetry-policy
replaces the whole policy and bumps its version. It needs an owner or admin
session.
curl -X PATCH "https://api.axonpush.xyz/organizations/$ORG_ID/telemetry-policy" \
-H "Authorization: Bearer $SESSION_JWT" \
-H "Content-Type: application/json" \
-d '{
"contentCaptureMode": "metadata_only",
"maxStringLength": 4096,
"redactedPaths": ["user.email"],
"regexRules": [{ "pattern": "\\b\\d{4}[ -]?\\d{4}[ -]?\\d{4}[ -]?\\d{4}\\b", "replacement": "[CARD]" }],
"environmentOverrides": {
"env_dev123": { "contentCaptureMode": "full" }
}
}'environmentOverrides is keyed by environment id. Each override can set any of the
four fields, and replaces that field for events in that environment. Overrides are
only settable through the API; the Privacy page keeps any you have set when it saves.
Any member can read the current policy with
GET /organizations/{orgId}/telemetry-policy.
Only owners and admins can change it.
Read and erase stored content
Content kept under redacted or full capture is private. Reading it needs an owner
or admin, or a key with content:read; browser recordings also need replay:read.
See telemetry.content.
To erase everything stored about one subject, call
DELETE /telemetry/subjects/{subjectType}/{subjectId}
as an owner or admin, or with a key holding content:erase. Erasure also stops
delayed ingestion from restoring the data.
Retention
The Retention section on the Privacy page shows two windows, set by your plan or by your compliance retention policy:
- Recent data: how long events stay searchable. Lists, search and analytics cover this window.
- Archive: how long sealed evidence is kept. Open a specific trace to load older history from the archive.
See Billing for each plan’s windows, and Audit for retention tiers and legal holds.
Audit log
Settings → Audit log shows who changed what, and when: API keys, members and invitations, SSO, organisation and app changes, alert rules, workspace activation and connection, MCP tool calls and private-content reads. Each entry records whether it came from the dashboard, an API key or MCP.
Entries are chained by hash per organisation. Owners and admins read them with
GET /audit-logs and check the chain with
GET /audit-logs/verify.
Changes to the privacy policy are written to the audit log too, and the policy’s
version number increases on every save.
Exports
Settings → Exports copies retained data to storage you own, through export destinations.
Single sign-on
Connect a SAML or OIDC identity provider so your team signs in through it, and optionally enforce SSO for every member.
Billing, plans and quotas
Plans and prices on the hosted cloud, checkout and the billing portal, monthly usage and top-ups, the free organisation allowance, and what happens at a limit.