Overview
Use a project-specific drain key for this endpoint. Squasher accepts both regular data batches and
CloudWatch control messages used during subscription setup.
Prerequisites
- A Squasher project ID
- A Squasher drain key or log connector key for that project
- Access to create or update a CloudWatch Logs subscription filter
- A delivery step that can POST the CloudWatch subscription event body to Squasher
Endpoint URL
Authentication
Send your drain key in thex-squasher-key header on every request.
Payload Format
CloudWatch Logs wraps subscription batches in anawslogs.data field. That value is a base64-encoded, gzip-compressed JSON document.
Setup Steps
1
Create or reuse your delivery target
Use the Lambda, collector, or forwarding step that will POST the CloudWatch subscription event body to Squasher.
2
Create the subscription filter in AWS
In CloudWatch > Log groups, open the log group you want to forward, choose Subscription filters, and create a filter for the log patterns you want to ship.
3
Forward the event body to Squasher
Configure your delivery target to send the subscription event body unchanged to the AWS drain endpoint and include the
x-squasher-key header.Working cURL Example
Use this example to verify the endpoint before wiring AWS delivery.202 Accepted.