You can use [Cloud Logging](https://docs.cloud.google.com/logging/docs) to capture logging data and events
for your Google Cloud project. The
[Logs Explorer](https://docs.cloud.google.com/logging/docs/view/logs-explorer-interface) displays log entries for your
project. You can use the `contactcenteraiplatform.googleapis.com/ContactCenter`
resource type to filter your results to view only the log entries for
CCAI Platform.

## Before you begin

Before you can use the Logs Explorer, your administrator needs to grant you
the right IAM role. The role you require depends on your use
case. For more information, see [Before you begin](https://docs.cloud.google.com/logging/docs/view/logs-explorer-interface#before-you-begin) in the
Cloud Logging documentation.

## View CCAI Platform log entries

You can filter the results that appear in the Logs Explorer to display only
CCAI Platform log entries.

To view CCAI Platform log entries, follow these steps:

1. In the Google Cloud console, go to the project selector dashboard and select the
   project that contains your instance.


   [Project selector dashboard](https://console.cloud.google.com/projectselector2/home/dashboard)

   <br />

2. In the navigation menu, click **Logging \> Logs explorer**.


   [Logs Explorer](https://console.cloud.google.com/logs)

   <br />

   The **Logs Explorer** page appears.
3. For ![](https://docs.cloud.google.com/static/contact-center/ccai-platform/docs/images/icon-project.png) **Project logs** , enter
   `resource.type="contactcenteraiplatform.googleapis.com/ContactCenter"` in
   the query field, and then click **Run query**. Your CCAI Platform
   log entries appear.

   > [!NOTE]
   > **Note:** To get query results, you might need to click **Edit time** to adjust the time window.

For more information about using the Logs Explorer, see [View logs by using
the Logs Explorer](https://docs.cloud.google.com/logging/docs/view/logs-explorer-interface). For information about CCAI Platform events available in the logs, see [Understanding log entries](https://docs.cloud.google.com/contact-center/ccai-platform/docs/understanding-log-entries).