Follow the steps below to configure a service so as to extract its related alert data from Elastic.
Squadcast will then process this information to create incidents for this service as per your preferences.
In this document, we'll go through how to get alerts from Elastic to Squadcast using ElastAlert. If you're looking for how to get alerts from Elastic using Watcher, refer Elastic Watcher Docs - Squadcast.
We'll be using ElastAlert for getting alerts from Elastic. To know more about ElastAlert, refer ElastAlert - Easy & Flexible Alerting With Elasticsearch.
On the Sidebar, click on Services.
You can either navigate to an existing service or make a new one by clicking on Add Service.
Check the service details like name, description, and the associated escalation policy for this service and make sure it is correctly entered.
From the integration types drop down, select the integration type as ElastAlert.
Enter the service name and description as required.
Copy the ElastAlert Webhook URL and click on Save button to create the service.
For details about how to configure ElastAlert to send alerts, refer Running ElastAlert for the First Time.
Configuration variables in rules YAML file
alertpost http_post_url<ElastAlert Webhook URL copied from Squadcast dashboard> http_post_static_payload Title<Incident Title> http_post_all_valuestrue
You can make sure that the 'Incident Title Name' and 'ElastAlert Rule Name' be the same in order to help identify the rule that caused the alert easily.
However, this is not mandatory.
For more details on post alert type, refer HTTP Post Alert Type - ElastAlert.
Now, whenever an alert is triggered by ElastAlert according to the rules defined, it'll automatically create an incident in Squadcast. But, the resolving of incident needs to be done manually by going to Squadcast dashboard.
Updated 13 days ago