Exotel

Escalate with a phone call or SMS through Exotel’s telephony APIs. Add exotel to alert: with your account SID, token, and destination numbers. Add exotel under alert: on your rule (you can combine destinations).

Options covers each YAML field—required first—with snippets under some keys. Full working example at the bottom is a complete rule for the Logit.io alert editor.

Options

Keys below match the ElastAlert 2 alerter. Shared rule fields such as alert_subject apply as described in Subject & body. Example fragments from the ElastAlert 2 reference appear indented under the option they illustrate (add your own name, type, index, and filter to make a full rule).

Required

  • exotel_account_sid — The SID of your Exotel account.

Example usage

 alert:
   - "exotel"
 exotel_account_sid: "Exotel Account SID"
 exotel_auth_token: "Exotel Auth token"
 exotel_to_number: "Exotel to number"
 exotel_from_number: "Exotel from number"
  • exotel_auth_token — The auth token associated with your Exotel account. Instructions for finding the SID and token are in Exotel’s developer documentation (opens in a new tab).

  • exotel_to_number — The phone number to which you would like to send the alert.

  • exotel_from_number — The ExoPhone number from which the alert will be sent.

Optional

  • exotel_message_body — The contents of the SMS. If you don't specify this argument, only the rule name is sent.

Full working example

name: Example alert for Exotel
type: any
index: "*-*"
filter:
  - query:
      query_string:
        query: "level:error OR log.level:error"
alert:
  - "exotel"
exotel_account_sid: "REPLACE"
exotel_auth_token: "REPLACE"
exotel_to_number: "+91xxxxxxxxxx"
exotel_from_number: "+91xxxxxxxxxx"