---
title: "GCP Cloud Logging data source | Grafana Labs"
description: "Query GCP Cloud Logging with a Grafana data source."
---

> For a curated documentation index, see [llms.txt](/llms.txt). For the complete documentation index, see [llms-full.txt](/llms-full.txt).

## How it works

[GCP Cloud Logging data source: Query GCP logs directly from Grafana](cp-olly-gcp-logging-ds-light.svg "GCP Cloud Logging data source: Query GCP logs directly from Grafana")

Authenticate with a service account JSON key, or use workload identity when you run Grafana in GKE. You write queries in Cloud Logging’s query language, and a visual query builder helps if you’re not familiar with the syntax. GCP uses two separate data sources. Configure Cloud Monitoring for metrics and Cloud Logging for logs, and the same authentication works for both.

## What you get

- All GCP service logs
- Visual query builder
- Filter by resource, severity
- Template variables
- Log context and details

## Considerations

- Cloud Logging query syntax
- API latency
- Separate from metrics data source
- Per-project authentication, typically
- Alert evaluation calls the API

## Authentication options

Service account JSON key or workload identity (same as Cloud Monitoring)

## Documentation

View the [Cloud Logging data source](/grafana/plugins/googlecloud-logging-datasource/) documentation.
