Links

X-Pack Alerting (Elasticsearch Watcher) Integration

With the ilert X-Pack Alerting integration, you can create alerts in ilert based on Watcher alerts.
X-Pack alerting 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 X-Pack Alerting alert source

  1. 1.
    Go to the "Alert sources" tab and click Create new alert source
  2. 2.
    Enter a name and select your desired escalation policy. Select "X-Pack Alerting (Elasticsearch Watcher)" as the Integration Type and click on Save.
  1. 1.
    On the next page, a Webhook URL is generated. You will need this URL below when setting up the Watcher in X-Pack.

In X-Pack Alerting

X-Pack license required
To set up the integration, you must have X-Pack license with Watcher feature enabled.

Create a watcher

  1. 1.
    Go to Kibana and then to Management -> Watcher, then click on the Create button and on the Create advanced watch button**.**
  1. 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 X-PACK ALERTING 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}}"
}
}
}
}
Finished! Your X-Pack alerts will now create alerts in ilert.

FAQ

Will alerts in ilert be resolved automatically?
No, unfortunately Watcher's notification is not compatible with ilert's resolve event.
Can I connect X-Pack Alerting with multiple alert sources from ilert?
Yes, simply add more watchers in X-Pack Alerting.
(c) 2011 - 2022 iLert GmbH