Send audit log activities to another tool using a webhook

Establish a real-time streaming solution to automatically send audit log data to a designated URL of your choice.

Audit log webhook is a customized HTTP callbacks that trigger in response to audit log events. When an activity occurs, the source system sends an HTTP request to the URL registered for the webhook in JSON format.

It’s important to know that webhook can be hosted or provided by any third-party tool. You should make sure that it’s appropriate for this data to be shared with your third-party tool before registering a webhhook.

Who can do this?
Role: Organization admin
Atlassian Cloud: Enterprise plan for Jira or Confluence or Atlassian Guard Premium.
Atlassian Government Cloud: Not available

How webhook works

Here is an example of how a webhook works:

  1. Identify and choose a third-party service or application that will process incoming webhook notifications (e.g., a logging tool or a custom API endpoint).

  2. Retrieve the URL from the selected tool which will receive audit log data.

  3. Navigate to webhook settings and register a new webhook by providing the URL obtained from the tool and an optional authorization header.

  4. When an action occurs within the Atlassian organization it triggers an associated audit log event.

  5. The newly generated log is sent to the registered URL. This transmission occurs asynchronously. Explore the structure and appearance of the payload

Register a webhook URL

You can't register more than one Webhook URL for an organization.

To register a webhook URL:

  1. Go to Atlassian Administration. Select your organization if you have more than one.

  2. Select Security > Audit log.

  3. Select Settings.

  4. Select the Webhook tab.

  5. Enter the Webhook URL (the destination where you wish to receive real-time activity updates).

  6. Optionally enter secure authorization credentials to authenticate access to a protected resource. Encode the username and password as Authorization: Basic <credentials>.

  7. Select Register webhook

You can't register more than one webhook URL for an organization. You can update or remove the webhook registration if you need to.

Webhook home tab to register webhook

Limitations

Webhook has the following limitations:

  • Retries: events will be retried up to three times before failing to send to the registered URL.

  • Ordering: event delivery is not guaranteed to be in chronological order. For example, Event B may be delivered before Event A, even if Event A occurred first.

  • De-duplication: events may be delivered more than once. Each event will have the same information and ID. You must implement their own de-duplication logic.

  • Service Level Objectives (SLOs): there are no public SLOs. No guarantees are provided regarding uptime or the delivery time of audit log.

Edit a registered a webhook URL

To edit the details of a registered webhook:

  1. Go to Atlassian Administration. Select your organization if you have more than one.

  2. Select Security > Audit log.

  3. Select Settings.

  4. Select the Webhook tab.

  5. Select Edit details to update the details.

Webhook registeration screen in Audit log

Alternatively, select Remove registration to remove a webhook.

Test a registered a webhook

This test evaluates your webhook's capacity to manage aggregated activities, which are sent with a brief delay to prevent the transmission of redundant updates.

  1. Go to Atlassian Administration. Select your organization if you have more than one.

  2. Select Security > Audit log.

  3. Select Settings.

  4. Select Test registration.

Test webhook registeration

Still need help?

The Atlassian Community is here for you.