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 thex-squasher-key header on every request.
Payload Format
The GCP drain accepts batched entries and direct single-entry requests.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.202 Accepted.