Connect your AWS account first
These endpoints apply to aws sources with an AWS account connected. See Connect source to your AWS account.
Control which Amazon CloudWatch log groups Better Stack ingests for an aws source. These endpoints manage per-log-group subscription overrides. To subscribe every newly discovered log group automatically, set aws_auto_sub_log_groups when you update the source.
These endpoints apply to aws sources with an AWS account connected. See Connect source to your AWS account.
An override records the desired state for one log group, identified by its region and name. Set subscribed to true to ingest the log group or false to skip it. An override takes precedence over the source's auto-subscribe setting, and you can create one before the log group is discovered. Delete the override to return the log group to automatic behavior.
Returns the log group subscription overrides for an aws source.
URL parameters
ID of the aws source
Query parameters
Page number
The number of subscriptions per page (max 50)
Headers
Bearer $TOKEN
Response body
Creates an override that subscribes or unsubscribes one log group.
URL parameters
ID of the aws source
Headers
Bearer $TOKEN
Body parameters
AWS region of the log group, for example us-east-1.
Name of the CloudWatch log group, for example /aws/lambda/checkout.
Whether to ingest this log group. Set to true to subscribe or false to skip it.
The subscription override was created.
Response body
An override already exists for this region and log group name.
Response body
Returns one log group subscription override.
URL parameters
ID of the aws source
ID of the log group subscription override
Headers
Bearer $TOKEN
Response body
The source has no subscription override with the given ID.
Response body
Subscribes or unsubscribes an existing override.
URL parameters
ID of the aws source
ID of the log group subscription override
Headers
Bearer $TOKEN
Body parameters
Whether to ingest this log group. Set to true to subscribe or false to skip it.
The subscription override was updated.
Response body
The source has no subscription override with the given ID.
Response body
Removes the override and returns the log group to automatic behavior.
URL parameters
ID of the aws source
ID of the log group subscription override
Headers
Bearer $TOKEN
The subscription override was deleted.
The source has no subscription override with the given ID.
Response body
We use cookies to authenticate users, improve the product user experience, and for personalized ads. Learn more.