amplify-education / serverless-log-forwarding

Serverless plugin for forwarding CloudWatch logs to another Lambda function.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Log forwarding is not working on manually created log groups

sema4-fgulmammadli opened this issue · comments

I have this configuration in my serverless,yaml:

provider:
  name: aws
  runtime: nodejs14.x

plugins:
  - serverless-log-forwarding

custom:
  logForwarding:
    destinationARN: <arn to lambda>

resources:
  Resources:
    MyCustomLogGroup:
      Type: AWS::Logs::LogGroup
      Properties:
        LogGroupName: MyCustomLogGroup
        RetentionInDays: 90

I can succesfully deploy this to aws but I cant see the lambda in subscription filter of log group.
Does the plugin work only on automatically created log groups from functions?