Slack
What is Slack?
Slack
is a cloud-based set of tools and services for team-communication.
Description
The Slack
channel will send all events to a Slack
channel API.
Syntax
[channel.<you_choose>]
type="slack"
Arguments in configuration file
There are 4
arguments in Slack
channel:
argument | default setting | explanation | required |
---|---|---|---|
webhook_url |
no | Set the webhook_url of your webhook. |
yes |
username |
no | Set your username . |
? |
icon_url |
no | Set the icon_url to use in place of the default icon. |
no |
icon_emoji |
no | Set the icon_emoji to use in place of the default icon. |
no |
Example
[channel.slack01]
type="slack"
webhook_url="https://hooks.slack.com/services/T4M......"
icon_emoji="👻"
Setup Slack
To setup Slack to use as channel you need to create a incoming webhook
.
To create a custom webhook in Slack go to Administration
->Manage Apps
.
From the Manage-menu select Custom Integrations
and click on Incoming Webhooks
.
There you can select Add Configuration
.
Select the channel where HoneyTrap
should post to and select Add Incoming WebHooks integration
.
Now you can copy the webhook and paste this in your toml
.
Be aware when on a free plan
Slack
limits the amount of customisations you are allowed to have.
The result should look something like this:
Availability
Linux | MacOS |
---|---|
yes |
yes |