FruxonDocs

GCP Logging

Query, search, and analyze log entries across Google Cloud resources

The GCP Logging integration lets your agents search and filter log entries using the Cloud Logging query language, list available logs, enumerate monitored resource types, and inspect logs-based metrics and log sinks — against a specific Google Cloud project. For Cloud Monitoring alerting (alert policies, notification channels, snoozes), see GCP Monitoring.

Prerequisites

  • A Google Cloud project with Cloud Logging enabled (it is by default on any GCP project).
  • A Project ID from the Google Cloud Console.
  • Credentials. Either:
    • A service account key (JSON) — create it under IAM & Admin → Service Accounts → Keys and grant the Logging Viewer role.
    • Or grant the Fruxon-managed service account gcp-logs-integration-reader@fruxon.iam.gserviceaccount.com the Logging Viewer role on your project, then select the "Grant Fruxon Service Account Access" auth method — no key handling required on your side.

Setup

  1. Open Integrations from the sidebar
  2. Select GCP Logging from the catalog
  3. Click Add Integration Config
  4. Give the config a display name (e.g., "GCP Logging — Prod project").
  5. Enter the Project ID.
  6. Pick the auth method: paste a service account key, or select the Fruxon service account path.
  7. Save the config

Using in Your Agent

  1. Open your agent in Agent Studio and select an Agent Step
  2. Under Attached Integration Configurations, click Attach configuration and choose your config
  3. Attach GCP Logging tools from the tools panel
  4. Tools are referenced as gcp_logging.list_log_entries, gcp_logging.list_logs, gcp_logging.list_monitored_resources.

list_log_entries takes Cloud Logging query language — e.g., severity>=ERROR AND resource.type="cloud_run_revision" — so the agent should know the syntax or be prompted with examples.

Available Tools

ToolDescriptionAction Type
list_log_entriesSearch and filter log entries using the Cloud Logging query languageReadOnly
list_logsList the names of all logs available in the projectReadOnly
list_monitored_resourcesList monitored resource descriptors (e.g., gce_instance, cloud_run_revision, gke_container)ReadOnly
list_log_metricsList logs-based metrics defined in the projectReadOnly
get_log_metricGet a single logs-based metric by nameReadOnly
list_sinksList log sinks (exports) in the projectReadOnly
get_sinkGet a single log sink by nameReadOnly

The logs-based-metric and sink tools run under the same read scope as the rest — no extra permissions to grant.

On this page