Skip to main content
Squasher can create the Google Cloud log delivery path after OAuth consent and project selection. You can also use the manual drain endpoint when you already have a delivery step.

One-click setup

  1. In Squasher, open Integrations > Google Cloud and select Connect.
  2. Approve Google Cloud access and select one Google Cloud project.
  3. Review the log filter and metric scope.
  4. Confirm setup and run the opt-in verification.
Squasher creates a Pub/Sub topic and authenticated push subscription, then creates a Cloud Logging sink for the selected filter. It grants only the sink writer identity permission to publish to that topic. Squasher reads Cloud Monitoring metrics with read-only monitoring access. The Google OAuth application must be configured for public use. The connecting identity needs access to create Logging sinks and Pub/Sub resources and to change the topic policy. Google can require app verification before users outside the app’s test-user list can connect. Squasher verifies the Google-signed identity token on each Pub/Sub push. Disconnect removes only the sink, subscription, topic, and grants recorded for this connection. See Google Cloud’s log sink and Pub/Sub permission guide.
Google Cloud can charge for Pub/Sub delivery, Cloud Monitoring API use, and related telemetry. Review the selected log filter before you enable a high-volume project.

Overview

Send the Cloud Logging JSON body from your forwarder or delivery step. Squasher accepts either an entries array or a single top-level log entry.

Prerequisites

  • A Squasher project ID
  • A Squasher drain key or log connector key for that project
  • Access to create or update a Cloud Logging sink or Logs Router filter
  • A delivery step that can POST Cloud Logging JSON to Squasher

Endpoint URL

Authentication

Send your drain key in the x-squasher-key header on every request.

Payload Format

The GCP drain accepts batched entries and direct single-entry requests.

Manual setup steps

1

Create or update the sink

In Logging > Logs Router, create a sink or filter that selects the Cloud Logging streams you want to forward.
2

Choose the delivery step

Use the forwarding step that will POST the Cloud Logging JSON body to Squasher.
3

Send the payload to Squasher

Configure that delivery step to call the GCP drain endpoint with the x-squasher-key header and the Cloud Logging JSON body shown above.

Working cURL Example

Use this example to verify the drain before you wire in your Cloud Logging delivery flow.
A successful request returns 202 Accepted.

Agent handoff