# Cloud Logging documentation

[Read product documentation](https://docs.cloud.google.com/logging/docs/overview.md.txt) **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](https://docs.cloud.google.com/logging/docs/buckets.md.txt), a user interface called the
[Logs Explorer](https://docs.cloud.google.com/logging/docs/view/logs-viewer-interface), and
[an API](https://docs.cloud.google.com/logging/docs/reference/api-overview.md.txt) 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/)

## Documentation resources

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

### Guides

-

  [Quickstart: Write and query log entries with the gcloud CLI](https://docs.cloud.google.com/logging/docs/write-query-log-entries-gcloud.md.txt)

-

  [Quickstart: Write and query log entries using a Python script](https://docs.cloud.google.com/logging/docs/write-query-log-entries-python.md.txt)

-

  [Using the Logs Explorer](https://docs.cloud.google.com/logging/docs/view/logs-viewer-interface)

-

  [Logging query language](https://docs.cloud.google.com/logging/docs/view/logging-query-language.md.txt)

-

  [Building queries](https://docs.cloud.google.com/logging/docs/view/building-queries.md.txt)

-

  [Log Router overview](https://docs.cloud.google.com/logging/docs/routing/overview.md.txt)

-

  [About the Ops Agent](https://docs.cloud.google.com/logging/docs/agent/ops-agent.md.txt)

-

  [Log-based metrics](https://docs.cloud.google.com/logging/docs/logs-based-metrics.md.txt)

-

  [More guides](https://docs.cloud.google.com/logging/docs/overview.md.txt)

### Reference

-

  [REST API](https://docs.cloud.google.com/logging/docs/reference/v2/rest.md.txt)

-

  [RPC API](https://docs.cloud.google.com/logging/docs/reference/v2/rpc.md.txt)

-

  [Logging Client Libraries](https://docs.cloud.google.com/logging/docs/reference/libraries.md.txt)

-

  [Command-line interface](https://docs.cloud.google.com/logging/docs/reference/tools/gcloud-logging.md.txt)

-

  [Monitored resources and services](https://docs.cloud.google.com/logging/docs/api/v2/resource-list.md.txt)

-

  [Introduction to the Cloud Logging API v2](https://docs.cloud.google.com/logging/docs/reference/api-overview.md.txt)

-

  [More references](https://docs.cloud.google.com/logging/docs/reference)

### Resources

-

  [Quotas and limits](https://docs.cloud.google.com/logging/quotas.md.txt)

-

  [Release notes](https://docs.cloud.google.com/logging/docs/release-notes.md.txt)

-

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

-

  [More resources](https://docs.cloud.google.com/logging/quotas.md.txt)

## 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.


Tutorial Training and tutorials

### [Security and access analytics](https://docs.cloud.google.com/architecture/security-log-analytics.md.txt)


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](https://docs.cloud.google.com/logging/docs/central-log-storage.md.txt)


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

Logging Logs Buckets

<br />

Use case Use cases

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


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

Logging GKE Multi-tenant

<br />

Use case Use cases

### [Regionalizing your project's logs using log buckets](https://docs.cloud.google.com/logging/docs/regionalized-logs.md.txt)


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

Data residency Regionalization Logging

<br />

Code sample Code Samples

### [Log Entries: Write](https://docs.cloud.google.com/logging/docs/samples/logging-write-log-entry.md.txt)


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


Code sample Code Samples

### [Log Entries: Advanced Write](https://docs.cloud.google.com/logging/docs/samples/logging-write-log-entry-advanced.md.txt)


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


Code sample Code Samples

### [Log Entries: List](https://docs.cloud.google.com/logging/docs/samples/logging-list-log-entries.md.txt)


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


Code sample Code Samples

### [Logs: Delete](https://docs.cloud.google.com/logging/docs/samples/logging-delete-log.md.txt)


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](https://docs.cloud.google.com/logging/docs/setup/go.md.txt)


Create a VM instance with Python


Code sample Code Samples

### [More samples](https://docs.cloud.google.com/logging/docs/samples.md.txt)


More logging-specific samples


## Related videos