Skip to main content
Google Cloud Documentation
Technology areas
  • AI and ML
  • Application development
  • Application hosting
  • Compute
  • Data analytics and pipelines
  • Databases
  • Distributed, hybrid, and multicloud
  • Industry solutions
  • Migration
  • Networking
  • Observability and monitoring
  • Security
  • Storage
Cross-product tools
  • Access and resources management
  • Costs and usage management
  • Infrastructure as code
  • SDK, languages, frameworks, and tools
/
Console
  • English
  • Deutsch
  • Español
  • Español – América Latina
  • Français
  • Indonesia
  • Italiano
  • Português
  • Português – Brasil
  • עברית
  • 中文 – 简体
  • 中文 – 繁體
  • 日本語
  • 한국어
Sign in
  • Cloud Logging
Start free
Overview Guides Reference Samples Resources
Google Cloud Documentation
  • Technology areas
    • More
    • Overview
    • Guides
    • Reference
    • Samples
    • Resources
  • Cross-product tools
    • More
  • Console
  • Discover
  • Cloud Logging overview
  • Try it!
    • Quickstart: Logging for Compute Engine VMs
    • Quickstart: Write and query logs with the gcloud CLI
    • Quickstart: Write and query logs using a Python script
  • Learn fundamentals
  • Log entry data model
  • Store log entries
  • Route log entries
  • Query and view log entries
  • Set org and folder defaults
  • Configure default resource settings
  • Configure CMEK for Logging
  • Use custom organization policies
  • Collect and write logs
  • Which should you use: agent or client library?
  • Structured logging
  • Collect logs from VMs and third-party applications by using the Ops Agent
    • Ops Agent overview
    • Install the Ops Agent
      • All installation methods
      • Install the Ops Agent during VM creation
      • Install and manage the Ops Agent by using VM Extension Manager policies
      • Install the Ops Agent on a fleet of VMs by using agent policies
        • Overview
        • Use agent policies (GA)
        • Use agent policies (beta)
      • Install the Ops Agent on a fleet of VMs by using automation tools
      • Install the Ops Agent on individual VMs
    • Manage the Ops Agent
      • Authorize the Ops Agent
      • Configure the Ops Agent
      • Use the Telemetry API to collect logs and metrics
      • Use log rotation for Ops Agent self logs
      • Manage VMs covered the Ops Agent OS policy
    • Collect logs from third-party applications
      • Overview
      • Active Directory Domain Services (AD DS)
      • Aerospike
      • Apache ActiveMQ
      • Apache Cassandra
      • Apache CouchDB
      • Apache Flink
      • Apache Hadoop
      • Apache HBase
      • Apache Kafka
      • Apache Solr
      • Apache Tomcat
      • Apache Web Server (httpd)
      • Apache ZooKeeper
      • Couchbase
      • Elasticsearch 7.9+
      • Elasticsearch 8.0+ and 9.0+
      • Hashicorp Vault
      • Internet Information Services
      • Jetty
      • MariaDB
      • Memcached
      • MongoDB
      • MySQL
      • nginx
      • Oracle Database
      • PostgreSQL
      • RabbitMQ
      • Redis
      • SAP HANA
      • Varnish HTTP Cache
      • WildFly
  • Collect on-premises and multi-cloud logs
  • Collect Kubernetes Engine logs
  • Write application logs
    • Logging libraries overview
    • C#: Use .NET logging frameworks or the API
    • Java: Use Logback or java.util.logging
    • Go: Use standard logging
    • Node.js: Use Winston and Bunyan
    • PHP: Use PSR-3 logger
    • Python: Use standard logging
    • Ruby: Use the Stackdriver gem
  • Control access
  • Configure a log scope
  • Access control with IAM
  • Use tags to manage access to log buckets
  • Configure field-level access on log buckets
  • Query, analyze, and view logs
  • Logs Explorer: Query and view logs
    • Logs Explorer overview
    • Build queries using the Logging query language
    • Summarize log entries with Gemini assistance
    • Correlate log entries
    • Find log entries with error groups
    • Logging query language
    • Sample queries and examples
      • Sample queries
      • Example: Detect Log4Shell security exploits
  • Observability Analytics: Query and analyze logs
    • Query and analyze logs in Observability Analytics
    • Chart SQL query results
    • Save and share SQL queries
    • Analytics views
      • About analytics views
      • Create, query, and manage analytics views
    • Sample queries and examples
      • Sample SQL queries
      • Analyze log volume
      • SQL queries for security insights
    • Analyze log data with BigQuery
      • Create a linked BigQuery dataset
      • Query log data by using BigQuery Studio
      • Run analytics queries on the BigQuery Engine
    • Monitor your SQL query results with an alerting policy
    • Data security
  • View logs in supported destinations
    • View logs routed to Logging buckets
    • View logs routed to BigQuery
    • View logs routed to Cloud Storage
    • View logs routed to Pub/Sub
  • Use the Logging MCP server
  • Use the Logging remote MCP server
  • Visualize, stream, and monitor logs
  • Visualize log severity and error metrics
  • Stream and tail log entries
  • Monitor your logs
    • Monitor your logs overview
    • Create metrics from logs
      • Log-based metrics overview
      • List and chart log-based metrics
      • Bucket-scoped log-based metrics
      • Configure counter metrics
      • Configure distribution metrics
      • Configure labels on log-based metrics