View Google Agentspace Enterprise logs with Cloud Logging

Google Agentspace Enterprise provides Cloud Logging for customers to monitor errors and warnings when importing documents or working with data connectors.

This document describes how to access Cloud Logging for Google Agentspace Enterprise using Logs Explorer.

Before you begin

To access Cloud Logging, make sure that your project administrator has granted you the Logs Viewer IAM role (roles/logging.viewer).

Access Google Agentspace Enterprise logs using Logs Explorer

To access Google Agentspace Enterprise logs, do the following:

  1. In the Google Cloud console, go to the Logs Explorer.
  2. Select a Google Cloud project to check its logs.
  3. By default, the Logs Explorer page searches the resources listed in the default log scope for log entries. To filter to Google Agentspace Enterprise logs, do one of the following:

    • Select All Resources > Consumed API > Discovery Engine API, and then click Apply.
    • Enter the following into the query bar, and click Run Query:

      resource.type="consumed_api"
      resource.labels.service="discoveryengine.googleapis.com"
      
  4. Further query the logs using the filters provided. For example, change the time range. By default, the Logs Explorer only shows logs from the past hour.

  5. Refine your query scope by filtering on JSON metadata. For example, to query ImportDocuments method logs, do one of the following:

    • Enter the following into the query bar:

      jsonPayload.context.reportLocation.functionName=~"ImportDocuments"
      
    • Expand the JSON metadata, and click to filter:

      Filter by clicking on JSON metadata
      Figure 1. Filter by clicking on JSON metadata
  6. For most warnings and errors, find details in jsonPayload.message and jsonPayload.status.

  7. For deeper log analysis, dump the logs to a long sink such as BigQuery. For information, see Route logs to supported destinations in the Google Cloud Observability documentation.