We're launching a new cybersecurity venture! Learn more about Snowbit >

Alert Webhook with VictorOps Alert Webhook with VictorOps

Last Updated: Mar. 30, 2022

Coralogix allows for the easy creation of webhooks integrations with other services like VictorOps.

Configuration in VictorOps

In order to integrate with VictorOps, the first step is to make sure you configured the endpoint URL. If you don’t have one yet, go to your VictorOps account and click on Settings->Routing keys to generate a routing key:

Copy the routing key and then go to Integration->’REST Generic’:

Finally, use the routing key to complete the URL:

Configuration in Coralogix

To define your webhook, go to Data Flow –> Webhooks and click the ‘+ Add New’ button on the right-hand side, choose WebHook from the dropdown list, and fill in your destination URL. Since the field message_type is mandatory, click “Edit body” to add it:

message_type optional VictorOps values are:

CRITICAL

WARNING

ACKNOWLEDGMENT

INFO

RECOVERY

This is the payload sent from a Coralogix custom webhook to VictorOps. You can edit the other payload fields:

{
  "message_type": "CRITICAL",
  "entity_id": "$ALERT_ID",
  "entity_display_name": "$ALERT_NAME",
  "alert_severity": "$EVENT_SEVERITY",
  "state_message": "$LOG_TEXT",
  "description": "$ALERT_DESCRIPTION",
  "alert_action": "$ALERT_ACTION",
  "alert_url": "$ALERT_URL",
  "log_url": "$LOG_URL",
  "monitoring_tool": "Coralogix",
  "team": "$TEAM_NAME",
  "application": "$APPLICATION_NAME",
  "subsystem": "$SUBSYSTEM_NAME",
  "ipAddress": "$IP_ADDRESS",
  "timestamp": "$EVENT_TIMESTAMP",
  "hitCount": "$HIT_COUNT"
}

Now you should be able to generate alert notifications into VictorOps.

On this page