Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AWS now supports up to 2 subscription filters per log group. #24

Open
sejba opened this issue Dec 27, 2020 · 2 comments
Open

AWS now supports up to 2 subscription filters per log group. #24

sejba opened this issue Dec 27, 2020 · 2 comments

Comments

@sejba
Copy link

sejba commented Dec 27, 2020

The plugin hard-codes only one subscription filter per log group. It also has the "stage" property just to handle this.
Is there a chance the plugin could be changed accordingly to the new AWS limits?
Thanks.

@kennedysam97
Copy link

Should be a 1-line change on line 114 to fix..

@b-tin
Copy link

b-tin commented Jul 5, 2024

Could pls help to review, update to support 2 filter subscription #31

...
functions:
  monitoring:
    handler: handler.main
    layers:
      - "${cf:create-lambda-layers-ops.BtinDashpython311DashrequestsLambdaLayerQualifiedArn}"
      - "${cf:create-lambda-layers-ops.BtinDashpython311DashmarshmallowLambdaLayerQualifiedArn}"
    timeout: 60
    tags:
      monitoring: 'true'
    events:
      - subscriptionFilter:
          stage: ops
          logGroupName: /aws/lambda/log-group
          filterPattern: '{ ($.errorCode = "pattern-1") }'
      - subscriptionFilter:
          stage: ops
          logGroupName: /aws/lambda/log-group
          filterPattern: '{ ($.eventName = "pattern-2*") }'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants