Slack notifications
Connect the Kosken app to a Slack workspace, choose the Slack channel, send events to it, and read what the messages contain.
On this page
After you read this guide, you can send Kosken events to a Slack channel.
Connect Slack
Only an owner of the Kosken workspace can connect Slack. You also need the right to install apps in your Slack workspace.
- In the sidebar, select Channels.
- Under Add a channel, on Slack, select Connect.
- Select Add Slack. Slack opens.
- In Slack, choose your Slack workspace and allow the Kosken app.
- Slack sends you back to the Channels page. Connected channels now shows a channel with the name Slack and the name of your Slack workspace.
Kosken asks Slack only for the right to post messages. It stores the token of the app sealed.
Choose the Slack channel
The new channel does not know where to post yet. Give it the ID of a Slack channel before you send a test.
- In Slack, open the details of the channel and copy its channel ID, for example
C0123456. - In Slack, invite the Kosken app to the channel.
- In Kosken, on the Slack row of Connected channels, select Slack channel ID.
- Paste the ID and select Save.
- Select Send test. The message Test message from Kosken shows in the Slack channel.
One Slack row posts to one Slack channel. To post to another channel, change the ID with Slack channel ID.
Send events to Slack
A channel gets nothing until a rule sends events to it.
- On the Channels page, go to Rules.
- Choose the Event and the lowest Severity.
- In Channel, choose the Slack channel.
- Select Add rule.
Add one rule for each event that the channel must get. See Send an event to a channel or to members.
What a message contains
- A title, for example INC-12 opened on web-01.
- The text of the event.
- Quoted data, such as the title of the incident or the cause, in a code block. This text comes from your machines and tools.
- A button that opens the page in Kosken, for example Open in Kosken.
The messages of one incident go into one thread of the Slack channel. The messages are in English. Kosken posts at most one message per second to one Slack channel.
Buttons on an approval
A message for an approval also has the buttons Approve live, Approve preview when the recipe has a dry run, and Reject. A message for a change at or above the risk that needs a confirmation has no such buttons, because that decision needs the browser.
Kosken accepts a click only from a Slack account that is linked to a Kosken user with write access. The Channels page has no control to link a Slack account, so a click answers that the account is not linked. Use Open in Kosken and decide on the approval page. See Approvals.
Fix a broken channel
When Slack refuses a message because the app lost access, the channel shows Broken and Kosken stops sending to it. Common causes: the app is not in the Slack channel, the channel ID is wrong, the channel is archived, or someone removed the app from Slack.
- Correct the cause in Slack. For example, invite the Kosken app to the channel.
- In Kosken, select Slack channel ID on the row, check the ID, and select Save. The state goes back to Working.
- Select Send test.
When someone removed the app from Slack, select Delete on the row and connect Slack again.
Something here does not match the app? Tell us