Cloud Logging は、 Google Cloud とアマゾン ウェブ サービス(AWS)からのロギングデータとイベントの保存、検索、分析、モニタリング、アラート送信を行えるフルマネージド サービスです。BindPlane を使用して、80 を超える追加のアプリケーション、オンプレミス システム、ハイブリッド クラウド システムからこのデータを収集することもできます。
Logging には、ログバケット、ログ エクスプローラというユーザー インターフェース、API によってプログラムでログを管理するログのストレージが含まれます。Logging では、ログエントリの読み取りと書き込み、ログのクエリができ、またログの転送と使用方法を制御できます。
$300 分の無料クレジットを使用して概念実証を始める
-
Gemini 2.0 Flash Thinking をご利用いただけます。
-
AI API や BigQuery などの人気プロダクトの毎月の無料使用枠をご利用いただけます。
-
自動請求は行われず、契約も不要です。
常に無料で利用可能な 20 以上のプロダクトを確認する
AI API、VM、データ ウェアハウスなど、一般的なユースケース向けの 20 以上のプロダクトを無料でご利用いただけます。
トレーニング
トレーニングとチュートリアル
Cloud Functions の関数のモニタリングとロギング
このハンズオンラボでは、Cloud Run functions の関数の実行時間、実行回数、メモリ使用量を Google Cloud コンソールで表示する方法を説明します。これらの指標は Cloud Monitoring でも使用できます。
トレーニング
トレーニングとチュートリアル
ログベースの指標の作成とアラート
このハンズオンラボでは、システム定義、ユーザー定義の両方のログベースの指標を使用して、グラフとアラート ポリシーを作成する方法を学びます。
トレーニング
トレーニングとチュートリアル
セキュリティとアクセスの分析
このチュートリアルでは、組織のクラウド インフラストラクチャ環境のセキュリティと分析の要件を満たすために、Stackdriver Logging から BigQuery にログをエクスポートする方法を示します。
ユースケース
ユースケース
ログバケットへの組織のログの保存
組織のログを 1 つのソースに保存する方法について説明します。
ロギング
ログバケット
ユースケース
ユースケース
Google Kubernetes Engine でのマルチテナント ロギング
GKE クラスタのマルチテナント ロギングを構成する方法について説明します。
ロギング
GKE
マルチテナント
ユースケース
ユースケース
ログバケットを使用したプロジェクト ログのリージョナライズ
指定したリージョンにログデータを保存する方法について説明します。
データ所在地
リージョン指定
ロギング
コードサンプル
コードサンプル
ログエントリ: 書き込み
Go、Java、Python、Node.js、C#、PHP でログエントリを書き込む方法について説明します。
コードサンプル
コードサンプル
ログエントリ: 高度な書き込み
Go、Java、Python、Node.js、C#、PHP でログエントリを書き込む方法について説明します。
コードサンプル
コードサンプル
ログエントリ: リスト
Go、Java、Python、Node.js、C#、PHP でログエントリのリストを取得する方法について説明します。
コードサンプル
コードサンプル
ログ: 削除
Go、Java、Python、Node.js、C#、PHP のログエントリを削除する方法について説明します。
コードサンプル
コードサンプル
Go 用の Cloud Logging の設定
Python を使用して VM インスタンスを作成します。
コードサンプル
コードサンプル
その他のサンプル
その他のロギング固有のサンプル
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-08-01 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["わかりにくい","hardToUnderstand","thumb-down"],["情報またはサンプルコードが不正確","incorrectInformationOrSampleCode","thumb-down"],["必要な情報 / サンプルがない","missingTheInformationSamplesINeed","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-08-01 UTC。"],[],[],null,["# Cloud Logging documentation\n===========================\n\n[Read product documentation](/logging/docs/overview) **Cloud Logging** is a fully managed service that allows you to\nstore, search, analyze, monitor, and alert on logging data and events from\nGoogle Cloud and Amazon Web Services. Using\n[Bindplane](https://bindplane.com/google),\nyou can also collect this data from over 80 additional applications,\non-premises systems, and hybrid cloud systems.\n\nLogging includes storage for logs through\n[log buckets](/logging/docs/buckets), a user interface called the\n[Logs Explorer](/logging/docs/view/logs-viewer-interface), and\n[an API](/logging/docs/reference/api-overview) to manage logs programmatically.\nLogging lets you read and write log entries, query your logs, and control how you\nroute and use your logs.\n[Get started for free](https://console.cloud.google.com/freetrial) \n\n#### Start your proof of concept with $300 in free credit\n\n- Get access to Gemini 2.0 Flash Thinking\n- Free monthly usage of popular products, including AI APIs and BigQuery\n- No automatic charges, no commitment \n[View free product offers](/free/docs/free-cloud-features#free-tier) \n\n#### Keep exploring with 20+ always-free products\n\n\nAccess 20+ free products for common use cases, including AI APIs, VMs, data warehouses,\nand more.\n\nDocumentation resources\n-----------------------\n\nFind quickstarts and guides, review key references, and get help with common issues. \nformat_list_numbered\n\n### Guides\n\n-\n\n [Quickstart: Write and query log entries with the gcloud CLI](/logging/docs/write-query-log-entries-gcloud)\n\n-\n\n [Quickstart: Write and query log entries using a Python script](/logging/docs/write-query-log-entries-python)\n\n-\n\n [Using the Logs Explorer](/logging/docs/view/logs-viewer-interface)\n\n-\n\n [Logging query language](/logging/docs/view/logging-query-language)\n\n-\n\n [Building queries](/logging/docs/view/building-queries)\n\n-\n\n [Log Router overview](/logging/docs/routing/overview)\n\n-\n\n [About the Ops Agent](/logging/docs/agent/ops-agent)\n\n-\n\n [Log-based metrics](/logging/docs/logs-based-metrics)\n\n-\n\n [More guides](/logging/docs/overview)\n\nfind_in_page\n\n### Reference\n\n-\n\n [REST API](/logging/docs/reference/v2/rest)\n\n-\n\n [RPC API](/logging/docs/reference/v2/rpc)\n\n-\n\n [Logging Client Libraries](/logging/docs/reference/libraries)\n\n-\n\n [Command-line interface](/logging/docs/reference/tools/gcloud-logging)\n\n-\n\n [Monitored resources and services](/logging/docs/api/v2/resource-list)\n\n-\n\n [Introduction to the Cloud Logging API v2](/logging/docs/reference/api-overview)\n\n-\n\n [More references](/logging/docs/reference)\n\ninfo\n\n### Resources\n\n-\n\n [Quotas and limits](/logging/quotas)\n\n-\n\n [Release notes](/logging/docs/release-notes)\n\n-\n\n [Pricing](https://cloud.google.com/stackdriver/pricing)\n\n-\n\n [More resources](/logging/quotas)\n\nRelated resources\n-----------------\n\nTraining and tutorials \nUse cases \nCode samples \nExplore self-paced training, use cases, reference architectures, and code samples with examples of how to use and connect Google Cloud services. Training \nTraining and tutorials\n\n### Monitoring and logging for Cloud Functions\n\n\nThis hands-on lab shows you how to view your Cloud Run functions with\ntheir execution times, execution counts, and memory usage in the Google Cloud console. These metrics are also available in Cloud Monitoring.\n\n\n[Learn more](https://www.cloudskillsboost.google/catalog_lab/1110) \nTraining \nTraining and tutorials\n\n### Creating and alerting on logs-based metrics\n\n\nThis hands-on lab shows you how to use both system and user-defined\nlogs-based metrics to create charts and alerting policies.\n\n\n[Learn more](https://www.cloudskillsboost.google/catalog_lab/753) \nTraining \nTraining and tutorials\n\n### Security and access analytics\n\n\nThis tutorial shows how to export logs from Logging to BigQuery to meet the security and analytics requirements of your\norganization's cloud infrastructure environment.\n\n\n[Learn more](/solutions/exporting-stackdriver-logging-for-security-and-access-analytics) \nUse case \nUse cases\n\n### Storing your organization's logs in a log bucket\n\n\nLearn how to store your organization's logs in a single source.\n\nLogging Logs Buckets\n\n\u003cbr /\u003e\n\n[Learn more](/logging/docs/central-log-storage) \nUse case \nUse cases\n\n### Multi-tenant logging on Google Kubernetes Engine.\n\n\nLearn how to configure multi-tenant logging for GKE clusters.\n\nLogging GKE Multi-tenant\n\n\u003cbr /\u003e\n\n[Learn more](/stackdriver/docs/solutions/gke/multi-tenant-logging) \nUse case \nUse cases\n\n### Regionalizing your project's logs using log buckets\n\n\nLearn how to store your logs data in a designated region.\n\nData residency Regionalization Logging\n\n\u003cbr /\u003e\n\n[Learn more](/logging/docs/regionalized-logs) \nCode sample \nCode Samples\n\n### Log Entries: Write\n\n\nLearn how to write log entries in Go, Java, Python, Node.js, C#, and PHP\n\n\n[Get started](/logging/docs/samples/logging-write-log-entry) \nCode sample \nCode Samples\n\n### Log Entries: Advanced Write\n\n\nLearn how to write log entries in Go, Java, Python, Node.js, C#, and PHP\n\n\n[Get started](/logging/docs/samples/logging-write-log-entry-advanced) \nCode sample \nCode Samples\n\n### Log Entries: List\n\n\nLearn how to list log entries in Go, Java, Python, Node.js, C#, and PHP\n\n\n[Get started](/logging/docs/samples/logging-list-log-entries) \nCode sample \nCode Samples\n\n### Logs: Delete\n\n\nLearn how to delete log entries in Go, Java, Python, Node.js, C#, and PHP\n\n\n[Get started](/logging/docs/samples/logging-delete-log) \nCode sample \nCode Samples\n\n### Setting up Cloud Logging for Go\n\n\nCreate a VM instance with Python\n\n\n[Get started](/logging/docs/setup/go) \nCode sample \nCode Samples\n\n### More samples\n\n\nMore logging-specific samples\n\n\n[Learn more](/logging/docs/samples)\n\nRelated videos\n--------------"]]