Alert webhooks

Coralogix allows you to integrate with any operation and alert management platform in order to get alerted in real time and manage your Coralogix insights. 

There are predefined and custom integrations that can easily be configured. This tutorial will walk you through them, and show you how you can adjust our webhooks to be sent anywhere, anyway.

Slack


1) Go to settings –> Integrations and click the ‘+’ sign on the righthand side:

coralogix slack integration

2) Select ‘Slack’, add the desired alias (the desired name of your integration), add the room webhook (URL), and click save.

** To find your webhook, click here: https://my.slack.com/services/new/incoming-webhook/ (while logged into Slack), choose the room name, click ‘Add incoming webhook integration’ and copy the webhook you got into Coralogix.

3) If you don’t see your new integration under your alert definition, try to refresh your browser

add slack to coralogix alerts

PagerDuty


1) Go to settings –> Integrations and click the ‘+’ sign on the righthand side and choose PagerDuty:

coralogix pagerduty integration

2) Add the desired alias (the desired name of your integration), add the integration key, and click save:

coralogix pagerduty integration key

** Note that in the integration settings you should choose ‘use our API directly’ option:

coralogix pagerduty integration settings

Opsgenie


1) Go to settings –> Integrations and click the ‘+’ sign on the righthand side and choose WebHook:

coralogix opsgenie integration

2) Add the desired alias (the desired name of your integration), add the method URL, edit headers and body and click save. For example, ‘Post’ request:

opsgenie post request config

Parameters:

  • URL
    https://api.opsgenie.com/v2/alerts
  • Headers
    {
    “Content-Type”: “application/json”,
    “Authorization”: “GenieKey your-API-Key
    }
  • Body (for example)
    {
    “uuid”: “webhook auto generated uuid”,
    “message”: “An alert from Coralogix”,
    “alias”: “It is hard to fail, but it is worse never to have tried to succeed”,
    “priority”: “P1”
    }

** To find your API key create integration and go to its setting page:

opsgenie integration API key

** For more optional ‘JSON Body Fields’ and limitations click here.

Custom Alert WebHooks


Coralogix allows you to define the payload that you wish to send when an alert is triggered, once a general webhook is defined in your settings, it can be added to any new alert you create. You can create multiple webhooks, and assign one or more to your alerts. 

To define your webhook, Go to settings –> Integrations and click the ‘+’ sign on the right-hand side, choose WebHook and fill your destination URL. This will send alerts to your destination:

create alert custom webhook coralogix

To create a custom alert payload, click “Edit Payload”:

coralogix edit webhook

You can add/remove fields as long as you keep a valid JSON format. Make sure that the payload structure complies with the requirements of your operation and alert management platform.

You can also tag any JSON field in the alert webhook’s payload in order to customize alert outputs with your own log content, just add your field name with ‘$’ sign as it’s prefix (e.g. “$my_JSON_field”):

coralogix webhook payload with custom key

click save:

coralogix save alert webhook

In your alert, go to the ‘Notification settings” section and choose your newly defined webhook. 

** If you don’t see your new integration under your alert definition, try to refresh your browser

Signup to Coralogix

WordPress Lightbox