Skip to main content

Add your description here

Project description

gcp-log-hit-checker

Checks a list of GCP Cloud Logging filter patterns and reports whether each had any hits in the last 30 days. Patterns are checked in parallel and results are printed as tab-separated values to stdout.

Installation

uv tool install .

Usage

gcp-log-hit-checker <patterns-file> [--project <gcp-project-id>] [--since <duration>]
  • --project — GCP project ID, defaults to your active gcloud config project
  • --since — how far back to search; accepts m (minutes), h (hours), d (days), w (weeks). Default: 30d

Patterns file

One Cloud Logging filter per line. Lines starting with # are ignored.

# Check specific endpoints
httpRequest.requestUrl=~"api/v1/.*/orders"
severity=ERROR resource.type="gce_instance"

Output

Tab-separated to stdout: <emoji>\t<pattern>\t<last-hit-timestamp>

✅	httpRequest.requestUrl=~"api/v1/.*/orders"	2026-01-15 10:23:45+00:00
❌	severity=ERROR resource.type="gce_instance"

Ctrl+C prints a partial summary of completed checks before exiting.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gcp_log_hit_checker-0.1.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gcp_log_hit_checker-0.1.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file gcp_log_hit_checker-0.1.0.tar.gz.

File metadata

  • Download URL: gcp_log_hit_checker-0.1.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.24 {"installer":{"name":"uv","version":"0.9.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for gcp_log_hit_checker-0.1.0.tar.gz
Algorithm Hash digest
SHA256 14fe2da7389d43a59d354d1981320cd6549ceb03601df5196684fb70fb774fec
MD5 03e912507c55d7ee5c5a12714a79868d
BLAKE2b-256 d74a11afca7b120b56d5bd0bf6c474dd57bffe9180d9fe2ac8ac8aa562d44a7f

See more details on using hashes here.

File details

Details for the file gcp_log_hit_checker-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: gcp_log_hit_checker-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.24 {"installer":{"name":"uv","version":"0.9.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for gcp_log_hit_checker-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9dad26dca2e4a317f7bfdea583c1ac96839e8c9de1a031f28cf2adc9126b1138
MD5 7b4e2e2db4e41e90c7f3a33644f2163e
BLAKE2b-256 0d1f9f769f2e930b8b6b886b3db3139354d05cbdaa71a6d34c5a9a3aaa2cfcb5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page