A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://cloud.google.com/logging/docs/basic-concepts below:

Cloud Logging overview | Google Cloud

Cloud Logging overview

Stay organized with collections Save and categorize content based on your preferences.

This document provides an overview of Cloud Logging, which is a real-time log-management system with storage, search, analysis, and monitoring support. Cloud Logging automatically collects log data from Google Cloud resources. Your applications, on-premise resources, and resources from other cloud providers can send log data to Cloud Logging. You can also configure alerting policies so that Cloud Monitoring notifies you when certain kinds of events are reported in your log data. For regulatory or security reasons, you can determine where your log data is stored.

Collect log data from your applications and third-party software

You can collect log data from applications that you write by using a client library to instrument your application. However, it's not always necessary to instrument your application. For example, for some configurations you can use the Ops Agent to send log data that were written to stdout or stderr to your Google Cloud project.

You can also collect log data from your third-party applications, like nginx, by installing the Ops Agent and then configuring it to write log data from that application to your Google Cloud project.

See Which should you use: Logging agent or client library? for information that can help you decide which approach best suits your requirements.

Query, view, and analyze log data

To view and analyze your log data, use the Logs Explorer or Log Analytics pages of the Google Cloud console:

For more information, see Query and view log data.

Visualize and monitor your log data

You can configure Cloud Logging to notify you when certain kinds of events occur in your log data. These notifications might be sent when a particular pattern appears in a log entry, or when a trend is detected in your log data. If you're interested in viewing the error rates of your Google Cloud services, then you can view the Cloud Logging dashboard, which is preconfigured.

To get notified when a particular message is part of a log entry, like when a critical security-related event occurs, create a log-based alerting policy. These policies are useful for important but rare events, like the following:

To get notified when a trend occurs in your log data, create a log-based metric and monitor the metric with an alerting policy. A log-based metric either counts the number of log entries that match some criterion, or they extract and organize information like response times into histograms. Log-based metrics are suitable when you want to do any of the following:

For more information, see Monitor your log data.

Log storage and retention

You don't have to configure the location where log data is stored. By default, Google Cloud projects, billing accounts, folders, and organization resources automatically store the log data that originates in the resource. For example, if your Google Cloud project contains a Compute Engine instance, then the log data Compute Engine generates is automatically stored.

You can configure a number of aspects about your log storage, such as which log data are stored, which are discarded, and where the log data are stored. For more information, see Store log entries.

Log entries are stored for a specified length of time and are then deleted. For more information, see Logs retention periods.

Log routing

You can route, or forward, log entries to the following destinations:

When log data is routed, the destination can be in a different resource from where the log data originates. For example, you can route log data from one project to a log bucket stored in a different project.

For more information, see Route log entries.

Categories of log data

Log categories are meant to help describe the logging information available to you; the categories aren't mutually exclusive:

Access control

Identity and Access Management (IAM) permissions and roles control access to log buckets. You can grant predefined roles to principals, or you can create custom roles. For more information about required permissions, see Access control.

Pricing

To learn about pricing for Cloud Logging, see the Google Cloud Observability pricing page.

What's next

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-08-11 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-08-11 UTC."],[],[]]


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4