gcp-logs

Query and filter Cloud Logging data across GCP projects using gcloud logging read.

10|4|Updated Feb 1, 2026
One-click install
npx skills add https://github.com/kubony/openclaw-gcp-setup --skill gcp-logs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gcp-logs
Source: https://github.com/kubony/openclaw-gcp-setup/tree/main/.claude/skills/gcp-logs
Command: npx skills add https://github.com/kubony/openclaw-gcp-setup --skill gcp-logs

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Cloud environments generate vast amounts of logs across VMs, serverless services, and Kubernetes. This Skill provides an easy way to query and filter Cloud Logging data across GCP projects, enabling rapid troubleshooting and health monitoring.

Core Features & Use Cases

  • View recent logs from multiple resources (VMs, Cloud Run, Cloud Functions, GKE) with simple commands.
  • Filter by severity, time window, and resource type to pinpoint errors and performance issues.
  • Practical use case: identify the latest error events for a specific service and export a concise report for on-call teams.

Quick Start

Use the gcp-logs skill to fetch recent logs with /gcp-logs. To narrow to errors, run /gcp-logs errors. To target a specific VM, run /gcp-logs my-vm.

Frequently Asked Questions about gcp-logs

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I query GCP Cloud Logging data across multiple projects?

To query GCP Cloud Logging data, you can use commands to filter logs across VMs, Cloud Run, Cloud Functions, and Kubernetes by applying severity filters, time ranges, and resource-specific queries.

How do I filter Cloud Run logs by severity and time window?

You can filter Cloud Run logs by applying severity filters and time ranges to pinpoint errors and performance issues across your serverless services.

Can I use gcloud logging read to extract Kubernetes logs in JSON format?

Yes, you can use gcloud logging read with standard Cloud Logging permissions to extract Kubernetes logs and output results in table or JSON formats.

Do I need special permissions to view GCP logs for VMs and serverless services?

You need standard Cloud Logging permissions to view GCP logs across VMs, Cloud Run, Cloud Functions, and Kubernetes resources.

What's the best way to identify recent error events for a specific GCP service?

The best way to identify recent error events is to filter Cloud Logging data by severity and resource type, then export a concise report for on-call teams.

Why are my GCP logs not showing up when I query across projects?

GCP logs may not show up if you lack standard Cloud Logging permissions or if your query filters do not match the target resource types, time ranges, or severity levels.