Skip to content

[AWS] add support to include linked accounts when using log name prefix to select log groups #11484

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

Conversation

Kavindu-Dodan
Copy link
Contributor

@Kavindu-Dodan Kavindu-Dodan commented Oct 21, 2024

Proposed commit message

Adds support to include linked accounts when using Log Group Name Prefix to select the desired log groups to monitor.

The boolean option Include Linked Accounts with prefix is disabled by default and internally maps to filebeat input include_linked_accounts_for_prefix_mode.

Checklist

  • I have reviewed tips for building integrations and this pull request is aligned with them.
  • I have verified that all data streams collect metrics or logs.
  • I have added an entry to my package's changelog.yml file.
  • I have verified that Kibana version constraints are current according to guidelines.
  • I have verified that any added dashboard complies with Kibana's Dashboard good practices

Related issues

Screenshots

image

@Kavindu-Dodan Kavindu-Dodan added enhancement New feature or request Team:obs-ds-hosted-services Observability Hosted Services team [elastic/obs-ds-hosted-services] labels Oct 21, 2024
@elastic-vault-github-plugin-prod
Copy link

elastic-vault-github-plugin-prod bot commented Oct 21, 2024

🚀 Benchmarks report

Package aws 👍(9) 💚(8) 💔(2)

Expand to view
Data stream Previous EPS New EPS Diff (%) Result
route53_public_logs 19607.84 14084.51 -5523.33 (-28.17%) 💔
waf 7194.24 5813.95 -1380.29 (-19.19%) 💔

To see the full report comment with /test benchmark fullreport

@Kavindu-Dodan Kavindu-Dodan force-pushed the feat/aws-linked-accounts-for-prefix-mode branch 3 times, most recently from dd5efc3 to 689e5fc Compare October 24, 2024 17:03
@Kavindu-Dodan Kavindu-Dodan force-pushed the feat/aws-linked-accounts-for-prefix-mode branch 4 times, most recently from 03a1d8b to 6d8b3f8 Compare November 4, 2024 20:43
@Kavindu-Dodan Kavindu-Dodan force-pushed the feat/aws-linked-accounts-for-prefix-mode branch from 6d8b3f8 to f3be5ec Compare November 7, 2024 16:39
@Kavindu-Dodan Kavindu-Dodan marked this pull request as ready for review November 7, 2024 16:39
@Kavindu-Dodan Kavindu-Dodan requested review from a team as code owners November 7, 2024 16:39
@Kavindu-Dodan Kavindu-Dodan changed the title [Draft] [AWS] add support to include linked accounts when using log name prefix to select log groups [AWS] add support to include linked accounts when using log name prefix to select log groups Nov 7, 2024
@andrewkroh andrewkroh added Team:Obs-InfraObs Observability Infrastructure Monitoring team [elastic/obs-infraobs-integrations] Team:Security-Service Integrations Security Service Integrations team [elastic/security-service-integrations] labels Nov 7, 2024
@elasticmachine
Copy link

Pinging @elastic/security-service-integrations (Team:Security-Service Integrations)

@Kavindu-Dodan Kavindu-Dodan marked this pull request as draft November 7, 2024 17:15
@Kavindu-Dodan Kavindu-Dodan force-pushed the feat/aws-linked-accounts-for-prefix-mode branch from f3be5ec to 2511dba Compare November 14, 2024 18:00
@Kavindu-Dodan Kavindu-Dodan marked this pull request as ready for review November 14, 2024 18:01
@Kavindu-Dodan Kavindu-Dodan force-pushed the feat/aws-linked-accounts-for-prefix-mode branch from 2511dba to 0f2102c Compare November 14, 2024 18:02
@Kavindu-Dodan Kavindu-Dodan enabled auto-merge (squash) November 20, 2024 20:37
@Kavindu-Dodan Kavindu-Dodan force-pushed the feat/aws-linked-accounts-for-prefix-mode branch from 60c99ef to 7c72aed Compare November 22, 2024 16:19
@agithomas
Copy link
Contributor

agithomas commented Nov 25, 2024

Could we consider adding details of this flag in the README, such as at here, the dependency of log_group_name_prefix on include_linked_accounts_with_prefix ?

@Kavindu-Dodan Kavindu-Dodan force-pushed the feat/aws-linked-accounts-for-prefix-mode branch from 7c72aed to d0b2f1a Compare November 25, 2024 19:12
@Kavindu-Dodan
Copy link
Contributor Author

