Is it possible to subscribe the cloud watch logs of a function to a lambda, with a filter?
Or, does it have to be done via the events of the lambda function that they will be subscribed too?
The lambda function that the logs are being subscribed too exist in another serverless project. Currently i’m adding an event like this in that project on the function:
- cloudwatchLog:
logGroup: “/aws/lambda/my_log_group”
filter: “MY_FILTER”
But, i would like that to live with the actual function that creates “my_log_group”
thanks