View Integration Connectors logs

This page describes the logging data available for a connector and how you can access this data using Cloud Logging.

Cloud Logging is a fully managed service that allows you to store, search, analyze, monitor, and alert on logging data and events from Google Cloud. For more information about Cloud Logging, see Cloud Logging documentation.

You can configure a connector to log at any of the following levels:

  • Error: Logs error messages that occur during failures such as connection failures, and authentication failures.
    Warning logs for non-critical messages also get logged. For example, if you are accessing an unsupported entity, a warning message is logged.
  • Info: Logs information about operations and executions. Generally, this log will have request, response, and headers for the requests which the connector makes to your backend system.
  • Debug: Logs detailed tracing information which would be useful for debugging any issues in connection or execution. This log will have all the information that is logged at the Info and Error levels, and additional details such as SSL information, network calls, and other tracing information.

View logs

If logging is enabled for a connector, you can view the logs in the Logs Explorer. To view the logs in the Google Cloud console, do the following steps:

  1. Go to the Logs Explorer in the Google Cloud console:

    Go to Logs Explorer

    To get a better understanding of the Logs Explorer, see Logs Explorer interface.

  2. In the Query tab, enter:
    resource.type="connectors.googleapis.com/Connection"
    

    This sample query shows logs for all the connections across all the regions. You can further filter the logs based on region and a connection name. For example, the following query shows logs for the cloud-storage-con-1 connection, that is configured in the us-central1 location.

    resource.type="connectors.googleapis.com/Connection"
    resource.labels.location="us-central1"
    resource.labels.connection="cloud-storage-con-1"
    
  3. You can filter the search results further by time, severity, and log name.
  4. Click Run query.