[{"data":1,"prerenderedAt":56},["ShallowReactive",2],{"pattern-cloudwatch-logs-subscription-lambda-sam":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":10,"deploy":12,"description":15,"extension":16,"framework":17,"gitHub":18,"highlight":6,"introBox":24,"language":29,"level":30,"meta":31,"patternArch":32,"resources":46,"s3URL":6,"services":6,"stem":51,"testing":52,"videoId":6,"__hash__":55},"patterns\u002Fpatterns\u002Fcloudwatch-logs-subscription-lambda-sam.json","Amazon CloudWatch Logs Subscription to AWS Lambda with AWS SAM",null,{"text":8},[9],"Delete the stack: \u003Ccode>sam delete\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Fomar-rosadio.json",{"text":13},[14],"sam deploy","Create a CloudWatch Logs Subscription Filter to Lambda function with SAM","json","AWS SAM",{"template":19},{"repoURL":20,"templateURL":21,"projectFolder":22,"templateFile":23},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fcloudwatch-logs-subscription-lambda-sam","serverless-patterns\u002Fcloudwatch-logs-subscription-lambda-sam","cloudwatch-logs-subscription-lambda-sam","template.yaml",{"headline":25,"text":26},"How it works",[27,28],"This sample project demonstrates how to create a Subscription Filter in Cloudwath Logs with Lambda as a log receiver.","The AWS SAM template deploys the resources and the IAM permissions required to run the application.","Node.js","200",{},{"icon1":33,"icon2":38,"line1":42},{"x":34,"y":35,"service":36,"label":37},20,50,"lambda","AWS Lambda",{"x":39,"y":35,"service":40,"label":41},80,"cloudwatch","Amazon CloudWatch",{"from":43,"to":44,"label":45},"icon1","icon2","",{"bullets":47},[48],{"text":49,"link":50},"CloudWatch Logs Subscription Filters","https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002Flogs\u002FSubscriptionFilters.html","patterns\u002Fcloudwatch-logs-subscription-lambda-sam",{"text":53},[54],"See the GitHub repo for detailed testing instructions.","BPn555jgpdSqgxLANIX8ygAhZRd7io9lRtBL8sSxgdg",1778846883904]