---
title: Google StackDriver Logging
description: >-
  Store, search, analyze, monitor, and alert on log data and events from Google
  Cloud.
breadcrumbs: Docs > Integrations > Google StackDriver Logging
---

# Google StackDriver Logging

## Overview{% #overview %}

The Google Cloud Logging product allows you to store, search, analyze, monitor, and alert on log data and events from Google Cloud Platform.

Datadog pulls **metrics** from Google Cloud Logging to:

- Visualize the performance of your Google Cloud logs.
- Correlate the performance of your Google Cloud logs with your applications.

## Setup{% #setup %}

### Installation{% #installation %}

Metrics from Google Cloud logs are included as part of the [Google Cloud Platform integration](https://docs.datadoghq.com/integrations/google-cloud-platform/). There are no additional installation steps required.

### Log collection{% #log-collection %}

Google Cloud logs are collected with Google Cloud Logging and sent to a Dataflow job through a Cloud Pub/Sub topic. If you haven't already, [set up logging with the Datadog Dataflow template](https://docs.datadoghq.com/integrations/google-cloud-platform/#log-collection).

## Data Collected{% #data-collected %}

### Metrics{% #metrics %}

|  |
|  |
| **gcp.logging.billing.bytes\_ingested**(count)            | Log bytes ingested.*Shown as byte*                                                                  |
| **gcp.logging.billing.monthly\_bytes\_ingested**(gauge)   | Month-to-date log bytes ingested.*Shown as byte*                                                    |
| **gcp.logging.byte\_count**(count)                        | Number of bytes in all log entries ingested.*Shown as byte*                                         |
| **gcp.logging.dropped\_log\_entry\_count**(count)         | (Deprecated) Number of log entries that did not contribute to user defined metrics.*Shown as entry* |
| **gcp.logging.excluded\_byte\_count**(count)              | Number of bytes in log entries that were excluded.*Shown as byte*                                   |
| **gcp.logging.excluded\_log\_entry\_count**(count)        | Number of log entries that were excluded.*Shown as entry*                                           |
| **gcp.logging.exports.byte\_count**(count)                | Number of bytes in log entries that were exported.*Shown as byte*                                   |
| **gcp.logging.exports.error\_count**(count)               | Number of log entries that failed to be exported.*Shown as entry*                                   |
| **gcp.logging.exports.log\_entry\_count**(count)          | Number of log entries that were exported.*Shown as entry*                                           |
| **gcp.logging.log\_entry\_count**(count)                  | Number of log entries that contributed to user-defined metrics.*Shown as entry*                     |
| **gcp.logging.logs\_based\_metrics\_error\_count**(count) | Number of log entries that did not contribute to user defined metrics.*Shown as entry*              |
| **gcp.logging.metric\_throttled**(gauge)                  | Indicates if points are being dropped for logs-based metrics due to exceeding time series limits.   |
| **gcp.logging.time\_series\_count**(gauge)                | Estimate of the active time series count for logs-based metrics.                                    |

**Note**: Datadog collects Google Cloud Logging [user-defined metrics](https://cloud.google.com/logging/docs/logs-based-metrics/#user-defined_metrics_interface) with the prefix `gcp.logging.user`.

### Events{% #events %}

The Google Cloud Logging integration does not include any events.

### Service Checks{% #service-checks %}

The Google Cloud Logging integration does not include any service checks.

## Troubleshooting{% #troubleshooting %}

Need help? Contact [Datadog support](https://docs.datadoghq.com/help/).

## Further Reading{% #further-reading %}

- [Collect Google Stackdriver logs with Datadog](https://www.datadoghq.com/blog/collect-stackdriver-logs-with-datadog/)
