Published Jun 19, 2025
[
 
]
A CloudWatch Logs subscription filter allows you to stream log data in real time from CloudWatch Logs to other services like:
/aws/lambda/my-function
).aws logs put-subscription-filter \
--log-group-name "/aws/lambda/my-function" \
--filter-name "MySubscription" \
--filter-pattern "" \
--destination-arn "arn:aws:lambda:region:account-id:function:my-function" \
--role-arn "arn:aws:iam::account-id:role/CloudWatchLogsToLambdaRole"
filter-pattern ""
means forward all logs.logs:PutSubscriptionFilter
and invoke permissions on the Lambda.