Action Type: Slack

Security Requirements and Controls

The Slack Action allows you to notify one or more channels in your Slack workspace upon notifier invocation. This page will explain how to set it up in your LogScale instance.

Creating a Slack App

Before you can create your Slack Action within LogScale, you must configure your Slack workspace with a new app.

To do this:

  1. Go to Slack Apps Directory.

  2. Click Create an App.

  3. Enter a name for the app and pick the workspace you want to message with your Action.

  4. Click Create App.

You now have a new app connected to your workspace. This needs to be configured in one of two ways, depending on how you want to send messages to Slack from LogScale. These are described in the following subsections.

Incoming Webhook

If you want your Action to send messages only to a single Slack channel upon invocation, you need to configure your app with an Incoming Webhook. To do this, start from the main screen of your new Slack app and follow these steps:

  1. Under Add features and functionality go to Incoming Webhooks.

  2. Activate incoming webhooks.

  3. Click Add New Webhook to Workspace.

  4. Choose your desired channel to message.

  5. Save the webhook.

Make a note of the newly generated URL listed under the Webhook URL section.

OAuth Scope

If you want your Action to send messages to multiple Slack channels on a single invocation, you need to configure your app with an OAuth Scope. To do this, start from the main screen of your new Slack app and follow these steps:

  1. Under Add features and functionality go to Permissions.

  2. Under Scopes add chat:write.public as a new OAuth scope to Bot Token Scopes.

  3. If this is the first permission you are adding to the app click Install App to Workspace at the top of the page.

Make a note of the OAuth token displayed under Tokens for Your Workspace.

Creating a Slack Action in LogScale

To create your Slack Action in LogScale go to Action creation and pick Slack.

If you configured Slack with an Incoming Webhook choose Single-Channel Slack Action and complete the following steps:

  1. Choose a Name for your Action.

  2. Enter the Webhook URL under Slack Webhook Url.

  3. If needed, configure Fields to customize the message that is sent to Slack when triggered.

  4. Save your Action.

If you configured Slack with an OAuth scope choose the Multi-Channel Slack Action and complete the following steps:

  1. Choose a Name for your Action.

  2. Enter the OAuth token Url under Slack OAuth Token.

  3. Choose which channels to message. You can use either the channel ID or channel name (including the #). Separate each channel with a comma.

  4. If needed, configure Fields to customize the message that is sent to Slack when triggered.

  5. Save your Action.