gcp-logs

Query GCP Cloud Logging for errors using gcloud and jq filters.

10|2|Updated Dec 23, 2025
One-click install
npx skills add https://github.com/eveld/claude --skill gcp-logs-eveld
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gcp-logs
Source: https://github.com/eveld/claude/tree/main/skills/gcp-logs
Command: npx skills add https://github.com/eveld/claude --skill gcp-logs-eveld

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Queries and analyzes GCP Cloud Logging to identify errors, traces, and service behavior, helping operators quickly diagnose incidents.

Core Features & Use Cases

  • Targeted log queries: filter by severity, resource labels, and time ranges to surface relevant events.
  • Two-stage filtering: combine broad gcloud queries with post-processing (jq) to handle nested JSON payloads.
  • Cross-service context: correlate logs across Kubernetes, Cloud Run, and Compute Engine to understand incident scope.

Quick Start

Query logs for recent errors in your GCP services within a chosen time window.

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 to diagnose errors in Kubernetes and Cloud Run?

Query GCP Cloud Logging to diagnose errors by filtering log entries using severity, resource labels, and time ranges. This surfaces relevant traces and correlations across Kubernetes, Cloud Run, and Compute Engine to identify incident scope.

What is the best way to filter deep-nested JSON payloads in gcloud logging read?

The best way to filter deep-nested JSON payloads is a two-stage filtering approach. It combines broad gcloud logging read queries with post-processing using jq to extract and analyze values from complex nested log structures.

Can I correlate logs across Compute Engine and Cloud Run to understand an incident?

You can correlate logs across Compute Engine and Cloud Run by applying targeted queries on resource labels and severity. This cross-service context helps operators quickly understand the full scope and behavior of an incident.

Do I need to know gcloud logging read filters to find relevant traces in GCP?

You need familiarity with gcloud logging read, filters on resource labels, and JSON formatting to find relevant traces. These filters are required to target specific log entries and surface meaningful correlations across GCP services.

Why are my gcloud logging read queries returning too many irrelevant entries?

Irrelevant entries often result from broad queries lacking severity and time range constraints. Applying two-stage filtering with specific resource labels and post-processing with jq narrows results to meaningful traces and errors.

Does this approach work for diagnosing performance issues across all GCP resources?

This approach works for diagnosing performance issues across Kubernetes, Cloud Run, and Compute Engine resources. It identifies and retrieves relevant log entries by focusing on error severity and time ranges to surface meaningful traces.