For the complete documentation index, see llms.txt. This page is also available as Markdown.

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

1

Bgin Setup

In the Scanner UI, go to the Collect tab.

  • From the Overview page click the '+' icon in the upper right corner

  • Select create new Collect Rule

  • Choose Slack.

  • Select the Log Type:

    • Slack: Audit Logs - captures security and compliance events from the Slack Audit Logs API

2

Configuration

  • Set a Display Name, such as my-org-slack-audit-logs-source.

3

Authenticate with Slack

  • If you've previously created a Slack connection for audit logs, select it from the list.

  • Otherwise, select New Slack Connection to authenticate with Slack, allowing the Scanner Slack app to access your Slack organization.

4

Logs Destination

  • Choose the S3 Bucket where the raw Slack audit logs should be stored.

  • (Optional) Enter a Bucket Prefix to organize the data path in your bucket.

5

Review and Create

Review all configuration settings. Any errors and/or missing fields must be resolved before completion.

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.

Create an Index Rule

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?