Elastic Watcher Integration

With the ilert Elastic Watcher(formerly X-Pack Alerting) integration, you can create alerts in ilert based on Watcher alerts.

Elastic Watcher is a set of administrative features that enable you to watch for changes or anomalies in your data and perform the necessary actions in response.

In ilert: Create a Elastic Watcher alert source

  1. Go to Alert sources --> Alert sources and click on Create new alert source

  2. Search for Elastic Watcher in the search field, click on the Elastic Watcher tile and click on Next.

  3. Give your alert source a name, optionally assign teams and click Next.

  4. Select an escalation policy by creating a new one or assigning an existing one.

  5. Select you Alert grouping preference and click Continue setup. You may click Do not group alerts for now and change it later.

  6. The next page show additional settings such as customer alert templates or notification prioritiy. Click on Finish setup for now.

  7. On the final page, an API key and / or webhook URL will be generated that you will need later in this guide.

In Elastic Watcher

Create a watcher

  1. Go to Stack Management and then to Alerts and Insights -> Watcher, then click on the Create button and on the Create advanced watch button.

  1. On the next page, name the watcher e.g. ilert, define conditions and actions the Webhook URL that you generated in ilert as follows:

{
    ...
    [CONFIGURATIONS OF YOUR ELASTIC WATCHER ALERT]
    ...
    "actions" : {
        "ilert" : {
            "webhook" : {
                "scheme" : "https",
                "method" : "POST",
                "host" : "api.ilert.com",
                "port" : 443,
                "path" : "/api/v1/events/eswatcher/[YOUR API KEY]",
                "headers" : {
                    "Content-Type" : "application/json"
                },
                "params": {},
                "body" : "{{#toJson}}ctx{{/toJson}}"
            }
        }
    }
}
  1. Finished! Your Elastic Watcher will now create alerts in ilert.

FAQ

Will alerts in ilert be resolved automatically?

No, unfortunately Elastic Watcher's notification is not compatible with ilert's resolve event.

Can I connect Elastic Watcher with multiple alert sources from ilert?

Yes, simply add more watchers in Elastic Watcher.

Last updated