# Cloud Logging documentation  |  Google Cloud Documentation
# Source: https://docs.cloud.google.com/logging/docs
# Path: /logging/docs

  * [ Home ](https://docs.cloud.google.com/)
  * [ Documentation ](https://docs.cloud.google.com/docs)
  * [ Observability ](https://docs.cloud.google.com/docs/observability)
  * [ Cloud Logging ](https://docs.cloud.google.com/logging/docs)



# Cloud Logging documentation

[Read product documentation](https://docs.cloud.google.com/logging/docs/overview)

**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 and Amazon Web Services. Using [ Bindplane](https://bindplane.com/google), you can also collect this data from over 80 additional applications, on-premises systems, and hybrid cloud systems.

Logging includes storage for logs through [log buckets](/logging/docs/buckets), a user interface called the [Logs Explorer](/logging/docs/view/logs-viewer-interface), and [an API](/logging/docs/reference/api-overview) to manage logs programmatically. Logging lets you read and write log entries, query your logs, and control how you route and use your logs.

[Go to the Cloud Logging product page for more.](https://cloud.google.com/logging/)

[Get started for free](https://console.cloud.google.com/freetrial)

#### Start your proof of concept with $300 in free credit

  * Develop with our latest Generative AI models and tools. 
  * Get free usage of 20+ popular products, including Compute Engine and AI APIs. 
  * No automatic charges, no commitment. 



[ View free product offers ](/free/docs/free-cloud-features#free-tier)

#### Keep exploring with 20+ always-free products.

Access 20+ free products for common use cases, including AI APIs, VMs, data warehouses, and more. 

##  Documentation resources 

Find quickstarts and guides, review key references, and get help with common issues. 

format_list_numbered 

### Guides

  * [ Quickstart: Write and query log entries with the gcloud CLI ](/logging/docs/write-query-log-entries-gcloud)

  * [ Quickstart: Write and query log entries using a Python script ](/logging/docs/write-query-log-entries-python)

  * [ Using the Logs Explorer ](/logging/docs/view/logs-viewer-interface)

  * [ Logging query language ](/logging/docs/view/logging-query-language)

  * [ Building queries ](/logging/docs/view/building-queries)

  * [ Log Router overview ](/logging/docs/routing/overview)

  * [ About the Ops Agent ](/logging/docs/agent/ops-agent)

  * [ Log-based metrics ](/logging/docs/logs-based-metrics)

  * [ More guides ](/logging/docs/overview)




find_in_page 

### Reference

  * [ REST API ](/logging/docs/reference/v2/rest)

  * [ RPC API ](/logging/docs/reference/v2/rpc)

  * [ Logging Client Libraries ](/logging/docs/reference/libraries)

  * [ Command-line interface ](/logging/docs/reference/tools/gcloud-logging)

  * [ Monitored resources and services ](/logging/docs/api/v2/resource-list)

  * [ Introduction to the Cloud Logging API v2 ](/logging/docs/reference/api-overview)

  * [ More references ](/logging/docs/reference)




info 

### Resources

  * [ Quotas and limits ](/logging/quotas)

  * [ Release notes ](/logging/docs/release-notes)

  * [ Pricing ](https://cloud.google.com/products/observability/pricing)

  * [ More resources ](/logging/quotas)




##  Related resources 

Training and tutorials

Use cases

Code samples

Explore self-paced training, use cases, reference architectures, and code samples with examples of how to use and connect Google Cloud services. 

Training 

Training and tutorials

###  [ Monitoring and logging for Cloud Functions ](https://www.cloudskillsboost.google/catalog_lab/1110)

This hands-on lab shows you how to view your Cloud Run functions with their execution times, execution counts, and memory usage in the Google Cloud console. These metrics are also available in Cloud Monitoring. 

Training 

Training and tutorials

###  [ Creating and alerting on logs-based metrics ](https://www.cloudskillsboost.google/catalog_lab/753)

This hands-on lab shows you how to use both system and user-defined logs-based metrics to create charts and alerting policies. 

Training 

Training and tutorials

###  [ Security and access analytics ](/architecture/security-log-analytics)

This tutorial shows how to export logs from Logging to BigQuery to meet the security and analytics requirements of your organization's cloud infrastructure environment. 

Use case 

Use cases

###  [ Storing your organization's logs in a log bucket ](/logging/docs/central-log-storage)

Learn how to store your organization's logs in a single source. 

Logging Logs Buckets

Use case 

Use cases

###  [ Multi-tenant logging on Google Kubernetes Engine. ](/stackdriver/docs/solutions/gke/multi-tenant-logging)

Learn how to configure multi-tenant logging for GKE clusters. 

Logging GKE Multi-tenant

Use case 

Use cases

###  [ Regionalizing your project's logs using log buckets ](/logging/docs/regionalized-logs)

Learn how to store your logs data in a designated region. 

Data residency Regionalization Logging

Code sample 

Code Samples

###  [ Log Entries: Write ](/logging/docs/samples/logging-write-log-entry)

Learn how to write log entries in Go, Java, Python, Node.js, C#, and PHP 

Code sample 

Code Samples

###  [ Log Entries: Advanced Write ](/logging/docs/samples/logging-write-log-entry-advanced)

Learn how to write log entries in Go, Java, Python, Node.js, C#, and PHP 

Code sample 

Code Samples

###  [ Log Entries: List ](/logging/docs/samples/logging-list-log-entries)

Learn how to list log entries in Go, Java, Python, Node.js, C#, and PHP 

Code sample 

Code Samples

###  [ Logs: Delete ](/logging/docs/samples/logging-delete-log)

Learn how to delete log entries in Go, Java, Python, Node.js, C#, and PHP 

Code sample 

Code Samples

###  [ Setting up Cloud Logging for Go ](/logging/docs/setup/go)

Create a VM instance with Python 

Code sample 

Code Samples

###  [ More samples ](/logging/docs/samples)

More logging-specific samples 

##  Related videos 

Except as otherwise noted, the content of this page is licensed under the [Creative Commons Attribution 4.0 License](https://creativecommons.org/licenses/by/4.0/), and code samples are licensed under the [Apache 2.0 License](https://www.apache.org/licenses/LICENSE-2.0). For details, see the [Google Developers Site Policies](https://developers.google.com/site-policies). Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-12-17 UTC.

[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-12-17 UTC."],[],[]]