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.
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.
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.
Copy your unique Webhook URL from this screen. This URL will be needed in the next step.
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.
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.
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.
To call attention to alert notifications in Slack channels, enable this setting by clicking on the gear icon and checking the "Send a notification in Slack channel" property. After enabling this, Loggly sends alerts to Slack rooms and room members will be notified.
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.
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.
- Loggly Alerts – More about Alerts in Loggly
- Loggly Alert Endpoints – More about Loggly Alert Endpoints.
When the APM Integrated Experience is enabled, Loggly shares a common navigation and enhanced feature set with the other integrated experiences' products. How you navigate the product and access its features may vary from these instructions. For more information, go to the APM Integrated Experience documentation.