Admin
Exporting Audit Logs
Download, stream, or archive Alter audit events.
Credential access, provider calls, policy decisions, lifecycle changes, and administrative actions produce structured audit events. The developer portal supports filtered downloads, uncapped bulk jobs, telemetry mirroring, and continuous SIEM delivery. The CLI provides a paginated pull path for custom archives and ingestion pipelines.
Glossary
Section titled “Glossary”Every export uses the same words for the same facts. Older field names stay on the wire for compatibility and are listed beside each term.
| Term | Meaning | Legacy names on the wire |
|---|---|---|
| Grantee | The identity a grant is issued to: an end user, a user group, an agent, or the application itself. On a delegated call the grantee is the agent holding the delegation. | principal, grant_owner (CSV and JSON exports), principal_type |
| Root grantee | The grantee of the grant at the root of a delegation chain: who the access was originally granted to. Equal to the grantee on direct access. | root_grantee (same spelling) |
| Actor | Who performed the event: the agent, the application, an operator, an end user, or the platform. | effective_agent, caller |
| Channel | How the actor reached Alter: sdk, end_user (an end user, in the Wallet or on a hosted Connect page; shown as “End user”), portal (the dashboard), pat (the CLI), or system. | actor_source; principal_kind on portal-action entries. On the agents feed principal_kind is instead the kind of actor an entry groups (actor, agent or key); it never names a grantee |
| Subject | The human the event was performed for, or by: the end user a delegated call ran on behalf of, or the approver of a delegation or request. | caller_app_user_id, on behalf of |
| Requester | On a human decision (a Connect approval, a request approval), the key, agent and caller label that asked for it. | requested_by (same spelling) |
| Delegation | A grant issued to an agent from another grant. The chain lists every hop from the acting agent back to the root grant. | delegation_chain (same spelling) |
What’s in an audit row
Section titled “What’s in an audit row”See Audit logs for the full field list. The short version per call:
- Timestamps, app and provider identifiers, response status, latency.
- Actor and channel (the agent and how it was established, the application key, an operator, an end user, or the platform; the free-form
callerattribution). - Grantee (the user, group, agent, or application the grant is issued to) and root grantee (who the access was originally granted to).
- Subject (the end user the call ran on behalf of, or the approver of a decision) and, on a decision, the requester.
- Grant reference, kind, delegation (the delegation used and the chain of hops), and data categories when present.
- Context (application-supplied tool name, run ID, thread ID).
- Reason (the human-readable explanation passed on the request).
- Outcome (success / policy denial / provider error / network error).
Sensitive headers are stripped. Audit rows and exports contain request and response metadata (including body sizes), not bodies. Request and response payload capture is a separate, opt-in diagnostic feature: captured bodies have their recognizable secrets redacted (see Audit logs for what is and is not recognized), use the deployment’s configured size cap (64 KiB per body by default), record truncation, and expire under the configured payload-retention period. Captured payloads are never included in audit exports.
Events written before the current attribution contract are read through the same vocabulary: a pre-release delegation event names the recipient agent in its agent field. Every export shows such an event with attribution_version absent. The audit API, the JSON and NDJSON exports, the OCSF 1.9.0 SIEM event and telemetry spans also mark it attribution_derived: false and name the recipient as target_agent_id (alter.attribution_derived and alter.target_agent_id on a span), the SIEM event and the span name no acting agent, and the portal and the CLI never show that agent as the one who acted. See Pre-release delegation events.
Export paths
Section titled “Export paths”1. Filtered export from the portal
Section titled “1. Filtered export from the portal”On an app’s Audit Logs page, select Export. Choose a date range of up to 365 days, select CSV, JSON, or NDJSON, and decide whether to apply the current view’s filters. The synchronous export contains the 50,000 most-recent matching events. If the cap is reached, the portal reports that the file was trimmed so the range or filters can be narrowed.
The Tag filter takes key:value entries, and several entries must all match. An event matches when the grant or the agent it names carries every tag. Events hold no tags of their own, so this reads current tags, not a snapshot: changing a tag changes which past events match.
2. Bulk export from the portal
Section titled “2. Bulk export from the portal”On the Access & Requests tab, select Bulk export for a server-side job that writes every matching access, request, lifecycle, provisioning, portal and Wallet policy-change event in the selected date range to a downloadable CSV or NDJSON artifact. Bulk exports have no row cap. The portal polls the job and presents a short-lived download link when it is complete. Bulk export requires export storage to be enabled on the deployment, and is available to organization admins only. The control is hidden for other members.
3. Pull via CLI
Section titled “3. Pull via CLI”PAT-authenticated automation can read the audit surface with dashboard_audit:read. The token carries its owner’s audit visibility, re-checked against their live organization role on every request, and the CLI prints a stderr notice when the management plane is narrowed. For example:
alter audit list --since 30d --output jsonl > audit.ndjsonJSON list output returns a paginated envelope; JSONL writes one page of rows. A long-running collector is responsible for advancing --offset or the time window and persisting its own checkpoint.
4. Telemetry endpoint (OTLP)
Section titled “4. Telemetry endpoint (OTLP)”Under Settings → Audit & compliance → Telemetry endpoint (OTLP), configure a default organization collector or app-specific overrides. Alter mirrors audit events as OpenTelemetry spans to the configured OTLP/HTTP collector. This is a telemetry stream, not the compliance source; the authoritative audit trail remains in Alter.
Put the collector’s credentials (for example an Authorization or vendor API-key header) in the endpoint’s headers, not in its URL. Headers are stored encrypted and are never shown again or written to the audit log. The URL is stored as entered and shown in full to organization admins on the settings page; in the audit log, its credential-shaped query and fragment values and any password in it are masked (the same rule as SIEM destinations, below).
Telemetry and SIEM destinations receive every audit event family the portal’s activity feed shows: credential access, provider calls, approvals, OAuth and managed-secret grant and delegation lifecycle, policy-rule changes made in the portal, the CLI, or by end users in the Wallet, identity-provider provisioning and deprovisioning, and identity events. Legacy Wallet sign-in and navigation records are not exported.
Each span identifies the event and the trace it belongs to separately:
| Attribute / field | Meaning |
|---|---|
alter.event_id | The audit event id, stable across re-delivery |
traceId | The event’s own W3C trace id when the request carried one (alter.trace.origin = source), so the span joins the caller’s distributed trace |
alter.trace.origin = converted | The request’s correlation id was not a W3C trace id; traceId is a deterministic hash of it (events of one request still share a trace) and the original value is in alter.trace.original_id |
alter.trace.origin = event | The event had no correlation id; traceId is derived from the event id, so it never joins another request’s trace |
spanId | The event’s own span id as Alter recorded it (or, when none was recorded, one derived from the event id), never random, so a re-delivered batch is identical. Wallet configuration events, which record only the request’s span, each get a span derived from their event id |
parentSpanId | The span the event was recorded under: the span of the caller’s request when it sent a traceparent header, or another event’s span, so the event nests in the caller’s trace. Events are not recorded with the caller’s span as their own spanId. Absent when the request carried no traceparent, and for event types recorded without a parent, which appear as root spans. Events recorded before this was enforced may instead carry the caller’s span as their own spanId, with no parent. The recorded ids are also in alter.span.source_id and alter.span.source_parent_id |
alter.app_user_id / alter.caller_app_user_id | The end user the event is about (the grantee or the subject), and, on a delegated call, the end user the call was made for |
alter.effective_agent_id | The agent that acted, when one did. On an older delegation event that recorded who asked, that agent; absent on an older delegation event whose agent field names the delegation’s recipient (Pre-release delegation events) |
alter.target_agent_id | On a delegation event, the agent the delegation is for |
alter.attribution_derived | false (a boolean) on an older delegation event whose agent field names its recipient rather than the actor; absent on every other event |
alter.grantee_type / alter.grantee_id | The grantee of the event’s grant (an agent on a delegated call) |
alter.root_grantee_type / alter.root_grantee_id | Who the access was originally granted to (on older events) |
alter.subject_app_user_id / alter.subject_jwt_sub | The subject, and the identity-provider subject Alter verified for them |
alter.channel | The channel: sdk, end_user, portal, pat, or system |
alter.access_via / alter.delegation_id / alter.delegation_chain | The access path: direct (ownership) or through a delegation, the delegation used, and the chain of hops as a JSON string of ids and agent names |
alter.effective_agent_source | key when the agent authenticated with its own key, asserted when the application key named it |
alter.pat_id | On a CLI-driven event, the personal access token that performed it |
alter.attribution_version | 2 on events written under the current attribution contract; absent on older events |
alter.decided_by_app_user_id | On an approval decision: the approver who decided |
alter.decided_by_email / alter.actor_assurance | On an approval decision: the deciding person’s email (also when the application’s integration named them, with no app user) and how Alter knew them (verified_by_alter or asserted_by_integration) |
alter.policy_rule_id | The policy rule that decided the event, when a rule did |
alter.resource_type / alter.resource_id | The configuration resource a configuration event changed, such as a policy rule |
alter.causation.id | On deprovisioning events: the id shared by the triggering provisioning event and every grant and delegation revocation it caused |
End users appear in telemetry spans by their Alter id and, when the request carried a user token, the identity provider’s subject (sub); email addresses and display names are never sent to an OTLP collector. Spans also carry the allowlisted agent-framework context keys the caller sent (alter.context.thread_id, run_id, tool, tool_call_id, tool_bundle, agent, framework, span.name, span.step, span.parent).
5. SIEM destination (OCSF)
Section titled “5. SIEM destination (OCSF)”Configure a SIEM destination under Settings → Audit & compliance → SIEM export in the developer portal. Alter then continuously pushes the organization’s audit events to the SIEM’s HTTPS collector as OCSF events. Authentication headers for the collector are stored encrypted.
Format. Choose how each batch is framed:
| Format | Wire shape | Use with |
|---|---|---|
| Raw NDJSON (one OCSF event per line) | One JSON event per line | Splunk HEC raw endpoint, Google SecOps webhooks, Elastic, any HTTPS collector that accepts newline-delimited JSON |
| Splunk HEC event envelope | {"time": <epoch seconds>, "sourcetype": "alter:vault:audit:ocsf", "event": {...}} per line | The Splunk HEC event endpoint |
Version. A destination created today receives OCSF 1.9.0 events (shape below). A destination that existed before the 1.9.0 release keeps the OCSF 1.5.0 shape until it is switched: the SIEM card shows the destination’s version, a Switch to OCSF 1.9.0 action that lists what changes, and the date of the automatic switch (90 days after the release reached the deployment). The switch is one-way; the legacy shape cannot be chosen for a new destination. Both shapes deliver every event family; the export position is unchanged by a switch, so events delivered after it arrive in the 1.9.0 shape and events already delivered are not re-sent (use a replay for that).
Delivery is at-least-once: a per-destination position advances only after the collector acknowledges a batch, so a mid-delivery failure re-sends the batch. A batch closes at the configured event count or at 1,000,000 bytes of payload, whichever comes first; a single event larger than that cannot be split, so it is sent alone in a batch of its own. A backlog drains continuously: delivery keeps sending batches while full ones remain, rather than one batch per delivery cycle. A re-sent event keeps its metadata.uid (the audit event id), so a SIEM configured to de-duplicate on it stores the event once; most SIEMs index a re-sent event again unless configured to (see Collector setup). An event recorded with a time the position has already passed (its record committed after a later one was delivered) is still delivered once, provided it is recorded within an hour of the time it carries. Repeated delivery failures dead-letter the destination. It is auto-disabled and surfaced in the portal, with the position preserved so re-enabling resumes without gaps.
Replay. Replay from a date on the SIEM card moves the export position back to a chosen time, so the events from that time on are delivered again. The dialog estimates how many events will be re-sent (the estimate reads “unavailable” when the count takes longer than a few seconds). A replay can only move the position back, so it is refused when the chosen time:
- is in the future;
- is earlier than the organization’s audit retention keeps events;
- is later than the current export position, or the destination has delivered nothing yet (its delivery already starts at the oldest retained event, so a replay could only skip events, never re-send them);
- carries no time zone.
If the organization’s audit retention cannot be read at that moment, the replay changes nothing and can be retried.
Every event at or after the chosen time is re-sent, in the destination’s current shape, so a replay after a version switch delivers history as OCSF 1.9.0. Nothing before the chosen time is re-sent; an event before it that was recorded late and never delivered is still delivered once. Replayed events duplicate events the SIEM already received; each keeps its metadata.uid, so a SIEM configured to de-duplicate on it stores each event once. A replay is recorded as an administrative audit event, with the position before and after; a refused replay is recorded too, with its reason.
What an OCSF 1.9.0 destination receives that other exports do not. The dashboard and the file exports leave out the client address and show grant ids masked. An OCSF 1.9.0 SIEM destination receives, on the events that recorded them, the client address (src_endpoint.ip) and the user agent (http_request.user_agent), plus the readable identity of end users and operators (Identity), because an investigation in the SIEM needs to join those to the organization’s own network and identity logs. A switch and a replay deliver history in the 1.9.0 shape, so they send these fields for events recorded before them.
Grant ids are not masked on the streaming exports. An OCSF 1.9.0 event carries grant ids unmasked: the event’s grant (resources[].uid, or entity.uid on a lifecycle event), the delegation (delegation.uid, delegation.parent_uid) and the grant ids in the delegation chain. Telemetry spans carry them unmasked too, wherever an event records a delegation or a delegation chain: alter.delegation_id and the grant ids in alter.delegation_chain. A grant id identifies a grant; it is not a credential and gives no access on its own.
The delivery-status panel shows the export position (the time of the last delivered event, or “From the beginning”), the version, and the automatic-switch date for a legacy destination.
CSV and the API
Section titled “CSV and the API”NDJSON exports carry each event exactly as the audit API returns it. CSV flattens the same event into one row per event with fixed columns: nested objects (app, provider, actor, api_key, grant_owner (the grantee), delegation, end_user, policy) become prefixed columns, the delegation chain becomes one readable step(id) -> step(id) cell, structured records (policy_context, policy_outputs, delegation records, and the full context) are JSON-encoded cells, the deprovisioning causation is flattened into causation_id, causation_trigger, causation_idp_event_id and causation_import_run_id, an approval decision’s approver is in decided_by_app_user_id, and the requester of a human decision is in delegation_requested_by as one JSON-encoded cell. The attribution contract’s columns follow every earlier column, in this order: actor_source (the channel), effective_agent_source, attribution_version, root_grantee_type, root_grantee_id, root_grantee_display_name, requested_by_api_key_id, requested_by_effective_agent_id, requested_by_agent_source, requested_by_actor_id. After those ten, the per-event CSV appends decided_by_email (the deciding person’s email on an approval decision) and actor_assurance (verified_by_alter or asserted_by_integration). The All Activity export already has an actor_source column among its earlier ones, so it appends the other nine, then effective_agent_name (the acting agent’s name), decided_by (an approval decision’s decider) and actor_assurance. The request’s client address (ip_address) is not included in either format. The one exception is the decision an IP allowlist made: an IP-allowlist denial records the source address the rule evaluated in policy.context.client_ip, because that address is the fact the denial rests on, the same way identity providers and cloud audit logs record the source address of a denied request. It appears wherever the policy context does (the audit API, JSON, NDJSON, and the CSV policy_context cell). Cell values that a spreadsheet would execute as a formula are prefixed with '. Columns added in later releases are appended after the existing ones, so an existing column never changes position.
OCSF 1.9.0 event shape (SIEM destination)
Section titled “OCSF 1.9.0 event shape (SIEM destination)”Each event delivered to a 1.9.0 destination is an OCSF 1.9.0 event of the class its family maps to. A 1.9.0 destination carries identifiers, outcomes, the attribution contract, and readable identity for the humans an event names: never tokens, secrets, or request bodies. (A 1.5.0 destination carries identifiers only.)
Class per event family
Section titled “Class per event family”| Events | Class | Activity |
|---|---|---|
Credential access (credential_access): retrievals, refreshes, their denials, and a refusal when an approved call executes (approval.execution_denied_*, delegation.execution_denied_*) | API Activity (class_uid 6003) | Read |
Provider calls (provider_calls) | API Activity (6003) | By HTTP method: GET, HEAD and OPTIONS Read, POST Create, PUT and PATCH Update, DELETE Delete, otherwise Other |
Approvals (approvals): requests, decisions, execution | API Activity (6003), on an Approval resource | approval.requested Create; approval.detail_viewed Read; every other approval event (decisions, execution, expiry, notifications) Update |
Grant and delegation lifecycle (grant_lifecycle), including cascades and their denials | Entity Management (class_uid 3004), with the grant as the entity | By the verb after grant. or delegation., see Lifecycle activities |
Portal actions (portal_actions), end-user configuration (end_user_config), identity-provider provisioning (idp_provisioning) | Entity Management (3004), with the managed resource as the entity | By the action’s verb, see Management activities |
Signing-key generation (identity, identity.signing_key_generated) | Entity Management (3004), with the signing key as the entity | Create |
Sign-ins (identity, identity.signin_terminal) | Authentication (class_uid 3002) | Logon |
Every other identity event (identity: identity.resolved, identity.resolve_failed, identity.denied, identity.asserted, identity.assert_failed, identity.assert_denied) | API Activity (6003) | Read |
type_uid is class_uid × 100 + activity_id; type_name and activity_name carry the OCSF captions. No event is exported with activity Unknown (0): an action outside these rules is Other (99).
Lifecycle activities
Section titled “Lifecycle activities”The activity of a grant or delegation lifecycle event comes from its verb, the part of the action after grant. or delegation., checked in this order:
| Verb | Activity |
|---|---|
| A cascade’s summary event under the current contract | Other (99), see Counting a cascade once |
cascade_revoked_* | Delete (4) |
created, restored (a delegation put back under the same grant), authorized, connect_confirmed, and any verb ending _created (such as session_created) | Create (1) |
activated | Activate (10) |
updated, renewed, reconnected, and any verb ending _updated (label_updated, policy_updated, scopes_updated) | Update (3) |
Any verb starting revoked or expired (such as revoked_via_group_deletion or expired_unconfirmed), and connect_unticked | Delete (4) |
| Anything else: denials, failures, sealed dispositions, aborted re-authorizations | Other (99) |
Management activities
Section titled “Management activities”For portal actions, end-user configuration and identity-provider provisioning, the verb is the last dotted segment of the action without a trailing _idp (user.deprovisioned_idp is a deprovisioning). A verb matches an activity when it is one of the activity’s words or ends with _ and one of them (ocsf_version_switched matches switched); the first activity that matches, in table order, applies.
| Activity | Words |
|---|---|
| Create (1) | created, create, provisioned, added, minted, registered, imported, uploaded, invited, generated, issued, granted, requested, reprovisioned, revived |
| Read (2) | viewed, read, listed, exported, downloaded, verified, checked, previewed, fetched, accessed, opened, probed |
| Update (3) | updated, update, changed, rotated, renamed, reordered, set, narrowed, widened, replaced, switched, replayed, modified, edited, upgraded, downgraded, configured, assigned, applied, confirmed, accepted, approved, reconciled, synced, completed, started, finished, succeeded, transferred, promoted, demoted, reset, extended |
| Delete (4) | deleted, delete, revoked, removed, deprovisioned, purged, expired, cleared, destroyed, cancelled, canceled, dismissed, tombstoned |
| Enable (8) | enabled, unlocked |
| Disable (9) | disabled, dead_lettered, locked |
| Activate (10) | activated |
| Deactivate (11) | deactivated |
| Suspend (12) | suspended, paused |
| Resume (13) | resumed, reactivated, unsuspended |
| Other (99) | Any other verb, including denials and failures |
Fields on every event
Section titled “Fields on every event”| OCSF field | Meaning |
|---|---|
metadata.version | 1.9.0 |
metadata.uid | The audit event id, unchanged when the event is re-sent: the key to de-duplicate on |
metadata.event_code | The Alter action, for example token.retrieved or delegation.created |
metadata.log_name | The event family: credential_access, provider_calls, grant_lifecycle, approvals, portal_actions, idp_provisioning, identity, or end_user_config |
metadata.profiles | datetime, plus ai_operation whenever the event carries ai_agent or delegation |
metadata.product | Alter Vault by Alter |
metadata.correlation_uid | On deprovisioning events: the id shared by the triggering provisioning event and every revocation it caused |
time / time_dt | Event time (epoch milliseconds, and ISO 8601) |
status_id / status | Outcome enum and caption (Success / Failure / Unknown) |
status_code / status_detail | The Alter reason code (for example grant_revoked) and its readable form. status_code is present only when the event’s reason is a platform reason code (lowercase letters, digits, _, ., : or -, at most 64 characters); otherwise status_detail is the status caption and the reason text is in unmapped.alter.reason_text |
severity_id / severity | 1 informational, 3 failure, 4 explicit denial |
actor.user | The human the event names (see Identity) |
actor.application | The Alter application (uid, name) |
actor.session.credential_uid | The API key that authenticated the call, or the personal access token on a CLI-driven event (also in actor.session.uid) |
ai_agent | The acting agent (uid, name), when one acted |
src_endpoint | ip, the client address the event recorded; svc_name: "alter" whenever the event recorded no client address, whether the platform acted or the address was not recorded |
http_request | http_method, url.path (never the query) and user_agent, when the event recorded them |
delegation | The delegation used, or the one the event created or changed: uid, parent_uid, issuer_uid: "alter", created_time / created_time_dt. parent_uid (the delegation this one descends from) and the creation time are read from the event’s delegation chain, so they are absent on a first hop and whenever the event recorded no chain: a revocation or cascade event (which names the revoked grant and its root grantee instead), a refusal that identified no grant, and an event written before the current contract. Credential access and provider calls through a delegation, refusals of a delegation that has since been revoked or has expired, approvals of a delegated call, and an onward delegation’s creation or update record the full chain |
unmapped | event_id, trace_id, otel_trace_id (the trace the same event is mirrored under), span_id, parent_span_id, policy_decision, policy_rule_id, the deprovisioning causation, and alter (below) |
API Activity (credential access, provider calls, approvals)
Section titled “API Activity (credential access, provider calls, approvals)”| OCSF field | Meaning |
|---|---|
api.operation | The provider call as METHOD /path, or the Alter action |
api.service.name | The provider the credential belongs to or the call went to |
api.response.code | The provider’s HTTP status on a provider call |
resources[] | The credential (type OAuth connection, Managed secret or Credential; uid the grant id; name the provider; data the grantee pairs and access path), the Approval (uid the request id, name the action) on an approval event, and a changed configuration resource |
Entity Management (grant lifecycle and administrative changes)
Section titled “Entity Management (grant lifecycle and administrative changes)”| OCSF field | Meaning |
|---|---|
entity | On a lifecycle event the grant: type Grant, uid the grant the event changed (the delegated child grant on a delegation event, including a delegation revocation recorded before the current contract; on a refused delegation whose grant no longer exists, the grant the delegation was requested from, as in the portal), name the provider, data the grantee pairs, the access path, the delegation edge (target_agent_id, parent_grant_id, child_grant_id) and, on a cascade summary, cascade_count and delegation_count. A Connect session event names the session (type Connect session). On an administrative event the managed resource (type the resource type, uid its id, name the action) |
updated_entity | On an update: the same entity with data.delegation_terms set to the resulting terms |
Authentication (sign-ins)
Section titled “Authentication (sign-ins)”| OCSF field | Meaning |
|---|---|
user | The end user who signed in: uid, uid_alt (the identity-provider subject), email_addr, full_name; a sign-in that resolved no user is name: "unknown" with uid_alt when the subject is known |
service.name | alter |
Identity
Section titled “Identity”actor.user is the human an event names, with readable identity:
- the approver on a decision (an approval decision, a Connect or Wallet delegation approval);
- the end user who took the step on an
end_userchannel event; - the operator on a
portalorpatchannel event; - the subject when an agent or the application acted on a user’s behalf.
End users carry uid (the Alter user id), uid_alt (the identity-provider subject), email_addr and full_name; operators carry uid, email_addr and full_name. Identity is resolved per batch within the organization; a user or operator who no longer exists degrades to uid alone. ai_agent is the acting agent, never a human. The application that made the call is actor.application.
The alter attribution block
Section titled “The alter attribution block”unmapped.alter carries the attribution contract, in the glossary’s words:
| Field | Meaning |
|---|---|
channel | sdk, end_user, portal, pat, or system |
result | success, failure, denied, or error |
actor_id | The id of the registered caller the request named (the application’s caller attribution); the caller’s label is not exported |
grantee_type / grantee_id | The grantee of the event’s grant: user, group, agent, or system (the application), and the id |
root_grantee_type / root_grantee_id | Who the access was originally granted to |
access_via | ownership (direct access) or the delegation kind the actor came through |
delegation_chain | The hops from the acting agent to the root grant: each step’s kind, grant id, grantee pair, delegating user, grant time, the agent’s name, and denied: true on the step a refused walk stopped at. Every intermediate agent’s delegation is a step of its own. Never an account identifier |
target_agent_id | On a delegation event, the agent the delegation is for |
requested_by | On a human decision, the requester: the key, agent (and whether it was asserted by the application key) and caller label that asked |
agent_source | asserted when the application key named the agent (absent when the agent used its own key) |
attribution_version | 2 on events written under the current contract; absent on older events |
attribution_derived | false on an older event whose agent field names a delegation’s recipient rather than the actor (below) |
cascade_summary | true on the one summary event of a cascade (below) |
approval_request_id | On an approval event, the request |
requested_principal_type | On a refused grant creation (grant.create_denied), the kind of grantee the request asked for (user, group, agent or system); the refusal resolved no grantee to name in the grantee pair |
unverified_bound_user_id | On a refusal of an unverified browser, the user the session was bound to (never shown as the subject) |
reason_text | The event’s reason when it is not a platform reason code, such as text the caller supplied, cut to 500 characters. It never appears in status_code or status_detail |
Finding the root grantee on older events
Section titled “Finding the root grantee on older events”Events written under the contract carry root_grantee_id directly. An older credential-access event (no attribution_version) whose access_via is ownership is direct access, where the grantee is the root grantee, so it exports its grantee as root_grantee_type / root_grantee_id: the SIEM event, the telemetry span, the portal’s Originally granted to and its filter all name the same root for it. Any other older event carries no root grantee.
An older delegated event does not record its root grantee, and nothing fills it in later. Its grantee_id is the delegate, never the root. The source_grant step of its delegation_chain, when the chain has one, carries only the root grant’s id (ref_id) and when that grant was made, so the root grantee is the grantee of that grant, which has to be looked up. A chain step names its grantee (grantee_type, grantee_id) only on attribution_version: 2 events. Do not fold grantee_id, or the chain’s final principal step, in as a fallback on a delegated event: both name the delegate, and would attribute the delegate’s activity to the delegate as if it were the root.
Counting a cascade once
Section titled “Counting a cascade once”When a root grant is revoked, every delegation that descended from it is revoked with it. A cascade written under the contract exports one Delete event per revoked delegation, each naming its child grant, plus one summary event for the whole cascade, which is Entity Management activity Other with unmapped.alter.cascade_summary: true and the counts in entity.data. A SIEM that counts Delete events therefore counts each child once; a dashboard that wants one line per cascade keys on the summary. A cascade written before the contract exports only its summary event (activity Delete), whose entity.data.cascade_count is the count.
Pre-release delegation events
Section titled “Pre-release delegation events”A delegation event written before the current contract named the recipient agent in its agent field, the delegation’s target rather than who asked for it. Those events export with attribution_version absent and unmapped.alter.attribution_derived: false; they carry no ai_agent, because no agent that acted can be named, and unmapped.alter.target_agent_id names the target. An older event that recorded who asked names that requester as ai_agent. An event with attribution_version: 2 carries the actor only: ai_agent is the agent that acted, and the target is in unmapped.alter.target_agent_id and entity.data.target_agent_id.
Mapping to SIEM schemas
Section titled “Mapping to SIEM schemas”The table maps each Alter fact to the field a vendor schema documents for it. documented means the vendor’s schema defines that field for that meaning; recommended means the schema has no field for the fact and this is the placement Alter suggests, in the schema’s extension area: alter.* custom fields in Elastic ECS, AdditionalFields in Microsoft Sentinel ASIM, additional.fields in Google SecOps UDM, and custom fields in Splunk CIM. Facts the schemas lack entirely (the subject, the delegation chain, the grantee pairs, the approver, the requester) always go to the extension area.
| Alter fact (OCSF 1.9.0) | Elastic ECS | Microsoft Sentinel ASIM | Google SecOps UDM | Splunk CIM |
|---|---|---|---|---|
Event time (time_dt) | @timestamp (documented) | EventStartTime, EventEndTime (documented) | metadata.event_timestamp (documented) | _time (documented; the HEC envelope’s time) |
Event id (metadata.uid) | event.id (documented) | EventOriginalUid (documented; EventUid is the id Sentinel itself assigns) | metadata.product_log_id (documented) | alter_event_id (recommended) |
Action (metadata.event_code) | event.action (documented) | EventOriginalType (documented) | metadata.product_event_type (documented) | signature (documented, Authentication) or action and change_type (documented, Change) |
| Class and activity | event.category (api, iam, authentication) and event.type (documented values; recommended mapping) | EventSchema (AuditEvent, WebSession, Authentication) and EventType (documented enumerations; recommended mapping) | metadata.event_type (USER_RESOURCE_ACCESS, RESOURCE_PERMISSIONS_CHANGE, USER_LOGIN; documented enumeration, recommended mapping) | The Authentication, Change, or Web data model (documented; recommended placement) |
Outcome (status, status_code, status_detail) | event.outcome (success / failure) and event.reason (documented) | EventResult and EventResultDetails (documented) | security_result.action (ALLOW / BLOCK) and security_result.description (documented) | action (success / failure) and status (documented) |
Human (actor.user) | user.id, user.email, user.full_name (documented); alter.user.subject for uid_alt (recommended) | ActorUserId with ActorUserIdType, ActorUsername with ActorUsernameType (documented); the full name and subject in AdditionalFields (recommended) | principal.user.userid, principal.user.email_addresses, principal.user.user_display_name (documented); principal.user.product_object_id for uid_alt (recommended) | user and user_id (documented, Authentication); src_user on a decision (recommended) |
Acting agent (ai_agent) | alter.agent.id, alter.agent.name (recommended) | ActingAppId, ActingAppName, ActingAppType (documented fields; recommended use) | principal.application (documented field; recommended use) | alter_agent_id, alter_agent_name (recommended) |
Application (actor.application) | alter.application.id, alter.application.name (recommended) | AdditionalFields (recommended) | additional.fields (recommended) | app (documented) |
Credential used to authenticate (actor.session.credential_uid) | alter.credential_id (recommended) | ActorSessionId (documented field; recommended use) | additional.fields (recommended) | alter_api_key_id (recommended) |
Client address (src_endpoint.ip) | source.ip (documented) | SrcIpAddr (documented) | principal.ip (documented) | src (documented) |
Provider call (http_request, api.service.name, api.response.code) | http.request.method, url.path, user_agent.original, service.target.name, http.response.status_code (documented) | HttpRequestMethod, Url, HttpUserAgent, TargetAppName, HttpStatusCode (documented, Web Session) | network.http.method, target.url, network.http.user_agent, target.application, network.http.response_code (documented) | http_method, uri_path, http_user_agent, dest, status (documented, Web) |
Grant or resource changed (entity) | alter.entity.type, alter.entity.id (recommended) | Object, ObjectId, ObjectType, Operation (documented, Audit Event) | target.resource.name, target.resource.product_object_id, target.resource.resource_subtype (documented) | object, object_id, object_category (documented, Change) |
Sign-in (user on Authentication) | user.id with event.category: authentication (documented) | TargetUserId, TargetUsername (documented, Authentication) | target.user.userid with extensions.auth.type (documented) | user, src, action (documented, Authentication) |
Delegation (delegation, unmapped.alter.delegation_chain, access_via) | alter.delegation.* (recommended) | AdditionalFields (recommended) | additional.fields (recommended) | alter_delegation_* (recommended) |
Grantee and root grantee (unmapped.alter.grantee_*, root_grantee_*) | alter.grantee.*, alter.root_grantee.* (recommended) | AdditionalFields (recommended) | additional.fields (recommended) | alter_grantee_*, alter_root_grantee_* (recommended) |
Subject, approver, requester (actor.user on a decision, unmapped.alter.requested_by) | alter.subject.*, alter.requested_by.* (recommended) | AdditionalFields (recommended) | additional.fields (recommended) | alter_subject_*, alter_requested_by_* (recommended) |
Channel (unmapped.alter.channel) | alter.channel (recommended) | AdditionalFields (recommended) | additional.fields (recommended) | alter_channel (recommended) |
Collector setup
Section titled “Collector setup”Splunk (HEC). Choose the Splunk HEC event envelope format and point the destination at the HEC event endpoint with an Authorization: Splunk <token> header; each event arrives with sourcetype alter:vault:audit:ocsf and its own time. The raw NDJSON format works with the HEC raw endpoint instead. The OCSF fields map to CIM through the table above. Splunk indexes a re-sent event again, so de-duplicate at search time on metadata.uid (for example | dedup metadata.uid).
Elastic. Use the raw NDJSON format against an ingest endpoint or a Logstash HTTP input. Set the document _id from metadata.uid (an ingest pipeline set processor, or a Logstash document_id), so at-least-once delivery and replays overwrite rather than duplicate.
Google SecOps. Use the raw NDJSON format against a webhook feed. SecOps ingests OCSF directly; the UDM column above gives the fields a custom parser should populate, with the attribution block in additional.fields.
Microsoft Sentinel. Sentinel’s Logs Ingestion API authenticates with Entra ID and does not accept a static header, so a Sentinel destination is a small customer-side relay: an Azure Function or Logic App that accepts the destination’s HTTPS POST (raw NDJSON, with a shared-secret header the function checks) and forwards each batch to the Logs Ingestion API through a data collection rule. A batch of more than one event never exceeds 1,000,000 bytes, within the API’s 1 MB per-request limit, so it can be forwarded as one request. A single event larger than that arrives alone and cannot fit one request: the relay must split or reject it, and should record the rejection so the event is not lost silently. Map the fields to ASIM in the data collection rule’s transformation, with the attribution block in AdditionalFields.
OCSF 1.5.0 (the legacy shape)
Section titled “OCSF 1.5.0 (the legacy shape)”A destination that existed before the 1.9.0 release keeps this shape until its automatic switch date, shown on the SIEM card, or until an organization admin switches it earlier. It is retired at that date and cannot be chosen for a new destination.
Each event is an OCSF 1.5.0 API Activity record (class_uid 6003, category_uid 6) and carries identifiers only: never tokens, and no end-user email address or display name. The identity mapping:
| OCSF field | Meaning |
|---|---|
metadata.version | 1.5.0 |
metadata.uid | Audit event id, unchanged when the event is re-sent: the key to de-duplicate on |
time | Event time (epoch milliseconds) |
activity_name | The action performed (for example token.retrieved) |
status_id / status | Outcome enum and caption (Success / Failure / Unknown) |
status_detail | Granular result (success / failure / denied / error) |
severity_id | 1 informational, 3 failure, 4 explicit denial |
actor.user | The acting identity: the approver who decided, on an approval decision (type "User", the end-user id); otherwise the AI agent (type "AI Agent") when one authenticated, the registered caller (type "Other"), the operator for portal and directory-import changes (type "Admin"), or the end user for Wallet policy changes (type "User"); absent when the event names none |
actor.app_name / actor.app_uid | The application that made the call |
actor.session.uid | The API key that established the session |
resources[] | The end user the event is about (type "app_user"), the end user a delegated call was made for (type "caller_app_user"), a changed configuration resource such as a policy rule (type "policy_rule"), and, on an approval decision, the agent whose request it was (type "agent") |
metadata.correlation_uid | On deprovisioning events: the id shared by the triggering provisioning event and every revocation it caused |
unmapped | Alter metadata with no first-class OCSF field: event_id, the source trace_id and the otel_trace_id the same event is mirrored under, span ids, policy_decision, the deciding policy_rule_id, actor_source, provider_id, caller_app_user_id, the registered caller actor_id when an agent is the acting identity, and the deprovisioning causation (id, kind, trigger, idp_event_id, import_run_id, idp_id) |
Display names (actor.app_name, actor.user.name) are the names configured in the portal and resolve only within the owning organization; a name that cannot be resolved degrades to the uid alone.
Retention
Section titled “Retention”Audit retention is an organization-wide, admin-only control under Settings → Audit & compliance → Audit retention. The plan defines a minimum and, when applicable, a maximum; the organization override can only extend the plan minimum. Clearing the override returns to the plan minimum. The default plan fallback is 365 days.
A compliance hold prevents matching records from being deleted regardless of the normal retention window. For a separate long-term archive, ingest CLI or bulk-export output into the organization’s storage system.