---
sourceDocument: Yokohama IT Operations Management
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/yokohama/it-operations-management

 Release :

    - yokohama

ft:locale :

    - en-US

ft:publication_title :

    - Yokohama IT Operations Management

ft:clusterId :

    - itom

bundleId :

    - itom

workflow :

    - Technology


---

# Configure the Google Cloud Logging service to auto-update the CMDB

# Configure the Google Cloud Logging service to auto-update the CMDB {#gcp-stackdriver-service__title-gcp-stackdriver-service}

* Release version: Yokohama
* 
* Updated November 25, 2025
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

You can activate the Google Cloud Logging (formerly Stackdriver Logging) service to auto-update Configuration Management Database (CMDB) configuration items (CI) data whenever Google Cloud Connector or your Google account makes a life-cycle state or configuration change to a Google Cloud Platform (GCP) resource. As a result, the CI data in the CMDB is updated without having to wait for Discovery to run.{#gcp-stackdriver-service__shortdesc-gcp-stackdriver-service}

## Before you begin

* Activate Discovery and Service Mapping Patterns. For more information, see [Google Cloud Platform Discovery](https://servicenow-prod.fluidtopics.net/1WoPYkwVs~JqTsag4W5hdA "Discovery finds Google Cloud Platform and its components. Discovering some of these resources may require updating to the latest version of the Discovery and Service Mapping Patterns application from the ServiceNow Store.").
* Verify that Discovery has successfully discovered logical datacenters of the Google Cloud project. For more information, see [Set up a cloud account and service account for Google Cloud Platform](https://servicenow-prod.fluidtopics.net/e9DGid_zYnAuYByOctP01w "A service account is a secure record on your instance that stores the credential and access information for your provider account. Discovery uses the information to access your provider account to get data on each resource in each specified datacenter. A cloud account is the logical representation in Cloud Provisioning and Governance of all or part of your managed cloud infrastructure. A cloud account can include multiple service accounts — even service accounts from different providers. For each service account, you specify which datacenters to include in the cloud account.").  
  Note:  
  Verify that you have selected the Should pull events check box in the Google Service Account page before you execute datacenter discovery.

{#gcp-stackdriver-service__ul_mmp_pff_5bb}  
Role required:

* discovery_admin for Cloud Discovery and `sn_cmp.cloud_event_integration` if authentication to cloud event endpoint is required. This role is required to set up an Alert Rule in the instance.
* Google Cloud Platform administrator for configuration steps in the GCP console.
* Logging Role for the Google Cloud Platform integration user that would allow OAuth scopes for the following

  * `https://www.googleapis.com/auth/logging.admin`
  * `https://www.googleapis.com/auth/cloud-platform.read-only`
  * `https://www.googleapis.com/auth/cloud-platform`
  * `https://www.googleapis.com/auth/logging.read`
  {#gcp-stackdriver-service__ul_jdj_5fx_ymb}
{#gcp-stackdriver-service__ul_ob1_3m5_qmb}

## About this task

Discovery integrates with Google Cloud's Cloud Logging API to collect log data from resources in your Google Cloud projects. This integration enables Discovery to automatically update the CMDB based on log entries that reflect changes in your environment. The Cloud Logging service provides:

* Centralized log collection for Google Cloud resources.
* APIs to query and export logs for operational workflows.
{#gcp-stackdriver-service__ul_ew2_s4t_khc}

When configured, Discovery pulls the Cloud Logging API at regular intervals to detect updates and synchronize them with the CMDB.

## Procedure

1. Log in to your Google Cloud Platform account.  
   For your project, navigate to APIs \& ServicesLibrary.
2. Enable the Cloud Logging API.
   1. In the library, search for <kbd class="ph userinput">Cloud Logging</kbd>.
   2. Select the Cloud Logging API card.
   3. On the Cloud Logging API page, select Enable.
   {#gcp-stackdriver-service__substeps_wr2_zft_hhb}
3. To modify the schedule, navigate to System SchedulerScheduled Jobs and then select GCP-Events-job and then update the Repeat setting as needed.  
4. Select Update.
{#gcp-stackdriver-service__steps_vgv_t2t_wy}

## Result

* Once the Google Cloud Platform generates an event and Discovery receives the event information, the
  'GCP-Events-job' scheduled jobs execute in the background.

* The scheduled job passes the event payload to the Identification and
  Reconciliation Engine (IRE). The IRE then takes the necessary actions to
  modify the state of the resources based on the event.

{#gcp-stackdriver-service__ul_lrx_jwp_jkb}

*[\>]: and then


