Skip to main content

In Flashduty


You can obtain an integration push URL through either of these two methods:

Using Private Integration

Choose this simpler option when you don’t need to route alert events to different channels.

Using Shared Integration

Choose this option when you need to route alerts to different channels based on the alert event’s payload information.

In Logease


Logease alerts can be delivered via email, syslog, alert forwarding, or custom alarm plugins. The JSON structure pushed by alert forwarding is a fixed Logease format that does not match the event format required by Flashduty. Therefore, use a custom alarm plugin (a Python script) to convert alerts into the standard format before pushing them to Flashduty.
Step 1: Write the alarm plugin scriptCreate a Python file (for example, FlashdutyWebhook.py) with the following content, and replace push_url at the top with your Flashduty integration push URL:
Step 2: Upload the pluginGo to the Logease Monitoring page and upload the script under Others → Alarm Plugins.Step 3: Reference the plugin in monitoring itemsEdit the monitoring items that need to be connected to Flashduty, select the uploaded plugin under Add Alarm Method, and save. Logease also supports Manager plugins (for the platform’s own monitoring) and Soar plugins (for playbooks); they are written in the same way as the example above and can be extended as needed.
The events pushed by the plugin must follow the Flashduty standard alert event format: event_status is required (one of Critical, Warning, Info, Ok), title_rule is the alert title, alert_key is used to update or automatically recover alerts, and labels carries alert labels. For the full field reference, see Standard Alert Event.

Severity Mapping


The mapping from Logease alert levels to Flashduty severities is defined by LEVEL_MAP in the plugin script. The example above uses the following mapping, which you can adjust as needed:

FAQ