Support Using Loggly Slack integration

Slack Integration

Loggly provides Slack integration for sending alerts to a Slack channel via WebHook. Incoming WebHooks are a simple way to post messages from external sources into Slack. They make use of normal HTTP requests with a JSON payload that includes the message text and some options.

 

1. Add an Incoming Webhook to a Slack Channel

To integrate Loggly with Slack, you first need to obtain a WebHook URL which allows Loggly to authenticate.

– To begin the setup, log in to your Slack account and then go to the Slack App Directory and search for Incoming WebHooks. Click on the Add Configuration button when you are ready.

Screen Shot 2016-10-28 at 12.12.14 PM

 

– Select a channel  or create a new channel where your incoming WebHook (Loggly Alerts) will post messages to.  Then, click on the Add Incoming WebHooks integration.

 

Screen Shot 2016-10-28 at 12.13.21 PM

 

– Copy your unique Webhook URL from this screen. This URL will be needed in the next step.

Screen Shot 2016-10-28 at 12.14.14 PM

 

 

2. Create a Slack Alert EndPoint

Now that you have a Webhook URL, log in to your Loggly account and open the Alerts tab. Click on the Alert Endpoints sub-tab, then click the Create Endpoint button.

create_endpoint

 

In the Endpoint drop-down box, select Slack Endpoint.

– Provide a Name and Description for the endpoint.

– Enter your Webhook URL copied from the step 1 above.

– In the Slack Channel Name box, enter the name of the channel that Loggly will send your alerts to.

– Choose the output format, then click Save.

You will now have this alert endpoint available as an option when you create Loggly Alerts.

Screen Shot 2017-02-16 at 3.59.41 PM

 

3. Create a Loggly Alert

To create a Loggly Alert, go to the Alert tab and click on Add New. Fill in the required information. In the Then section, select the Send to an Endpoint checkbox and select your Slack Incoming Webhook Endpoint from the drop-down list. Click Save to create the alert.

Screen Shot 2017-02-16 at 4.02.54 PM

 

4. Verify that Your Alerts are Reaching Loggly

To test your newly created alert, generate some logs that will trigger your alert. Wait a few minutes for the alert to run, then check your Slack channel for the messages. Here is an example showing what it will look like.

loggly-message

 

Troubleshooting

If your alerts aren’t showing up in your Slack channel, try performing the following actions:

  • Check the spark line graph on the Alerts page to verify that the alert was triggered.
  • Wait for at least the duration you set as how often the alert runs.
  • Search or post questions in the community forum.

Advanced Slack Alert Options

Thanks for the feedback! We'll use it to improve our support documentation.