# Coralogix Alert Channel - Checkly Docs

> Learn how to configure Coralogix alert channels with the Checkly CLI.

Source: https://www.checklyhq.com/docs/constructs/coralogix-alert-channel/

---

Back to top
- Configuration Coralogix options
- General alert channel options

Alert Channels

# Coralogix Alert Channel

Learn how to configure Coralogix alert channels with the Checkly CLI.

For general information about alerting, see our docs on [the Coralogix integration](https://www.checklyhq.com/docs/integrations/observability/coralogix#alert-channel-to-coralogix-logs) and [alerting with Checkly](https://www.checklyhq.com/docs/communicate/alerts/overview/).

Sends alert notifications to Coralogix Logs. Coralogix has no construct of its own: use a [`WebhookAlertChannel`](https://www.checklyhq.com/docs/constructs/webhook-alert-channel) with `webhookType: 'WEBHOOK_CORALOGIX'`. This creates the same channel as the Coralogix form in the Checkly web app.

```
import { WebhookAlertChannel } from 'checkly/constructs'

const coralogixChannel = new WebhookAlertChannel('coralogix-channel-1', {
name: 'Coralogix',
webhookType: 'WEBHOOK_CORALOGIX',
method: 'POST',
url: 'https://ingress.eu2.coralogix.com/logs/v1/singles',
headers: [{ key: 'Authorization', value: 'Bearer ' }],
template: `{
"applicationName": "synthetics",
"subsystemName": "{{CHECK_NAME}}",
"computerName": "{{ CHECK_TYPE }}",
"severity": 3,
"text": {
"message": "{{ ALERT_TITLE }}",
"check_result_id": "{{CHECK_RESULT_ID}}",
"check_id": "{{CHECK_ID}}",
"check_name": "{{CHECK_NAME}}",
"check_type": "{{CHECK_TYPE}}",
"alert_type": "{{ALERT_TYPE}}",
{{#if AI_ANALYSIS_CLASSIFICATION}}
"ai_classification": "{{AI_ANALYSIS_CLASSIFICATION}}",
"ai_root_cause": "{{AI_ANALYSIS_ROOT_CAUSE}}",
"ai_link": "{{AI_ANALYSIS_LINK}}",
{{/if}}
"response_time": "{{RESPONSE_TIME}}",
"response_code": "{{API_CHECK_RESPONSE_STATUS_CODE}}",
"response_text": "{{API_CHECK_RESPONSE_STATUS_TEXT}}",
"run_location": "{{RUN_LOCATION}}",
"result_link": "{{RESULT_LINK}}",
"started_at": "{{STARTED_AT}}",
"group_name": "{{GROUP_NAME}}"
},
"category": "synthetic-test",
"className": "{{ CHECK_NAME }}"
}`,
sendRecovery: true,
sendFailure: true,
sendDegraded: false,
})
```

If you need to reference existing alert channels that were created outside of your CLI project, use [`fromId()`](https://www.checklyhq.com/docs/constructs/alert-channel#using-fromid-to-reference-an-existing-channel).

Since CLI v10.5.0, if your plan doesn’t include Coralogix, `checkly validate`, `checkly test` and `checkly deploy` refuse this channel. See [Integrations not included in your plan](https://www.checklyhq.com/docs/constructs/alert-channel#integrations-not-included-in-your-plan).

## Configuration

### Coralogix options

string

required

Friendly name for the alert channel.

string

required

Set it to `WEBHOOK_CORALOGIX`. Checkly then shows and handles the channel as a Coralogix channel.

string

required

Set it to `POST`.

URL | string

required

The Coralogix Logs API endpoint for the region of your Coralogix tenant, for example `https://ingress.eu2.coralogix.com/logs/v1/singles`.

array

required

`[{ key: 'Authorization', value: 'Bearer ' }]`, with a Coralogix Send-Your-Data API key. You create the key under **Settings > Users and Teams > API Keys** in Coralogix.

string

required

The request body. Without a template, Checkly sends its generic webhook body, which does not have the `applicationName`, `subsystemName` and `text` fields of a Coralogix log entry. The example above uses the default Coralogix payload of the Checkly web app. You can use [Handlebars-style template variables](https://www.checklyhq.com/docs/integrations/alerts/webhooks#using-variables) to change it.

### General alert channel options

These options are valid for all alert channels types.
boolean

Whether to send notifications when checks [recover](https://www.checklyhq.com/docs/communicate/alerts/overview#when-are-recovery-alerts-sent) from a failed or degraded state. Degraded recoveries (`ALERT_DEGRADED_RECOVERY`) also need `sendDegraded`. Default value is `true`.

boolean

Whether to send notifications when checks [fail](https://www.checklyhq.com/docs/communicate/alerts/overview/#alert-channels). Default value is `true`.

boolean

Whether to send notifications when checks [become degraded](https://www.checklyhq.com/docs/communicate/alerts/overview/#alert-channels). Default value is `false`.

boolean

Whether to send notifications when a SSL/TLS certificate is about to expire. Default value is `false`.

```
new EmailAlertChannel("email-channel-1", {
address: "alerts@acme.com",
sslExpiry: true,
sslExpiryThreshold: 30, // Alert 30 days before expiry
})
```

[Learn more about SSL alerts.](https://www.checklyhq.com/docs/communicate/alerts/ssl-expiration/)

number

Number of days before the SSL/TLS certificate expiry date to send notifications. Only relevant when `sslExpiry` is enabled. Default value is `30`.

```
new EmailAlertChannel("email-channel-1", {
address: "alerts@acme.com",
sslExpiry: true,
sslExpiryThreshold: 30, // Alert 30 days before expiry
})
```

[Learn more about SSL alerts.](https://www.checklyhq.com/docs/communicate/alerts/ssl-expiration/)

Was this page helpful?

[Suggest edits](https://github.com/checkly/docs/edit/main/constructs/coralogix-alert-channel.mdx)[Raise issue](https://github.com/checkly/docs/issues/new?title=Issue%20on%20docs&body=Path:%20/constructs/coralogix-alert-channel)

[RootlyAlertChannel Construct Previous](https://www.checklyhq.com/docs/constructs/rootly-alert-channel)[RetryStrategyBuilder Construct Next](https://www.checklyhq.com/docs/constructs/retry-strategy)

[x](https://x.com/checklyhq)[github](https://github.com/checkly)[linkedin](https://linkedin.com/company/checkly)

[Powered by This documentation is built and hosted on Mintlify, a developer documentation platform](https://www.mintlify.com/?utm_campaign=poweredBy&utm_medium=referral&utm_source=checkly-422f444a)
