Slack Logs
Panther supports pulling logs directly from Slack
Overview
Panther can pull the following Slack logs:
Audit logs, by querying the Audit Logs API.
The Audit Logs API is available to Slack customers with an Enterprise plan only.
Access logs, by querying the team.accessLogs API.
This API is available in all Slack paid plans.
Note: Due to Slack's rate limits, Panther pulls only the events where the user or the access location or the access device is new.
Integration logs, by querying the team.integrationLogs API.
This API is available in all Slack paid plans.
Panther will query the API every 1 minute. In order for Panther to access the Slack API, you need to create a new Slack source on Panther, create a Slack App, and provide the app credentials to Panther.
Video Walkthrough
How to onboard Slack logs to Panther
Create a new Slack Source in Panther
In the left-hand navigation bar of your Panther Console, click Configure > Log Sources.
Click Create New.
Select Slack from the list of available log sources. Click Start Setup.
On the next screen, enter a descriptive name for the source e.g.,
My Slack logs.Enter a name for the source (e.g.
My Slack logs) and then select your Slack plan.The available log types depend on which plan you are subscribed to. To find your Slack plan, click the name of your Slack workspace at the top left of the Slack app.
Click Setup.
On the Set Credentials page, Copy the Redirect URL and save it somewhere secure. You will need it in the next steps.
Keep this browser window open while you work through the next steps.
Create a new Slack App
Create a Slack app with permissions to pull logs from Slack. For security and availability reasons, we recommend creating a new Slack App that will be used only with Panther.
You can create an app for:
How to create a Slack App to pull Audit Logs
Follow the instructions below to create a Slack app that pulls Audit Logs into your Panther account. The Audit Logs API is available to customers with a Slack Enterprise plan only.
If you want to pull in Access or Integration logs, please see the next section: How to create a Slack App to pull Access or Integration logs.
Sign in to the Slack workspace belonging to the Enterprise you want to monitor.
You must sign in as an owner of the organization.
On the screen displaying all the workspaces in your Enterprise, click Launch in Slack on the workspace you want to monitor.
Go to Slack apps and click Create New App, then click from scratch.

Enter an App Name e.g.
Panther monitoring.Select the workspace where you previously signed in.

Click Create App.
The App will be created in the selected workspace and later you will be able to monitor the entire Enterprise organization.
In the left sidebar menu, click OAuth & Permissions.
Scroll down to the Redirect URLs section.
Click Add and enter the Redirect URL that you copied from the Panther Console in the previous section of this documentation.

Click Save URLs.
Scroll down to the User Token Scopes section. Add the
auditlogs:readscope.
In the left sidebar, go to Settings > Manage Distribution.
Under the section titled "Share Your App with Other Workspaces," enable the following options:
Enable Features & Functionality
Add OAuth Redirect URLs
Remove Hard Coded Information
Use HTTPS For Your Features
Click Activate Public Distribution.
Note: This does not make your Slack App accessible to other organizations. Slack requires this setting to pull audit logs.

In the left sidebar, go to Settings > Basic Information.
In the App Credentials section, Copy the Client ID and Client Secret.
Follow the steps under Finalize Slack Onboarding in Panther to complete this process.

How to create a Slack App to pull Access or Integration Logs
The Access Logs and Integration Logs API is available in all Slack paid plans.
If you want to pull in Audit logs, please see the previous section: How to create a Slack App to pull Audit Logs.
Sign in to the Slack workspace you want to monitor.
You must sign in as an owner of the organization.
On the screen displaying your workspaces, click Launch in Slack on the workspace you want to monitor.
Go to Slack apps and click Create New App, then click from scratch.

Enter an App Name e.g.
Panther monitoring.Select the workspace where you previously signed in.

Click Create App.
The App will be created in the selected workspace.
In the left sidebar menu, click OAuth & Permissions.
Scroll down to the Redirect URLs section.
Click Add and enter the Redirect URL that you copied from the Panther Console in the previous section of this documentation.

Click Save URLs.
Scroll down to the section titled Scopes > User Token Scopes. Add the
adminscope.In the left sidebar, go to Settings > Basic Information.
In the App Credentials section, Copy the Client ID and Client Secret.

Follow the steps under Finalize Slack Onboarding in Panther to complete this process.
Finalize Slack onboarding in Panther
Navigate back to the Panther Console.
On the "Set Credentials" page, paste the Client ID from Slack into the Client ID field and the Client Secret from Slack into the Client Secret field.
Click Setup.
Click Save Source.
On the Verify Setup screen, click Grant Access.
You will be redirected to a Slack page to install your app.
For Audit Logs, make sure you install it to the Enterprise Organization and not to a specific workspace!
Click Allow.
In the Panther Console, click Setup. You will be directed to a success screen:

You can optionally enable one or more Detection Packs.
The Trigger an alert when no events are processed setting defaults to YES. We recommend leaving this enabled, as you will be alerted if data stops flowing from the log source after a certain period of time. The timeframe is configurable, with a default of 24 hours.

Note: The integration will incur limitations if:
the account of the user that installed the app to the organization is deactivated
the app was deleted, the access token was revoked, or the app credentials are rotated
Panther-built detections
See Panther's built in rules for Slack in panther-analysis in Github.
Supported log types
Slack.AccessLogs
Access logs for users on a Slack workspace. Note: Due to Slack's rate limits, Panther pulls only the events where the user or the access location or the access device is new. Panther will not update the date_last, count fields of an event.'
Reference: Slack Documentation on Access Logs.
Slack.AuditLogs
Slack audit logs provide a view of the actions users perform in an Enterprise organization.
Reference: Slack Documentation on Audit Logs.
Slack.IntegrationLogs
Integration activity logs for a team, including when integrations are added, modified, and removed.
Reference: Slack Documentation on Integration Logs.
Last updated
Was this helpful?

