Introduce Rollbar and Slack for realtime exception alerts

Quickly responding to new, reactivated, and otherwise important exceptions is a critical part of adopting continuous delivery and other DevOps best practices.

Rollbar provides code version-specific dashboards and a live feed for proactively monitoring for exceptions during a deploy, but for those exceptions that happen when you aren’t actively watching Rollbar, our Slack integration is the most popular way to get real-time alerts.

Connect Rollbar with Github

Create a project

Create the project from a Github repo directly or specify the new project information to create.

Integrate a notifier

Wait the data

Integrate source control

Project integration

<!-- Rollbar -->

Logback configuration

<?xml version="1.0" encoding="UTF-8"?>
<configuration scan="true" scanPeriod="60 seconds" debug="false">

<appender name="ROLLBAR" class="com.rollbar.logback.RollbarAppender">
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">

<appender name="console" class="ch.qos.logback.core.ConsoleAppender">
<pattern>%date %level [%thread] %-5level %logger{36} [%file:%line] - %msg%n</pattern>

<appender name="file" class="ch.qos.logback.core.rolling.RollingFileAppender">
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<pattern>%date %level [%thread] %-5level %logger{36} [%file:%line] - %msg%n</pattern>

<root level="info">
<appender-ref ref="console" />
<appender-ref ref="file" />
<appender-ref ref="ROLLBAR" />

<shutdownHook class="ch.qos.logback.core.hook.DelayingShutdownHook"/>

The access token can be copied from the the settings of the Rollbar project.

Test integration with Rollbar

org.slf4j.Logger logger = LoggerFactory.getLogger(Test.class);
try {
throw new IllegalArgumentException("This is a test for Rollbar.");
} catch (IllegalArgumentException e) {
logger.error("error", e);

Check dashboard status

Integrate Rollbar notification with Slack

Add Rollbar app in Slack

Enable Slack integration

Slack channel selection

Configure Slack app rules

Test integration with Slack

Slack channel settings

Researcher | Architect | Full-Stack | @hustakin

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store