Skip to main content

Creating alerting email templates

With Coralogix, you can create alerting email templates using our custom alert webhooks. These templates allow you to embed details from a log, metric, trace, or security event that triggered an event into your email subject or body, resulting in easier and more informative email notifications.

Overview​

This tutorial provides step-by-step instructions on how to set up an alerting email template with Coralogix, using Zapier as a use case. It walks you through the process of setting up a Zapier account, creating a Zap with a trigger and an action, and configuring the webhook as a trigger. It then demonstrates how to catch a webhook from Coralogix and send an email as a response.

Set up an alerting email template​

Create a Zap​

1.

Set up a Zapier Premium account.

2.

From your Zapier dashboard, select + Create a Zap in the upper right-hand corner.

Zapier dashboard with the Create a Zap button

Zapier prompts you to configure your Trigger and Action.

Zapier Zap editor prompting for a Trigger and an Action

Configure the trigger​

1.

Configure the Coralogix webhook as a Trigger.

  • Select Trigger.
  • Select Webhook in the bottom right-hand corner.
  • Select an event. Select Catch Hook from the drop-down menu.
  • Select Continue.
2.

Select Test to test the trigger.

3.

Zapier displays a custom webhook URL. Select Copy to copy it to your clipboard.

Configure the custom webhook​

1.

Access Integrations, then Integrations, then Outbound Webhooks, then Generic Webhook.

2.

In the upper right hand corner, select + ADD NEW. In the dropdown menu, select Webhook (generic).

3.

Define the webhook settings. Paste the webhook URL in the URL field.

Coralogix generic webhook settings with the Zapier webhook URL

4.

Select SAVE.

Configure the action​

1.

Return to your Zapier account to define the Action. The action in this case is sending an email.

  • Select Action.
  • Select the Action of choice. In this example, the user has chosen Gmail.
  • In the dropdown event menu, select Send an Email.
  • Select Continue.
2.

Validate that the selected email is correct. Select Continue.

3.

Define the Action settings.

  • In order for the Data fields to appear, revert back to your Coralogix webhook and select TEST CONFIG. Then, in your Zapier account, select TEST TRIGGER. Within seconds, you should receive confirmation of the webhook catch with all of the data from your customized alert.

Zapier test trigger showing the caught Coralogix webhook data

  • Select Send Email in Gmail. Fill in the fields.
    • To. Enter text or data. Use a parameter from the webhook or input a fixed addressee for the webhook.

    • From. Select the email that you are using in this configuration.

    • Subject (required). Input the parameters of your webhook. In the example below, service name has an alert with field keys, including team / application / subsystem / severity, etc. Note that you have the option of formatting the data.

    • Body type. Select plain.

    • Body (required). In the example below, error, trigger, alert URL, and service name are used. Text has been added as well.

    • Attachment. If relevant, attach a Runbook, for example.

Zapier Send Email in Gmail action fields filled with webhook parameters

Zapier email subject and body built from webhook fields

  • Select Continue.
4.

Select Test Step.

5.

Revert back to your saved Coralogix webhook. Select TEST CONFIG. Verify whether that webhook addressee has received an email.

Next steps​

Configure Google Chat alert notifications with Alert webhook with GCP Chat.

Last updated on