This document shows you how to enable or disable platform logs that are created
by reCAPTCHA as part of Cloud Logging. For more information about
platform logs, see
[Google Cloud platform logs](https://docs.cloud.google.com/logging/docs/api/platform-logs.md.txt).

You can enable platform logging for reCAPTCHA specifically for the
following operations:

- [`Assessment`](https://docs.cloud.google.com/recaptcha/docs/reference/rest/v1/projects.assessments.md.txt#Assessment)
  response from
  [`projects.assessments.create`](https://docs.cloud.google.com/recaptcha/docs/reference/rest/v1/projects.assessments/create.md.txt)

- [`AnnotateAssessmentRequest`](https://docs.cloud.google.com/recaptcha/docs/reference/rpc/google.cloud.recaptchaenterprise.v1.md.txt#google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest)
  request to
  [`projects.assessments.annotate`](https://docs.cloud.google.com/recaptcha/docs/reference/rest/v1/projects.assessments/annotate.md.txt)

Platform logging is available only when using the v1 API
([`CreateAssessment`](https://docs.cloud.google.com/recaptcha/docs/reference/rest/v1/projects.assessments.md.txt#Assessment) and [`AnnotateAssessment`](https://docs.cloud.google.com/recaptcha/docs/reference/rest/v1/projects.assessments/annotate.md.txt))
and not with the `v1beta1` API or the `SiteVerify` API.

> [!NOTE]
> **Note:** The PII data for Fraud Prevention is not displayed in the platform logs.

## Enable or disable platform logs

To enable or disable platform logs, do the following:

1. In the Google Cloud console, go to the **Google Cloud Fraud Defense** page.

   [Go to Google Cloud Fraud Defense](https://console.cloud.google.com/security/recaptcha)
2. Verify that the name of your project appears in the resource selector at the
   top of the page.

   If you don't see the name of your project, click the resource selector, then
   select your project. See
   [identifying projects](https://docs.cloud.google.com/resource-manager/docs/creating-managing-projects.md.txt#identifying_projects)
   for help finding the project name, ID, or number.
3. Click **Settings**.

   ![](https://docs.cloud.google.com/static/recaptcha/images/settings-button.png)
4. In the **Platform logging** card, click **Configure**.

   ![](https://docs.cloud.google.com/static/recaptcha/images/platform-logging-card.png)
5. To enable or disable platform logs for
   [assessment](https://docs.cloud.google.com/recaptcha/docs/create-assessment) and
   [annotation](https://docs.cloud.google.com/recaptcha/docs/annotate-assessment.md.txt) operations,
   click the respective toggles in the **Platform logging** pane.

   ![](https://docs.cloud.google.com/static/recaptcha/images/platform-logging-subtask.png)
6. Click **Save** to complete.

For more information about viewing, routing, and storing platform logs, see [Managing logs](https://docs.cloud.google.com/logging/docs/api/platform-logs.md.txt#managing-logs).

You can export reCAPTCHA platform logs to BigQuery using
a log sink in Logs Router. For more information, see
[Export logs to BigQuery](https://docs.cloud.google.com/recaptcha/docs/export-logs-bigquery.md.txt).

You can enable the collection of reCAPTCHA platform logs in
Google Security Operations for analysis. For more information, see
[Collect reCAPTCHA logs](https://docs.cloud.google.com/chronicle/docs/ingestion/default-parsers/collect-gcp-recaptcha-logs).

## Pricing

For information on logs pricing, see
[Logging pricing](https://cloud.google.com/stackdriver/pricing#logging-costs).

> [!NOTE]
> **Note:** To avoid potentially redundant billing for logs, ensure that `DATA_WRITE` audit logs are not enabled for reCAPTCHA. For more information, see [audit logging](https://docs.cloud.google.com/recaptcha/docs/audit-logging.md.txt).