Coralogix

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

Coralogix is a log analytics platform that uses machine learning and real-time streaming to provide insights into log data, helping with monitoring, troubleshooting, and optimization. It offers features like dynamic data parsing, alerting, and anomaly detection, allowing teams to efficiently manage and analyze large volumes of log data. Coralogix is known for its scalability and robust analytics capabilities.

Prerequisites

ItemDescription
Create Generic Incoming Webhook for the Apono appUse the instructions in the link to create Coralogix incoming webhook, to generate a webhook URL to connect Apono application to Coralogix.


Create the webhook

  1. In the Apono admin portal, click your avatar at the bottom left corner, click Settings and pick Webhooks

  2. Click Add Webhook

  3. Fill in the following fields:

    1. Method - POST
    2. URL - https://<generated_ncoming_Webhook_URL>
    3. The webhook body:

      `{
         "alias":"apono-webhook",
         "integration_type_fields":"{ \"event_type\": \"{{ event_type }}\", \"event_time\": \"{{ event_time }}\", \"id\": \"{{ data.id }}\", \"friendly_id\": \"{{ data.friendly_id }}\", \"requester_id\": \"{{ data.requester.id }}\", \"requester_name\": \"{{ data.requester.name }}\", \"requester_email\": \"{{ data.requester.email }}\", \"justification\": \"{{ data.justification }}\", \"creation_date\": \"{{ data.creation_date }}\", \"access_flow_id\": \"{{ data.access_flow.id }}\", \"access_flow_name\": \"{{ data.access_flow.name }}\", \"access_bundle_id\": \"{{ data.access_bundle.id }}\", \"access_bundle_name\": \"{{ data.access_bundle.id }}\", \"access_groups_integration_name\": \"{{ data.access_groups.[0].integration.name }}\", \"access_groups_integration_type\": \"{{ data.access_groups.[0].integration.type }}\"}",
         "url":"<https://api.coralogix.us/api/v1/logs>"
      }`
      
      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.
    4. Headers - Authorization : Bearer <api_key>
    5. Triggers - you may pick one or more triggers. Triggers correspond to Apono access request statuses:
      1. Created
      2. Approved
      3. Rejected
      4. Granted
      5. Expired
      6. Failed
    6. Name - any name of your choosing. This will be displayed in the webhooks table.
    7. 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.
    8. Optional: Test your webhook configuration. You should see Success as the response status.
      Please note: The Test will send new log to your Coralogix with mock data.

Results

Your webhook should now start sending new logs to Coralogix once triggered: