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

How to get rid of AWS CloudWatch SubscriptionFilters like DD_LOG_SUBSCRIPTION_FILTER_XYZ #835

Open
MarkusSintonen opened this issue Aug 12, 2024 · 0 comments

Comments

@MarkusSintonen
Copy link

Describe what happened:
Our Lambdas all have CloudWatch SubscriptionFilters having names like DD_LOG_SUBSCRIPTION_FILTER_XYZ. We want to get rid of these as we are using Datadog Extension for getting the metrics (as recommended). These unnecessary SubscriptionFilters also cause issues with the very strict limit of 2 for SubscriptionFilters counts. This causes issues with pre existing SubscriptionFilters.

These DD_LOG_SUBSCRIPTION_FILTER_XYZ SubscriptionFilters seem to be coming from our AWS account level settings which have been configured via CloudFormation template from Datadog:

    new CfnStack(this, 'DatadogForwarderStack', {
      templateUrl: `https://datadog-cloudformation-template.s3.amazonaws.com/aws/forwarder/3.83.0.yaml`,
      parameters: {
        DdApiKey: 'USE_ARN',
        DdApiKeySecretArn: 'foobar',
        DdForwardLog: 'false', // We don't want to actually send logs to Datadog, just custom metrics
      },
    });

However we can not totally remove this as some of our Lambdas inside the account still use the legacy logs based metrics. But how do we omit certain Lambdas from getting polluted by these DD_LOG_SUBSCRIPTION_FILTER_XYZ?

Describe what you expected:
To be able to remove Datadog created SubscriptionFilters.

Steps to reproduce the issue:

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

1 participant