New Relic

Create an outgoing webhook to send logs to New Relic triggered by Apono access request events

New Relic browser monitoring helps you understand website performance and user behavior by monitoring real user data. It tracks page load times, network requests, JavaScript errors, user interactions, and more. Analyzing navigation timing helps you find issues that hurt your web app's performance or backend errors.

Prerequisite

ItemDescription
PermissionsAdmin user for New Relic Admin account
New Relic license tokenFrom New Relic Admin portal click on your user logo on the left navigator bottom and choose API Keys. find your License Key for Account <YOUR_ACCOUNT_ID>, from the ... click on Copy key.

New Relic license location:


Creating the webhook

  1. In the Apono admin portal, click your avatar at the bottom left corner, click Settings and pick Webhooks
  1. Click Add Webhook
  2. Fill in the following fields:
  3. Method - POST
  4. URL
    https://log-api.newrelic.com/log/v1?Api-Key=<license_token>
    
  5. The webhook body:
{
  "timestamp": {{event_time}},
  "attributes": {
    "error.message": "New {{event_type}} by {{data.requester.name}} - {{data.requester.email}}",
    "user.id": "{{data.requester.id}}",
    "transaction.id": "{{event_type}}"
  },
  "message": "New {{event_type}} by {{data.requester.name}}/{{data.requester.id}} - {{data.requester.email}}, for {{data.access_groups.integration.name}} - {{data.access_groups.resource_types.name}} "
}

This is an example body. You may use other fields according to your needs. See the schema to the right of the screen to learn more about available data fields.

  1. Triggers - you may pick one or more triggers. Triggers correspond to Apono access request statuses:
  • Created
  • Approved
  • Rejected
  • Granted
  • Expired
  • Failed
  1. Name - any name of your choosing. This will be displayed in the webhooks table.
  2. Status - if you save the webhook as active, it can be triggered immediately. If you prefer, you may also save it as inactive and activate it later.
  3. Optional: Test your webhook configuration. You should see Success as the response status.
    Please note: The Test will send new log to your New Relic account with mock data.

Results

Your webhook should now start sending logs to New Relic in the relevant account once triggered: