# Alibaba Cloud ActionTrail

The integration of Coralogix with ActionTrail on Alibaba Cloud offers a powerful solution for tracking and analyzing cloud-based actions. By integrating Coralogix with ActionTrail, users can gain valuable insights into the operational activities within their Alibaba Cloud resources. This integration provides a comprehensive view of resource usage, improving efficiency and simplifying issue troubleshooting. Additionally, it enhances security by enabling real-time monitoring and alerting for potential security threats.

## Prerequisites

- Permission to create a custom webhook URL with your Coralogix account.
- Permission to access EventBridge and IAM on Alibaba Cloud.

## Creating a custom Coralogix webhook URL

1. Access the Coralogix UI and navigate to **Data Flow** > **Contextual Data**.
1. [Create a custom webhook URL](https://coralogix.com/docs/integrations/incoming-webhooks/generic-incoming-webhooks/index.md) for connecting your ActionTrail to Coralogix.

## Creating a custom event bus on ActionTrail

You must create a custom event bus for forwarding your logs to Coralogix.

### Locating the project and Logstore names for ActionTrail

1. Log into Alibaba Cloud.
1. Navigate to **ActionTrail > Trails** and select the trail you want to integrate with Coralogix. Then, click the **Event Delivery** tab.

### Creating a custom event bus

1. Navigate to **EventBridge > Event Buses**.
1. In the **Custom Event Buses** section, click **Quickly Create**.
1. Add the bus name and description. Then, click **Next Step**.
1. Provide a name to the event source and define the event provider as `Simple Log Service`. Then, click **Next Step**.
1. Choose the project name and the Logstore. They must be same as defined in the [Locating the project and Logstore names for ActionTrail](#locating-the-project-and-logstore-names-for-actiontrail) section. Click **Authorization** to create a role for the bus. Then, click **Next Step**.
1. Provide the event rule name, and keep the pattern content unchanged, `{}` to accept all Trail logs. Then, click **Next Step**.
1. Set the target service type to `HTTPS`.
1. In the **URL** field, enter the custom webhook URL, as defined in the [Creating a custom Coralogix webhook URL](#creating-a-custom-coralogix-webhook-url) section above. Set the body to `Partial Event` and enter `$.data.event` in the **Body** field.
1. Click **Create** to finish.
