Graylog: Configuring Slack and Mattermost notifications

This documentation is part of the Alerting guide. You can view the complete guide here: How to send Graylog alerts by email, Slack, or Mattermost.

👋 Welcome to the Stackhero documentation!

Stackhero offers a ready-to-use Graylog cloud solution that provides a host of benefits, including:

  • Unlimited and dedicated SMTP email server included.
  • Effortless updates with just a click.
  • Customisable domain name secured with HTTPS (for example, https://logs.your-company.com).
  • Optimal performance and robust security powered by a private and dedicated VM.

Save time and simplify your life: it only takes 5 minutes to try Stackhero's Graylog cloud hosting solution!

To set up a Slack or Mattermost Cloud notification, you will first need to obtain an "incoming webhook" from Slack or Mattermost Cloud.

For Slack users, go to https://api.slack.com/apps and click Create New App. Complete the form, validate it, then select Incoming Webhooks and enable them. Click Add New Webhook to Workspace and copy the Webhook URL for use in the next steps.

If you prefer Mattermost Cloud, the open-source alternative to Slack, access your Mattermost interface. From the main menu, select Integrations, then Incoming Webhooks, click Add Incoming Webhook, and complete the form. You will be provided with a URL in the format https://<domain>/hooks/<token>, which you should copy for later use.

Before configuring Slack and Mattermost Cloud notifications, ensure that the Integrations plugin is enabled in the Stackhero dashboard. To do this, select your Graylog service, click Configure, activate the Integrations plugin, and confirm the configuration.

Once this is done, go to your Graylog instance under Alerts, Notifications, and click Get started! or Create notification.

Give your notification a title and select Slack Notification in Notification type. Paste the incoming webhook URL you obtained from Slack or Mattermost into the Webhook URL field.

Example of a Slack/Mattermost configurationExample of a Slack/Mattermost configuration

Click the Execute Test Notification button to ensure everything is working, then finalise by clicking Create.

Congratulations, your Slack/Mattermost notification is now set up and ready to use!