Slack Audit Logs API Fields: action, actor, entity, context
Published
One JSON event per audited action on an Enterprise organization, returned by the Audit Logs API: the action, the actor (a user), the entity it acted on (user, channel, file, app, workspace), and the context — the workspace or enterprise, IP address, user agent and session.
Official documentation: Slack: Audit Logs API (the audit event) · Slack: Audit Logs API methods and actions reference
Sample record
Numbered lines are the fields in the table.
From the LogTriage parser test corpus — synthetic data, no real hosts or users.
Field reference
| Field | Type | Meaning | Why it matters for security |
|---|---|---|---|
| 1ide.g. 0a1b2c3d-4e5f-4061-8293-a4b5c6d7e8f2 | string | The event's unique ID. | Deduplicate on it when polling overlapping time windows. |
| 2date_createe.g. 1705328262 | Unix time | When the action happened, in seconds since 1970 (UTC). | Convert before correlating; the API filters on the same value (oldest, latest). |
| 3actione.g. manual_export_started | string | Slack: "the thing the actor did", from Slack's list of actions — user_login, user_login_failed, user_deactivated, role_change_to_admin, manual_export_started, ekm_unenrolled, file_downloaded, public_channel_created and many more. | Keep a short list to alert on — exports, role changes, SSO and two-factor changes, EKM, anomaly, session resets. |
| 4actor. | string | The user who acted (with actor.user.id and actor.user.name). Slack uses USLACKSECURITY when its security team reset credentials, and USLACKUSER when an event has no actor. | The account to contain if the action was not theirs. |
| 5entity. | string | What the action was taken on: user, channel, file, app, workspace or enterprise, with the details in an object of that name. | A workspace entity on an export or EKM action means the whole workspace. |
| 6entity. | string | For user entities, the account acted upon — the user deactivated, promoted or logged in. | A deactivated owner or an unknown account made admin is takeover. |
| 7context. | IP address | The address the request came from. | New addresses on admin actions, especially hosting and anonymising networks, deserve a check. |
| 8context. | string | The user agent of the client that made the request. | Scripts on admin actions where admins use the web client suggest a stolen token. |
| 9context. | string | The session the action was made in; null for actions without a session, such as failed logins. | Ties a login to everything done in that session. |
| 10context. | string | Where the action took place: Slack says the context "will always be either a Workspace or an Enterprise, with the appropriate ID". | Enterprise-level actions affect every workspace in the organization. |
Have one of your own records? Paste it into the log line explainer and each field is explained from this table, with times, codes and addresses decoded — in your browser.
What it records
The Audit Logs API returns events for an Enterprise organization, each made of an actor, an action, an entity and a context — “the actor takes an action on an entity within a context”, in Slack’s audit event description. The actor is a user; the entity is a user, channel, file, app, workspace or enterprise; the context names the workspace or enterprise, with the IP address, user agent and session. Some events add details (the old and new value of a setting, for example), and events made through an app add an app object with its scopes.
Slack warns that its list of actions keeps growing and is incomplete, so alert on known actions and review unknown ones rather than rejecting them.
The malicious sample shows an admin account failing a login and then signing in from an outside address with a Python script, promoting an unfamiliar “IT Support” account to admin, deactivating a workspace owner and starting a manual export, and the new admin turning off Enterprise Key Management from a second address.
Where to get it
- API.
GET /audit/v1/logswith an organization-level token holdingauditlogs:read; results page throughcursor. - SIEM connectors. Most SIEMs poll this endpoint; check which fields they keep (session and app are often dropped).
- Admin pages. Workspace access logs show logins per user but not organization-level actions.
# Exports, role changes and key management actions in a saved response
jq -r '.entries[] | select(.action | test("export|role_change|ekm|sso|two_factor|anomaly")) | [(.date_create|todate), .action, .actor.user.email, .context.ip_address] | @tsv' slack_audit.json
Parsing pitfalls
- Entity object name varies. The details are under
entity.user,entity.channel,entity.fileand so on — readentity.typefirst. - Nulls.
session_idandappcan be null or absent. - Placeholder actors.
USLACKUSERandUSLACKSECURITYare not real users. - Unix seconds.
date_createis an integer, not a string date. - Growing action list. New actions appear without notice.
Detection ideas
- Data leaving:
manual_export_started,corporate_exports_enabled, unusualfile_downloadedvolume by one user. - Privilege changes:
role_change_to_admin/_owner, especially for new or service-like accounts. - Security settings: SSO, two-factor and EKM changes;
anomalyevents Slack raises itself. - Account takeover:
user_login_failedfollowed byuser_loginfrom a new address or a scripted user agent, then admin actions in the same session. - Locking out defenders:
user_deactivatedfor owners and admins.
The free browser analyzer reads Slack Audit Logs API responses and runs these checks locally.
Sending Slack Audit Log to an LLM
One megabyte of this format is about 475,377 tokens on current Claude models and 303,015 on GPT models, measured with the models' own tokenizers — so a gigabyte sent raw to Claude Sonnet 5.5 costs about $951 in input tokens alone (prices of 2026-10-24). Estimate your own volume →
Frequently Asked Questions
- Which Slack plan has the Audit Logs API?
- The Audit Logs API is for Enterprise organizations (Enterprise Grid). An app with the auditlogs:read user scope must be installed on the organization, not on a workspace inside it, by the organization's owner. Other plans can see access logs per workspace in the admin pages but have no audit log API.
- What Slack audit actions should I alert on?
- Start with manual_export_started and corporate_exports_enabled (data leaving), role_change_to_admin and role_change_to_owner, user_deactivated for admins, pref.sso_setting_changed and pref.two_factor_auth_changed, ekm_unenrolled, user_session_reset_by_admin and anomaly. Then add user_login_failed bursts and logins from new addresses for admin accounts.
- Why does a failed login have no session_id?
- No session exists when a login fails, so context.session_id is null. Successful logins and the actions that follow share one session_id, which lets you follow everything done after a suspicious login.
- How do I pull Slack audit logs?
- Call GET https://api.slack.com/audit/v1/logs with the organization token, filtering by oldest and latest (Unix seconds), action, actor or entity, and page through results with the cursor in response_metadata.next_cursor. The response is an entries array; the schemas and actions methods list the entity types and action names.
Analyze a Slack Audit Log file in your browser
The free analyzer detects this format, parses every field above and flags attack patterns — the file never leaves your machine. For threat-intel enrichment and an AI-written incident report, run it through LogTriage.
Investigating something right now? LogTriage checks every address in the file against threat intelligence and writes the incident report: 10 analyses a month free. The incident pack adds the in-depth AI analysis and files up to 100 MB: 25 analyses for $19, one payment, no subscription. Pricing
How this page was made. The official definitions, field names and examples on it are copied by script from the sources it links and re-checked against them on every build. The investigation advice was drafted with AI from those sources and passed a separate review before publishing. What is checked, and how · found a mistake? [email protected]