Slack

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:
Go to Slack Apps Directory.
Click
.Enter a name for the app and pick the workspace you want to message with your Action.
Click
.
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:
Under
go to .Activate incoming webhooks.
Click
.Choose your desired channel to message.
Save the webhook.
Note down 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:
Under
go to .Under Scopes add
chat:write.public
as a new OAuth scope to Bot Token Scopes.If this is the first permission you are adding to the app click
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
and pick .If you configured Slack with an Incoming Webhook choose
and complete the following steps:Choose a Name for your Action.
Enter the Webhook URL under Slack Webhook Url.
If needed, configure Fields to customize the message that is sent to Slack when triggered.
Save your Action.
If you configured Slack with an OAuth scope choose the
Action and complete the following steps:Choose a Name for your Action.
Enter the OAuth token Url under Slack OAuth Token.
Choose which channels to message. You can use either the channel ID or channel name (including the
#
). Separate each channel with a comma.If needed, configure Fields to customize the message that is sent to Slack when triggered.
Save your Action.