-
Notifications
You must be signed in to change notification settings - Fork 4k
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-logs): support FieldIndexPolicies in LogGroup construct #33366
Labels
@aws-cdk/aws-logs
Related to Amazon CloudWatch Logs
effort/small
Small work item – less than a day of effort
feature-request
A feature should be added or improved.
open-for-community-contribution
We are welcoming community contributions for this one
p3
Comments
Hi @yashkh-amzn , thanks for requesting this. Since there is L1 support available for this property for cloudwatch logs , please feel free to submit a PR. Thanks. |
1 task
mergify bot
pushed a commit
that referenced
this issue
Mar 5, 2025
…uct (#33416) ### Issue # (if applicable) #33366 Closes #33366 ### Reason for this change Field Indexing for CloudWatch Logs (CWL) was launched in Nov 2024. A lot of CWL customers are asking for indexing support in L2 construct. This feature will enable that property under FieldIndexPolicies as a JSON object in the LogGroup construct. ### Description of changes The change here is just populating the `fieldIndexPolicies` property of the LogGroup CFN with the list of fields provided by the user. The format of this property will be like this: ``` const fieldIndexPolicy = new FieldIndexPolicy({ fields: ['Operation', 'RequestId'], }); new LogGroup(this, 'LogGroupLambda', { dataProtectionPolicy: dataProtectionPolicy, fieldIndexPolicies: [fieldIndexPolicy], }); ``` ### Describe any new or updated permissions being added No new permissions have been added. ### Description of how you validated changes Added unit tests. Will add integ tests after getting a confirmation from the CDK team on the implementation. ### Checklist - [X] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Comments on closed issues and PRs are hard for our team to see. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
@aws-cdk/aws-logs
Related to Amazon CloudWatch Logs
effort/small
Small work item – less than a day of effort
feature-request
A feature should be added or improved.
open-for-community-contribution
We are welcoming community contributions for this one
p3
Describe the feature
Field Indexing for CloudWatch Logs was launched in Nov 2024. This feature will enable that property under FieldIndexPolicies as a JSON object in the LogGroup construct.
Use Case
Amazon CloudWatch Logs introduces field indexes and enhanced log group selection to accelerate log analysis for faster troubleshooting, and easier identification of trends. A user can create up to 20 field indexes per log group, and once defined, all future logs matching the defined fields will remain indexed for up to 30 days.
Proposed Solution
No response
Other Information
No response
Acknowledgements
CDK version used
2.178.1
Environment details (OS name and version, etc.)
Mac OS Sonoma v14.6.1
The text was updated successfully, but these errors were encountered: