Skip to main content

UpGuard

The following tutorial demonstrates how to send your logs to Coralogix using UpGuard. Follow this five-step guide for each notification that you would like to send us.

UpGuard uses webhooks to send notifications when an event happens in your UpGuard account. This could be when an identity breach or data leak is detected, the score of a watched vendor drops below a certain threshold, or when a user requests access to your shared profile.

Create the UpGuard webhook

1.

Create Integration.

  • Sign in to your UpGuard account.
  • Select Settings in your left-hand sidebar.
  • Select the Integrations tab.

  • Select + New Integration.

  • Select Webhook.

2.

Select Triggers

  • Select from a wide-range of pre-defined triggers to use as part of this integration. Examples include:
    • 'When my company's score drops below 600'

    • 'When a domain or IP's score drops below 600'

    • 'When a new identity breach is detected'

    • 'When a new identity breach for a VIP email is detected'

  • Enable a trigger by selecting its pill, which slides to the right.

UpGuard trigger list with the available notification triggers and their enable toggles

  • Select Confirm and next.
3.

Name and Destination

  • Provide the webhook URL corresponding to the Coralogix cluster URL associated with the domain and region where your data is stored.
Schema
Endpoint Details
Webhook URLhttps://ingress.
Content-Typeapplication/json

For example, if your Coralogix data is hosted in India, your webhook URL should appear as https://ingress.ap1.coralogix.com.

  • Configure the HTTP Header values by inputting Content-Type: application/json. As webhook by default uses POST method to send requests, there is no need to define the method.

UpGuard webhook name and destination step with the URL field

Example:

Coralogix API key configuration used as the webhook authorization header

  • Select Confirm and next.
4.

Define Payload Structure

  • For each trigger, UpGuard provides a default payload template as in the example below.

UpGuard example payload data for the selected triggers

  • Modify the payload template to comply with the Coralogix structure.

POST Body

RequiredProperty NameProperty TypeNote
YesprivateKeyUUID
YesapplicationNamestringusually used to separate environments
YessubsystemNamestringusually used to separate components
computerNamestring
YeslogEntriesarray of logs

Log

RequiredProperty NameProperty TypeNotes
YestimestampnumberUTC milliseconds since 1970 (supports sub millisecond via a floating point)
Yesseveritynumber1 – Debug, 2 – Verbose, 3 – Info, 4 – Warn, 5 – Error, 6 – Critical
Yestextstring
{
"privateKey": "<Coralogix send your data api-key>",
"applicationName": "<application name>",
"subsystemName": "<subsytem name>",
"computerName": "<computer name>",
"logEntries": [
{
"severity": <default severity of event 1-6>,
"text": {
"notification": {
}
}
}
]
}
  • The following is an example of a Coralogix-compatible payload template.
{
"privateKey": "xxxxxxx-xxxxxx-xxxxxx-xxxxxxx",
"applicationName": "upguard",
"subsystemName": "upguard",
"computerName": "upguard01",
"logEntries": [
{
"severity": 4,
"text": {
"notification": {
"id": {{ notification.id }},
"type": "{{ notification.type }}",
"description": "{{ notification.description }}",
"occurredAt": "{{ notification.occurredAt }}",
"context": {
"PrevScore": {{ notification.context.PrevScore }},
"PrevScoreOn": "{{ notification.context.PrevScoreOn }}",
"Threshold": {{ notification.context.Threshold }},
"LatestScore": {{ notification.context.LatestScore }},
"LatestScoreOn": "{{ notification.context.LatestScoreOn }}"
}
}
}
}
]
}
  • Validate that your webhook is working properly by clicking Send test message. The value '200 OK' should appear as the Response.

UpGuard payload template editor with the response preview

Example:

UpGuard payload template mapped to the Coralogix log structure

  • Validate that Coralogix has received the test notification by searching the logs in your Coralogix dashboard.

  • Select Confirm and next.

Coralogix log view showing an UpGuard notification received through the webhook

5.

Enable the Integration

  • Select the toggle to enable the integration and click Finish.

UpGuard integration list with the new webhook integration toggled on

Last updated on
On this page
Was this page helpful?