1. Home
  2. Docs
  3. Integrations
  4. OnPage Integrations
  5. LogDNA

LogDNA

This integration uses OnPage’s Incoming Webhooks. This is a common integration path with OnPage and many other services will support this method as well. To get started, you have to access OnPage’s Webhook Console and register a Client ID and Secret Key. These are then used to authenticate the requests being sent to OnPage. Please keep these values secure as if they were a password. Although they do not allow Read access to OnPage, anyone with these keys can create Pages within your environment.

Navigate to https://integrations.onpage.com/#/integration/web-hook and login with your nps.onpage.com credentials.

Here you will see all of your currently configured Webhooks and the ability to suspend or remove them.

Click on the Create Button

Image

Give a Webhook name (i.e., New Relic ONE integration)

Copy the Secret Key and Client ID and store it in a secure place. The Secret Key is only shown once.

Image

In LogDNA

Click on Alerts.

Click on Add Preset.OnPage LogDNA Integration

Name the Preset.

Select Webhook.OnPage LogDNA Integration

Select the type, either Presence or Absence
Select when log lines match for the view per alert interval
Select when to send the alert
You may choose to add a custom schedule to when the alerts are active
Method and URL should be POST and enter the OnPage Webhook URL: https://webhook.onpage.com/gw/v1/page
Add the headersOnPage LogDNA Integration

Under Body, copy and paste the payload script from the integration page

{
    "clientId": "-YOUR-CLIENT-ID-",
    "secretKey": "-YOUR-SECRET-KEY-",
    "message": {
        "subject": "-YOUR-ALERT-SUBJECT-",
        "body": "*-YOUR-ALERT-MESSAGE-",
        "recipients": ["OPID1", "OPID2", ...],
        "priority": "HIGH|LOW"
    }
}
  • Edit the script by inserting the Client IDSecret Key
  • Use Available parameters to set what you would like to see as the subject and body of the message in the OnPage app.
  • Add subject and body and or insert variables of what you would like to see as the subject and body of the message in the OnPage app.
  • Enter OnPage recipients OPIDs or Group IDs
  • Enter Priority of message. Either HIGH or LOW

OnPage LogDNA Integration

Click Test at the top and you should receive an OnPage test alertOnPage LogDNA Integration