Audit feed for your SIEM
Last updated 16 November 2026
The audit feed hands your organisation's audit log to Splunk, Microsoft Sentinel or any other system that polls an address: who did what and when, oldest first, each event exactly once. It is the same log the dashboard shows under Settings, Audit log, read with a key that can read nothing else. Webhook destinations can also receive the events as they settle, as a notification.
The audit feed is part of the Enterprise plan. Owners and managers create the key.
Plans: Enterprise
Create an audit feed key
Open Settings, API keys, choose Create key and the access Audit feed, which reads the audit log feed only. An organisation can hold 5 audit feed keys, one for each system that reads the feed and a spare to rotate; a sixth is refused with "This organisation has 5 audit feed keys. Revoke one first." Each key is revoked on its own, and its creation and revocation are in the audit log. The dialog that shows the key once also shows the feed's address and a first request.
- An audit feed key reads the feed and nothing else. Every other v1 route answers it with
permission_denied, and the MCP endpoint withaudit_credential_not_allowed("An audit feed key only reads the audit feed."). - No other credential reads the feed: a read, write, CI or workstation key and a connected app are answered
audit_key_required("Reading the audit feed needs an audit feed key. Create one under Settings, API keys."). An ingest key is refused on every v1 route, the feed included, withingest_credential_not_allowed. - On another plan the feed answers
plan_required("The audit feed is part of the Enterprise plan."), and only owners and managers of an Enterprise organisation can create the key.
The request and the answer
Send the key in the Authorization header as a bearer token, or in x-api-key as every v1 key:
curl -H "Authorization: Bearer $SPELLWARDEN_AUDIT_KEY" \
"https://dash.spellwarden.ai/api/v1/orgs/<your-organisation>/audit/feed?limit=1000"
curl -H "Authorization: Bearer $SPELLWARDEN_AUDIT_KEY" \
"https://dash.spellwarden.ai/api/v1/orgs/<your-organisation>/audit/feed?cursor=<the cursor of the last answer>"| Parameter | What it does |
|---|---|
cursor | The cursor of the previous answer. The feed returns the events after it. A value the feed did not issue is refused: "This cursor is not one the feed issued." |
since | Where a first request starts, a UTC time such as 2026-11-15T09:00:00Z; any other form is refused with "since: use a UTC time such as 2026-11-15T09:00:00Z." Without cursor and since, the feed starts 7 days back. There is no lower bound: a backfill may start earlier. since is ignored when cursor is given. |
limit | The most events of one answer, 1 to 1000, by default 200. Outside that it is refused: "limit: use a whole number from 1 to 1000." |
{
"events": [
{
"id": "0195f0c2a1b27c3d8e9f0a1b2c3d4e5f",
"at": "2026-11-16T09:12:04Z",
"actor": {
"kind": "user",
"id": "u-7f3a",
"name": "Anna Example",
"email": "<the member's email address>"
},
"action": "finding.accepted",
"target": "0195f0c2a1b27c3e",
"details": {
"rule_id": "SW-SKL-001",
"target_id": "0195f0c2a1b27c3e",
"target_type": "skill"
}
}
],
"cursor": "QVVESVQjMjAyNi0xMS0xNlQwOToxMjowNFojMDE5NWYwYzJhMWIyN2MzZDhlOWYwYTFiMmMzZDRlNWY",
"has_more": false,
"settled_until": "2026-11-16T09:20:00Z"
}| Field | What it holds |
|---|---|
events | The events after the cursor, oldest first. |
cursor | Where the next request starts: the last event returned, or the request's own cursor (or the since time) when no event came back. Store it and send it back. |
has_more | True when more settled events are waiting: ask again at once. |
settled_until | The settle horizon of this answer: events up to this time are in the feed. |
The cursor loop
cursor = stored cursor, or none for the first request
loop:
answer = GET /audit/feed?cursor=<cursor>&limit=1000 (no cursor on the first request)
hand answer.events to your system, in order
cursor = answer.cursor, stored only after the events are stored
if answer.has_more: ask again at once
else: wait a minute or more, then ask againStore the cursor only after your system has stored the events of the answer. If your poller stops between the two, it asks again with the old cursor and receives the same events, so it should drop events whose id it already holds; with the cursor stored after the events, nothing is lost.
Why events appear about six minutes late
The feed returns only events older than 6 minutes, the settle horizon that settled_until names. Every audit event is written within five minutes of its time, so once the horizon has passed an event's time, no event can still appear before it. An event therefore appears in the feed about 6 minutes after it happened, and a since in the last 6 minutes, or in the future, answers no events and its own time as the cursor, which returns the events once they settle.
Every event exactly once
Events are ordered by time and id, an answer returns the events after the cursor and before the horizon in that order, and the next cursor is the last event returned. So the pages of the feed hold every event exactly once, also while events are being written between your requests. The guarantee holds for events from this release on: one kind of row written before it, a quarantine of a skill, could be stamped with an earlier time than it was written.
What an event holds
| Field | What it holds |
|---|---|
id | The event's id, unique in the organisation and never rewritten. The dashboard's audit log answer carries the same id. |
at | The time, in UTC, to the second. |
actor.kind | user for a person, api_key, ci_token, platform_admin (Spellwarden support), creem (billing) or system (Spellwarden itself). |
actor.id | The person's user id, the first 12 characters of a key's or token's id, or the support caller; empty for creem and system. |
actor.name, actor.email | A person's current name and email address. |
action | The action, such as finding.accepted or apikey.created. |
target | The id of what the action changed. |
details | The action's own details. They never hold a secret. |
The feed names each member who acted by their current name and email address, as the dashboard does: a member who changed their name shows the new one on old events. Your organisation decides which system reads the feed, and the names and emails then live in that system too.
Rate, plan and read-only organisations
- One audit feed key may make 120 requests a minute, and every call also counts in the 300 a minute of each v1 key. Over it the feed answers 429 with Retry-After and "Too many audit feed requests with this key. Try again in a minute."
- While the organisation is read-only because billing stopped, every v1 call is refused, the feed included. The feed then pauses; when billing is back, poll with your stored cursor and it resumes where it stopped.
- Reading the feed writes no audit event, so polling never adds to what it reads.
The audit event on a webhook
A webhook destination on Settings, Alerts can list the event Audit events (webhooks only, Enterprise). From the moment it is added, each settled event goes into one signed alert of the format spellwarden.alert.v1 with the event audit: up to 10 events in feed order, without their details, and more true when more are waiting for the next minute. Events from before the event was added are not sent. The signature is checked as for every alert; see Verify the signature.
{
"events": [
{
"id": "0195f0c2a1b27c3d8e9f0a1b2c3d4e5f",
"at": "2026-11-16T09:12:04Z",
"actor": {
"kind": "user",
"id": "u-7f3a",
"name": "Anna Example",
"email": "<the member's email address>"
},
"action": "finding.accepted",
"target": "0195f0c2a1b27c3e"
}
],
"listed": 1,
"more": false,
"skipped": null
}The alert's headline names the count, such as 3 audit events in "Acme". A destination more than 24 hours behind, for example while it was paused, skips to the newest settled event and receives one alert that names the time span it skipped: "Audit events from <from> to <to> were not sent to this webhook. Read them in the audit feed."
What the webhook promises
Each settled event is put into exactly one alert, in feed order. An alert is tried up to 6 times; an alert that still fails, or a try over the 120 an hour that audit alerts may use on one destination, is not sent again, and 5 failed alerts in a row pause the destination as for every event. Its events stay in the feed. The webhook is a notification: a system that must hold every event reads the feed, which is the complete record.
Microsoft Sentinel
A codeless connector of the Codeless Connector Framework polls the feed with a RestApiPoller connection. The audit feed key goes in the Authorization header as a bearer token, and the cursor is a persistent token: the connector keeps the last cursor between polls and sends it back as the cursor parameter, while has_more tells it to fetch the next page. The connection, following Microsoft's RestApiPoller data connector reference (read on 16 November 2026):
{
"name": "SpellwardenAuditFeed",
"kind": "RestApiPoller",
"properties": {
"connectorDefinitionName": "SpellwardenAuditFeed",
"dataType": "SpellwardenAudit",
"dcrConfig": {
"streamName": "Custom-SpellwardenAudit",
"dataCollectionEndpoint": "<your data collection endpoint>",
"dataCollectionRuleImmutableId": "<your data collection rule's immutable id>"
},
"auth": {
"type": "APIKey",
"ApiKey": "[[parameters('apikey')]",
"ApiKeyName": "Authorization",
"ApiKeyIdentifier": "Bearer"
},
"request": {
"apiEndpoint": "https://dash.spellwarden.ai/api/v1/orgs/<your-organisation>/audit/feed",
"httpMethod": "GET",
"queryWindowInMin": 5,
"rateLimitQPS": 1,
"retryCount": 3,
"timeoutInSeconds": 60,
"headers": {
"Accept": "application/json"
}
},
"paging": {
"pagingType": "PersistentToken",
"nextPageParaName": "cursor",
"nextPageTokenJsonPath": "$.cursor",
"hasNextFlagJsonPath": "$.has_more",
"pageSize": 1000,
"pageSizeParameterName": "limit"
},
"response": {
"eventsJsonPaths": [
"$.events"
],
"format": "json"
}
}
}The data collection rule's stream declares the event's fields: id and action as strings, at as a time, actor and details as dynamic, and target as a string. Keep the key in a connector parameter rather than in the template. The first poll has no cursor, so it starts seven days back.
Splunk
A scripted input runs a small script on an interval. The script below reads the stored cursor, polls until has_more is false, prints each event as one JSON line, and saves the cursor after the events are printed, so the checkpoint never moves past an event Splunk has not received. It needs Python 3 and nothing else. Put it in your app's bin folder with two files beside it: spellwarden-audit-key, holding the key and readable only by Splunk's user, and spellwarden-audit-cursor, which the script writes. A failed request ends the script with the error on stderr, which Splunk logs, and the next run starts again from the stored cursor.
#!/usr/bin/env python3
"""Reads the Spellwarden audit feed and prints each event as one JSON line for a Splunk scripted input."""
import json
import os
import sys
import urllib.parse
import urllib.request
HERE = os.path.dirname(os.path.abspath(__file__))
FEED = "https://dash.spellwarden.ai/api/v1/orgs/<your-organisation>/audit/feed"
CURSOR_FILE = os.path.join(HERE, "spellwarden-audit-cursor")
KEY_FILE = os.path.join(HERE, "spellwarden-audit-key")
def read(path):
with open(path, encoding="utf-8") as file:
return file.read().strip()
def page(key, cursor):
query = {"limit": "1000", **({"cursor": cursor} if cursor else {})}
request = urllib.request.Request(f"{FEED}?{urllib.parse.urlencode(query)}", headers={"Authorization": f"Bearer {key}"})
with urllib.request.urlopen(request, timeout=30) as response:
return json.load(response)
key = read(KEY_FILE)
cursor = read(CURSOR_FILE) if os.path.exists(CURSOR_FILE) else ""
while True:
answer = page(key, cursor)
for event in answer["events"]:
print(json.dumps(event, sort_keys=True))
sys.stdout.flush()
cursor = answer["cursor"]
with open(CURSOR_FILE, "w", encoding="utf-8") as file:
file.write(cursor)
if not answer["has_more"]:
breakThen add the input to the app's inputs.conf, following Splunk's scripted inputs page (read on 16 November 2026); the interval is in seconds and counts from when the script ends. On Windows, the page runs a Python script through a .bat or .ps1 file.
[script://$SPLUNK_HOME/etc/apps/spellwarden_audit/bin/spellwarden_audit_feed.py]
interval = 300
index = main
sourcetype = spellwarden:audit
disabled = false