Slack
This guide walks through how to set up Slack as a log source in Scanner Collect, using direct API integration with the Slack Audit Logs API. Scanner will authenticate using OAuth 2.0 to pull audit logs from Slack.
Slack audit logs capture security-relevant events across your Slack Enterprise organization, such as user logins, file downloads, channel creation, app installations, and changes to workspace settings. For a general overview of what audit logs are and how they can be used, see Audit logs in Slack.
We'll assume that you want Scanner to both store the logs in S3 and index them for search and detection.
Prerequisites
Before you begin, make sure you have:
A Slack Enterprise Grid organization. Audit logs are only available on the Enterprise Grid plan.
Organization Owner permissions in your Slack Enterprise Grid organization. Only organization owners can approve and install apps that access the Audit Logs API.
Permissions in Scanner to create the integration
Create a Collect Rule
Create an Index Rule
With the Collect Rule created, Scanner will poll the Slack Audit Logs API every 5 minutes, writing new events to your S3 bucket under the specified prefix.
Create an Index Rule to have Scanner index the logs for fast search and detections.
Slack Defaults
When you create the Index Rule from the Collect Rule, the following defaults are pre-populated:
Transformations: Add Metadata, Parse JSON Columns, ECS Normalization: Slack
Timestamp Field:
.date_create
Last updated
Was this helpful?