Skip to main content
Squasher can create the AWS delivery resources from one CloudFormation launch. You can also use the manual drain endpoint when you already have a delivery pipeline.

One-click CloudFormation setup

  1. In Squasher, open Integrations > AWS and select Connect AWS.
  2. Select a Region and choose account-wide logs or specific log groups.
  3. Open the generated CloudFormation launch link in the correct AWS account.
  4. Review the IAM permissions and create the stack.
  5. Return to Squasher and run the opt-in verification.
The setup link contains a short-lived, one-use token. It does not contain the durable ingest key. The stack creates an Amazon Data Firehose stream, narrow IAM roles, delivery logs, and an encrypted S3 bucket for failed delivery records. Failed records expire after seven days by default. AWS permits one account-level CloudWatch Logs subscription policy in each Region. Squasher checks that slot before setup. If another product owns it, select log groups for group-level subscription filters instead. The stack excludes its own delivery log groups to prevent a forwarding loop. See AWS documentation for account-level subscription filters and recursion prevention.
The CloudFormation stack creates billable AWS resources in your account. Review the template and AWS prices before launch. Repeat setup in each Region that contains logs you want to send.
Delete the CloudFormation stack in AWS to remove the owned AWS resources and revoke its Squasher ingest key. Squasher cannot delete a customer-owned stack from the dashboard. It does not change unrelated subscription filters or account policies.

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 the x-squasher-key header on every request.

Payload Format

CloudWatch Logs wraps subscription batches in an awslogs.data field. That value is a base64-encoded, gzip-compressed JSON document.

Manual 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.
A successful request returns 202 Accepted.

Agent handoff