Skip to main content
Push ElastAlert2 alerts to Flashduty through webhook.

In Flashduty On-call

You can get the integration key in either of the following ways.

Use a dedicated integration

Choose this option if all alerts go to one channel. It’s the simpler setup.
  1. In the Flashduty console, select Channel and open a channel
  2. Select Configuration → Integrations → Private integration, then click Add integration
  3. Choose ElastAlert 2 integration and click Save to generate a card
  4. Open the generated integration card and copy the Push URL. The part after integration_key= is the integration key

Use a shared integration

Choose this option if you need to route alerts to different channels based on the alert payload.
  1. In the Flashduty console, go to Integration Center → Alert Events
  2. Select ElastAlert 2 integration:
    • Integration Name: Define a name for this integration
  3. Configure the default route and select a channel. You can add more rules under Routing after creation
  4. Click Save and copy the generated Push URL. The part after integration_key= is the integration key

In ElastAlert 2

1

Add the Flashduty alert type to an ElastAlert 2 rule file

Where: The ElastAlert 2 host › rule file (for example rules/elastalert2_alert.yaml) › alertFollow the ElastAlert Flashduty push configuration document. Create or edit the rule file, set alert to flashduty, and fill in these keys:The part after flashduty_ is the field name in this table:
2

Restart ElastAlert 2 and confirm

Where: A terminal on the ElastAlert 2 hostRestart ElastAlert 2 so the rule takes effect, then wait for the rule to match. ElastAlert 2 only sends an event when a rule matches; to recover an existing alert, send an event with flashduty_event_status: "Ok" and the same flashduty_alert_key as the trigger.Recovery rule example: a second rule matches the “recovered” log and sends an Ok event with the same flashduty_alert_key as the trigger rule:
After a few seconds, go back to Flashduty. If the integration shows a Latest event time, the setup works.