Send Loggly Alerts to Slack

Loggly provides Slack integration for sending alerts to a Slack public channel. Currently, Loggly only supports sending static alert messages to Slack.

1. Generate Token

To integrate Loggly with Slack, you first need to obtain a token from Slack which allows Loggly to authenticate with Slack’s Web API. Open the Slack Web API page and scroll to the Authentication section. Generate a usable token by clicking Generate test tokens button.

Slack Web API

2. Create an Alert Endpoint

Now that you have a Slack token, log into your Loggly account and open the Alerts tab. Click on the Alert Endpoints sub tab, then 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 Slack test token in the Slack Auth Token box.
  • In the Slack Channel Name box, enter the name of the public channel that Loggly will send your alerts to.
  • Choose the output format, then click Save.

Screen Shot 2017-01-18 at 11.07.53 AM

 

3. Create a Loggly Alert

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

alert#1

 

4. Verify that Your Alerts are Reaching Loggly

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

Screen Shot 2017-01-18 at 11.19.07 AM

 

Troubleshooting

If your alerts aren’t showing up in your Slack chat, 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.


Top