AWS::Logs::SubscriptionFilterThe AWS::Logs::SubscriptionFilter resource specifies a subscription filter and associates it with the specified log group. Subscription filters allow you to subscribe to a real-time stream of log events and have them delivered to a specific destination. Currently, the supported destinations are: + An Amazon Kinesis data stream belonging to the same account as the subscription filter, for same-account delivery. + A logical destination that belongs to a different account, for cross-ac...
9 configurable properties. 3 required. Click a row to see details.
| Property | Type | Flags |
|---|---|---|
DestinationArn | string | Required |
FilterPattern | string | Required |
LogGroupName | string | RequiredCreate-only |
ApplyOnTransformedLogs | boolean | |
Distribution | string | |
EmitSystemFields | Array<string> | |
FieldSelectionCriteria | string | |
FilterName | string | Create-only |
RoleArn | string |
A minimal template with required properties and common optional ones.
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::Logs::SubscriptionFilter
Resources:
MyResource:
Type: AWS::Logs::SubscriptionFilter
Properties:
DestinationArn: "arn:aws:service:region:account:resource"
FilterPattern: "value"
LogGroupName: "my-loggroupname"Permissions CloudFormation needs in your IAM role to manage this resource.
iam:PassRolelogs:PutSubscriptionFilterlogs:DescribeSubscriptionFilterslogs:DescribeSubscriptionFiltersiam:PassRolelogs:PutSubscriptionFilterlogs:DescribeSubscriptionFilterslogs:DeleteSubscriptionFilterlogs:DescribeSubscriptionFiltersOur bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to NewsletterFilterNameThese properties cannot be changed after the resource is created. Updating them triggers a replacement.
FilterNameLogGroupName