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
Number of subscriptions per page. Default 50, maximum 250.
Headers
Bearer $TOKEN
Returns a paginated list of log group subscription overrides.
Response body
Response attributes
The ID of the log group subscription override.
The resource type, always aws_log_group_subscription.
The AWS region of the log group, for example us-east-1.
The name of the CloudWatch log group.
Whether Better Stack ingests the log group.
When the override was created, as an ISO 8601 date-time in UTC.
When the override was last updated, as an ISO 8601 date-time in UTC.
URL of the first page. Read more about pagination.
URL of the last page.
URL of the previous page, or null on the first page.
URL of the next page, or null on the last page.
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
Returns the log group subscription override.
Response body
The source has no subscription override with the given ID.
Response body
Response attributes
The ID of the log group subscription override.
The resource type, always aws_log_group_subscription.
The AWS region of the log group, for example us-east-1.
The name of the CloudWatch log group.
Whether Better Stack ingests the log group.
When the override was created, as an ISO 8601 date-time in UTC.
When the override was last updated, as an ISO 8601 date-time in UTC.
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.