Could we consider adding details of this flag in the README, such as at here, the dependency of log_group_name_prefix on include_linked_accounts_with_prefix ?

Good point. See this commit - d0b2f1a . I added a small section on logs :) Hope this is sufficient, but else let me know

@Kavindu-Dodan Kavindu-Dodan force-pushed the feat/aws-linked-accounts-for-prefix-mode branch from d0b2f1a to 5956563 Compare November 25, 2024 19:29
Copy link
Contributor

@agithomas agithomas left a comment

Choose a reason for hiding this comment

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

LGTM!

@Kavindu-Dodan Kavindu-Dodan force-pushed the feat/aws-linked-accounts-for-prefix-mode branch from 5956563 to 6e233c7 Compare November 27, 2024 15:15
@elasticmachine
Copy link

💚 Build Succeeded

History

  • 💚 Build #18681 succeeded 59565636a2e5982bea821d9cb4f4f9add53cff06
  • 💔 Build #18680 failed d0b2f1a00a2d7d3b5c68b84f94ced65719bf3a0d
  • 💚 Build #18616 succeeded 7c72aed02b500b8e9c55c5ef3f1d25a3a0bdd46c
  • 💚 Build #18519 succeeded 60c99efc14168c43cc4808e3476bebf30d355717
  • 💚 Build #18348 succeeded 0f2102c26b7bb28b72ee3988ded5e3f0ccf9f819
  • 💚 Build #18028 succeeded f3be5ec2f3c8f38eb7805d90da74c56e40a47f6e

@Kavindu-Dodan Kavindu-Dodan merged commit 57a1300 into elastic:main Nov 27, 2024
3 checks passed
Copy link

@elastic-vault-github-plugin-prod

Package aws - 2.33.0 containing this change is available at https://epr.elastic.co/package/aws/2.33.0/

@elastic-vault-github-plugin-prod

Package aws_bedrock - 0.14.0 containing this change is available at https://epr.elastic.co/package/aws_bedrock/0.14.0/

@elastic-vault-github-plugin-prod

Package aws_logs - 1.5.0 containing this change is available at https://epr.elastic.co/package/aws_logs/1.5.0/

@Kavindu-Dodan Kavindu-Dodan deleted the feat/aws-linked-accounts-for-prefix-mode branch November 27, 2024 18:43
harnish-crest-data pushed a commit to chavdaharnish/integrations that referenced this pull request Feb 4, 2025
…ix to select log groups (elastic#11484)

* add support to include linked accounts when using log name prefix

Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co>

add changelog link

Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co>

trigger build

# Conflicts:
#	packages/aws/changelog.yml

# Conflicts:
#	packages/aws/changelog.yml
#	packages/aws_logs/changelog.yml
#	packages/aws_logs/manifest.yml

* Update packages/aws/changelog.yml

Co-authored-by: kaiyan-sheng <kaiyan.sheng@elastic.co>

* Update packages/aws/manifest.yml

Co-authored-by: kaiyan-sheng <kaiyan.sheng@elastic.co>

---------

Co-authored-by: kaiyan-sheng <kaiyan.sheng@elastic.co>
harnish-crest-data pushed a commit to chavdaharnish/integrations that referenced this pull request Feb 5, 2025
…ix to select log groups (elastic#11484)

* add support to include linked accounts when using log name prefix

Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co>

add changelog link

Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co>

trigger build

# Conflicts:
#	packages/aws/changelog.yml

# Conflicts:
#	packages/aws/changelog.yml
#	packages/aws_logs/changelog.yml
#	packages/aws_logs/manifest.yml

* Update packages/aws/changelog.yml

Co-authored-by: kaiyan-sheng <kaiyan.sheng@elastic.co>

* Update packages/aws/manifest.yml

Co-authored-by: kaiyan-sheng <kaiyan.sheng@elastic.co>

---------

Co-authored-by: kaiyan-sheng <kaiyan.sheng@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Integration:aws_bedrock Amazon Bedrock Integration:aws_logs Custom AWS Logs Integration:aws AWS Team:obs-ds-hosted-services Observability Hosted Services team [elastic/obs-ds-hosted-services] Team:Obs-InfraObs Observability Infrastructure Monitoring team [elastic/obs-infraobs-integrations] Team:Security-Service Integrations Security Service Integrations team [elastic/security-service-integrations]
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[AWS] Support linked accounts when using log_group_name_prefix to select log groups
6 participants