Skip to content

Trigger a lambda based on logstream creation

0

requirement is to trigger a lambda function based on a new log stream created in one of the log groups in cloudwatch. CloudWatch does not provide a built-in event for the creation of new log streams directly. How can I achieve this with minimal cost involved

1 Answer
0

Hi,

I think a cloudwatch subscription filter should fit the use-case you are trying to achieve. Also, please refer to this blog, you should be able to implement something similar i.e. trigger your Lambda function for every new log stream created in a log group.

Thanks, Rama

AWS
EXPERT
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.