Prerequisites
- Permission in the Google Cloud project to create Log Router sinks and Pub/Sub topics and subscriptions.
- An ingest key and the project ID. See Create an ingest key.
Set up the drain
1
Create the sink
- In the Google Cloud console, open Log Router and select Create sink.
- Enter a Sink name. In Select sink service, choose Pub/Sub topic, and create a topic.
- In Build inclusion filter, select the entries to send, for example
severity>=WARNING. - Select Create sink. Give the sink’s writer identity permission to publish to the topic.
2
Create the push subscription
- Open Subscriptions in Pub/Sub and select Create subscription.
- Enter a Subscription ID and select the topic of the sink.
- Set Delivery type to Push, and set Endpoint URL to
https://ingest.squasher.ai/v1/drain/gcp/<project-id>?key=<your ingest key>. - Turn on Enable payload unwrapping, and leave Enable authentication off.
- Create the subscription.
What Squasher keeps from each record
ALERT, EMERGENCY, and NOTICE entries are stored at info level and create no issues. Every
entry gets the service name gcp.
Verify
- Write one entry at
ERRORseverity, for example withgcloud logging write squasher-test "Squasher test error" --severity=ERROR. - In Squasher, select Issues in the sidebar. The entry is at the top of the list.
- If nothing arrives, check the subscription’s push errors in Pub/Sub.
Let Squasher create the sink
A provider connection creates the sink, the topic, and an authenticated push subscription after you approve Google access. It also pulls Cloud Monitoring metrics. This path reads the entries more fully:- The log body is
textPayload, orjsonPayloadorprotoPayloadas JSON, not the full entry. - Squasher maps all nine Cloud Logging severities, so
ALERTandEMERGENCYalso create issues. - Resource labels, entry labels, and the trace ID become attributes.
log_filter when you select the Google Cloud project.
If the Google Cloud card on Integrations shows Manual setup, this path is not available
yet. Use the console steps instead.
Limits
- Drain records have no environment, so automatic AI triage does not run on their issues.
- Pub/Sub, Cloud Logging, and Cloud Monitoring can charge for the data that they move. Keep the inclusion filter narrow.
Next steps
Provider connections
Let Squasher create the sink from Integrations or through the API.
OpenTelemetry
Send traces and errors from Cloud Run and GKE apps.