Find your next open-source project

Search by name, purpose, or keyword — or paste a GitHub repository URL
All skills

cloud-logging-query-generation

Write a ready-to-paste Logging Query Language query for Google Cloud Logging from your plain-language request.

  • Part of google/skills
  • 7.4k installs
  • DevOps & Self-hosting · Monitoring

When to use it

You have a vague symptom like errors in Cloud Run or a GCE instance and need a working Cloud Logging filter to paste into the Logs Explorer.

For example

You say

Use cloud-logging-query-generation to write an LQL query for 500 errors from my Cloud Run service named checkout-api in the last hour.

You get
  • LQL query with resource.type and log_id
  • Severity and time filters

How it works

  • Uses placeholders like <PROJECT_ID> instead of asking you for missing details, and drops optional filters so logs aren't missed.
  • Looks up the correct resource.type per service rather than guessing, and falls back to SEARCH() with a comment when the schema is unknown.
  • For audit or admin log requests, builds protoPayload filters and uses scoped SEARCH() for guessed method names.