Skip to content

Conversation

cmavromichalis
Copy link

@cmavromichalis cmavromichalis commented Sep 22, 2025

Related to #165

It looks like filterName and filterPattern are stubbed out to be SumoLGLBDFilter and an empty string respectively in the function createSubscriptionFilter in loggroup-lambda-connector/src/loggroup-lambda-connector.js.

I think this was done because PutSubscriptionFilter requires these arguments.

I would like a way to set filterName and filterPattern to something other than what is hard coded here. I think we can do this the same way LOG_GROUP_PATTERN or LOG_GROUP_TAGS is provided.

My changes are an attempt to move the hard coded values into parameters so they can be overridden if desired.

I would appreciate help and guidance with this.

@cmavromichalis cmavromichalis requested a review from a team as a code owner September 22, 2025 20:31
Comment on lines +202 to +203
var filterName = env.FILTER_NAME
var filterPattern = env.FILTER_PATTERN
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if these should also be validated with validateRegex or validated a different way?

Comment on lines +115 to +116
var filterName = process.env.FILTER_NAME
var filterPattern = process.env.FILTER_PATTERN
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if these should also be validated with validateRegex or validated a different way?

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

Successfully merging this pull request may close these issues.

1 participant