For general information about Rollbar's alerting features, check out the Notifications guide.

Setup

Configuration is per-project in Rollbar.

  1. In Rollbar, navigate to the project you want to integrate with Slack
  2. Click Settings → Notifications → Slack
  3. Click Connect with Slack
  4. Select the Slack team you want to integrate with, and authorize the permission request.
  5. Select the channel or group you wish to receive messages for
  6. Click Enable Slack Integration

Congrats! Slack is now integrated with Rollbar. Default rules will have been created for the various events that Rollbar notifies on. You can customize the rules by editing them, deleting them, or adding new ones.

Slack Actions

Triage items without leaving Slack by enabling Actions.

Triage items without leaving Slack by enabling Actions.

Slack notifications can include optional actions to allow you to

  • Assign to teammates
  • Resolve, mute, or reopen
  • Change level to critical,warning etc.

Actions can be enabled/disabled for all notifications within a project as well as individual notification rules.

Reauthorization required

If you connected Slack to your Rollbar account prior to March 2019, you will need to reauthorize Rollbar's access to your Slack account to allow for new access scopes.

Tips & Tricks

  • You can configure what channel you send the notifications to on each individual rule.
  • You can customize the content of Slack messages by using notification variables.
  • In addition to notification variables, any data value sent in the JSON payload of an item or occurrence may be used as a variable, including custom data. Examples of usage are {{body.request.url}} and {{body.server.host}}. If your JSON payload includes the custom values { handler: { key: process-job, id:100 }} then you can use the variables {{body.handler.key}} and {{body.handler.id}} in your notifications. To view the full set of available values, look at the "Params" values of an occurrence in your project. All params besides the ones listed in the above notification variables must be prefaced with "body" and will be truncated to 100 characters.
  • You can mention specific Slack users in notification messages using the syntax <@username>.
  • To mention @channel, @group, @here, or @everyone, use the syntax <!channel>, <!group>, <!here>, or <!everyone>.
  • To add a newline to the slack message, simply type it into the template, e.g.
[{{project_slug}}] - {{body.framework}} - {{level}} - {{trigger_description}}
{{title}}
{{link}}

Slack


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.