This tutorial assumes you have a Slack account. If not, you can go to slack.com to add one. It’s free (up to a point)!
Step 1
Go to https://slack.com/apps and search for “Incoming WebHook”:
Step 2
Select the account to which you want to send alerts:
Step 3
Click “Add Configuration”:
Step 4
Choose the Slack channel where you want to receive alerts, and click “Add Incoming WebHooks Integration”:
Step 5
Get your Webhook URL (which we will use in a second):
Step 6
Log into your Logz.io account (or create a new one there). Under the “Alerts” tab, select “Alert Endpoints” and then click on “Create Endpoint”:
Step 7
Configure your endpoint:
- Under “Type” select “Slack”
- Under “Name” give your endpoint a unique one
- Under “Description” tell yourself why and what is that endpoint
- Under “URL” past the “Webhook URL” from Step 5
The form looks like this:
Step 8
Save the endpoint and make sure it is working properly:
Step 9
Configure an alert, and select the desired endpoint(s) under “Notification Endpoints.” Alerts can now be sent to those Slack locations in addition to e-mail addresses or as standalone notifications:
Step 10
Wait for the alert to fire (as long as you have configured your log shipping to the Logz.io ELK properly, of course):
Step 11
Be proud! Now, you can see all of your Logz.io ELK Stack alerts directly in your Slack feed along with your team messages and any other third-party integrations that you have created.
Comments
0 comments
Please sign in to leave a comment.