Developers often find comfort in embracing open-source software for numerous reasons. One of the most important reasons is the freedom to use that software anywhere and how they wish. Amazon OpenSearch is an open-source search and analytics suite derived from Elasticsearch. It lets you perform interactive log analytics and real-time application monitoring with ease.
If you use Amazon OpenSearch for your monitoring and analytics needs, you can now integrate it with Squadcast to route detailed alerts from Amazon OpenSearch to the right users in Squadcast.
The below steps will help you set up Amazon OpenSearch and Squadcast integration.
Step1: First choose the applicable Team from the Team-picker drop down in the top left corner. Next, from the left menu go to the Services section and click on Add Services. Finally, click on Alert Sources for the applicable Service.
Step2: Search for Amazon OpenSearch from the Alert Source drop-down and copy the Webhook URL
Please Note
For an Alert Source to turn active (indicated by a green dot - Receiving alerts against the name of the Alert Source in the drop-down), you can either generate a test alert or wait for a real-time alert to be generated by the Alert Source.
An Alert Source is active if there is a recorded incident via that Alert Source for the Service in the last 30 days.
Step1: Login to your Amazon OpenSearch dashboard and select Alerting
Step2(a): Navigate to Destinations and click on Add destination.
Step2(b): Put in the Name, select Custom webhook as Type and under Settings, select Define endpoint by URL. Then paste the previously copied Squadcast Webhook URL in the placeholder for Webhook URL and click on Save.
Step3(a): Under Alerting, navigate to Monitors. Then either click on Create monitor or edit a pre-existing monitor. Click on Add another trigger.
Step3(b): Put in the Action name, select the previously created Destination. Paste the payload mentioned below under the Message box and save it
<p>CODE: https://gist.github.com/ShubhanjanMedhi-dev/f8af565b4837da3adfb5e5cda65805d7.js</p>
Please Note
Users can define custom variables under the Message box as shown below:
<p>CODE: https://gist.github.com/ShubhanjanMedhi-dev/37ef36409929ee7dae4f24b58858d89c.js</p>
Replace the [key] & [value] with proper values and add those at the end of the variables mentioned in Step 3 (b). This is how it might look.
Eg:
<p>CODE: https://gist.github.com/ShubhanjanMedhi-dev/c6e5f978d6f20863dc5cbf2e21f7a2d6.js</p>
That’s it, you are good to go! The Amazon OpenSearch integration is now complete. Whenever Amazon OpenSearch fires an alert, an incident will be created in Squadcast for it.
Amazon OpenSearch is a popular open-source, distributed search and analytics suite used by various organizations to solve their monitoring and analytics needs. Integrating Amazon OpenSearch with Squadcast can help your organization in routing detailed alerts and enhance your incident response management.