Skip to main content

Audit log streaming

Organization admins can get every Arca audit event into their security tools in two ways:

  • Push. Arca sends new events to Splunk, Datadog, Microsoft Sentinel or an HTTPS webhook about once a minute. Set it up in Settings → Audit log → Stream to SIEM.
  • Poll. Your tooling reads GET /api/v1/audit-events with an admin's access token and keeps a cursor.

Both carry the same events with the same fields. Delivery is at least once: after a failure or restart, a batch can arrive twice, so deduplicate on id. Events are held back for 60 seconds after they are recorded so that none is skipped while it is still being written.

Event fields​

FieldTypeMeaning
idstring (uuid)Unique per event. Deduplicate on this.
organizationIdstring (uuid)Your organization.
occurredAtISO 8601When the event was recorded.
eventTypestringFor example RESOURCE_CREATED, ORGANIZATION_MEMBER_ACCESS_UPDATED.
actionSourcestring / nullmanual, agent, integration or system.
actorUserId, actorEmailstring / nullWho did it. Null for system events.
resourceKind, resourceIdstring / nullWhat it was done to, such as chat and the chat's ID.
parentResourceKind, parentResourceIdstring / nullThe resource's container, when there is one.
originChatId, originToolNamestring / nullThe chat and tool that made the change, when an agent did it.
payloadobject / nullEvent-specific details.

Resource names are not included: they depend on who is looking. Use the IDs, or open the audit log in Arca.

When you save a destination, Arca sends one AUDIT_LOG_STREAM_TEST event to check the settings. A destination starts with events recorded after it was saved; download the CSV from the audit log page for earlier history.

Splunk​

  1. In Splunk, create an HTTP Event Collector token (Settings → Data inputs → HTTP Event Collector). Splunk Cloud's HEC URL looks like https://http-inputs-<stack>.splunkcloud.com.
  2. In Arca, choose Splunk, enter the HEC URL and token, and optionally an index.

Events arrive with sourcetype=arca:audit and source=arca; the event fields are under event.

Datadog​

  1. Create an API key under Organization Settings → API Keys.
  2. In Arca, choose Datadog, pick your site (the domain in your Datadog URL) and enter the key.

Logs arrive with source:arca and service:arca. The event fields are log attributes, and the message is the event type.

Microsoft Sentinel​

Arca writes to a custom table in your Log Analytics workspace through the Azure Monitor Logs Ingestion API.

  1. Create the table. In the workspace, add a custom log table ArcaAudit_CL (DCR-based) with these columns:

    ColumnType
    TimeGenerateddatetime
    id, organizationId, eventTypestring
    occurredAtdatetime
    actionSource, actorUserId, actorEmailstring
    resourceKind, resourceIdstring
    parentResourceKind, parentResourceIdstring
    originChatId, originToolNamestring
    payloaddynamic
  2. Create the data collection rule. Creating the table in the portal creates one. Its input stream is Custom-ArcaAudit_CL and its transformation can stay source. Note its immutable ID (dcr-…, on the JSON view) and its logs ingestion URL (on the rule's overview, or on its data collection endpoint).

  3. Create an app registration in Microsoft Entra ID with a client secret. On the data collection rule, give the app the Monitoring Metrics Publisher role.

  4. In Arca, choose Microsoft Sentinel and enter the tenant ID, client ID, client secret, logs ingestion URL, rule immutable ID and stream name.

Query the events with ArcaAudit_CL | sort by TimeGenerated desc.

Webhook​

For anything else that accepts HTTPS (Sumo Logic, Cribl, Vector, Elastic via an HTTP input, an internal collector), choose Webhook. Arca sends a POST with Content-Type: application/x-ndjson: one JSON event per line, up to 900 KB per request. If you enter an Authorization header value, such as Bearer <token> or ApiKey <key>, it is sent unchanged.

Answer 2xx to accept the batch. Any other answer, or no answer within 30 seconds, is a failure: Arca shows the error on the settings page and retries the same events every minute until they are accepted. The URL must resolve to a public address.

Poll the feed​

GET /api/v1/audit-events?limit=500&cursor=<nextCursor>
Authorization: Bearer <admin token>
X-Organization-Id: <organization id>
Query paramMeaning
cursorThe nextCursor from your last response. Omit it to start from the oldest event.
sinceOptional ISO 8601 lower bound (inclusive), for pollers that query fixed time windows.
untilOptional ISO 8601 upper bound (exclusive).
limit1–500, default 200.
{
"events": [
{
"id": "…",
"occurredAt": "2026-11-04T17:03:22.123Z",
"eventType": "RESOURCE_CREATED",
"…": "…"
}
],
"nextCursor": "MjAyNi0xMS0wNCAxNzowMzoyMi4xMjM0NTZ8…",
"hasMore": false
}

Events come oldest first. Store nextCursor after you have saved the events, and pass it on the next call. It stays valid when a page is empty. When hasMore is true, call again right away; otherwise wait a minute.

The token must belong to an organization owner or admin; other tokens get 403. Because a token belongs to a person, the feed stops if that person leaves the organization or loses the admin role. A push destination does not depend on any one person's token.