> For the complete documentation index, see [llms.txt](https://docs.prismacloud.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.prismacloud.io/content-collections/connect/connect-cloud-accounts/onboard-aws/configure-audit-logs.md).

# Configure Audit Logs

Prisma Cloud by default uses the Amazon CloudTrail service to fetch the change events (ingest the audit logs). You can configure near real-time visibility in Prisma Cloud to ingest the audit logs using Amazon EventBridge on your onboarded AWS accounts.

Prisma Cloud config ingestion leverages EventBridge to reduce ingestion time of misconfigurations for the [APIs which are supported by event-assisted ingestion (EAI)](/content-collections/connect/connect-cloud-accounts/onboard-aws/aws-apis-ingested-by-prisma-cloud.md). It makes the API call only if asset configuration has changed. However, the ingestion time for APIs that are not supported for EAI remains the same.

* If you delete or disable your account, the associated EventBridge rules are correspondingly deleted or disabled in your AWS accounts and Prisma Cloud will not ingest audit logs or process audit logs policies.
* Ingesting audit logs using EventBridge is only applicable for the management account enabled regions for all the member accounts that are part of the organization. If you individually disable a member account, specific rules for that member account are disabled.
* When you run the CFT, Prisma Cloud creates rules in all accounts (including member) in only those regions where the management account is enabled.
* If you delete EventBridge rules from your AWS accounts, Prisma Cloud will not ingest audit logs and will not process audit logs policies. There will also be a significant delay in processing config policies and generating the corresponding alerts.
* If an AWS region does not support EventBridge, Prisma Cloud cannot support event-assisted ingestion for that region.
* It is recommended to use EventBridge for faster ingestion. However, if you want to roll back to using CloudTrail, contact your Prisma Cloud customer support representative.

1. After you [Onboard Your AWS Account](/content-collections/connect/connect-cloud-accounts/onboard-aws/onboard-aws-account.md) or [Onboard Your AWS Organization](/content-collections/connect/connect-cloud-accounts/onboard-aws/onboard-aws-org.md), select **Settings > Providers > Cloud Accounts**.

   The steps to configure EventBridge are the same for your cloud account and organization. When you configure it for organization, make sure to run the CFT in the management account.
2. Click the **View** icon next to the AWS account or organization for which you want to ingest the audit logs using EventBridge.
3. Select **Misconfigurations** and click **Configure** under **Near Real-Time Visibility**.

   <figure><img src="/files/i9EntzW5oWjaR8IEbnRE" alt="configure audit logs eb 1 updated"><figcaption></figcaption></figure>
4. **Configure Details**.
   1. Click **Download EventBridge CFT**.

      <figure><img src="/files/xu4yOCoPO8SciSW0SrBs" alt="configure audit logs eb 2"><figcaption></figcaption></figure>

      When you run the CFT, Prisma Cloud creates rules for all accounts (including member accounts) in only those regions where the management account is enabled.

      * If an error message displays when you click **Download EventBridge CFT**, you need to first **Download IAM Role CFT** and complete the required steps in your AWS console before continuing with EventBridge configuration.
      * If a region where you created EventBridge resources, is later disabled and you then want to update the EventBridge CloudFormation stack on AWS, the update fails due to AWS CloudFormation Service limitations. You must first delete the existing CloudFormation stack, **Download EventBridge CFT**, and then create a new stack with the newly downloaded CFT.
   2. Log in to your AWS account and follow the steps to create a stack, select **I acknowledge that AWS CloudFormation might create IAM resources with custom names**, and click **Create Stack**.
   3. Wait for status to display CREATE\_COMPLETE.

      <figure><img src="/files/zY0vCYHACw6CC0XCxIz2" alt="aws eventbridge stack create1"><figcaption></figcaption></figure>
5. Return to your Prisma Cloud console.
6. Click **Next**.
7. **Review Status**.

   Review the status of the configuration. Once the template is run successfully on your account, a **Successful** message is displayed for each region and Prisma Cloud starts to ingest audit logs from Amazon EventBridge.

   <figure><img src="/files/lYYw6HwOIYFrcROu8uTU" alt="aws eventbridge status2"><figcaption></figcaption></figure>
8. Click **Save**.

   The corresponding EventBridge Rules are displayed in AWS.

   <figure><img src="/files/XWQSaDzzf1qGkv9IY8SS" alt="aws eventbridge rules2"><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.prismacloud.io/content-collections/connect/connect-cloud-accounts/onboard-aws/configure-audit-logs.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
