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] Requests include loggroups from linked accounts #37681

Closed
heisenbergye opened this issue Jan 21, 2024 · 3 comments · Fixed by #41188
Closed

[AWS] Requests include loggroups from linked accounts #37681

heisenbergye opened this issue Jan 21, 2024 · 3 comments · Fixed by #41188
Assignees
Labels
Team:obs-ds-hosted-services Label for the Observability Hosted Services team

Comments

@heisenbergye
Copy link

heisenbergye commented Jan 21, 2024

Hi @kaiyan-sheng , nice to see the feature of supporting collect metrics form linkaccount #35540.

And CloudWatch Logs also need this feature, because aws-cloudwatch can not find log groups from the source accounts when using CloudWatch cross-account observability.

{"log.level":"error","@timestamp":"2024-01-21T17:26:53.378Z","log.logger":"input.aws-cloudwatch.cloudwatch_poller","log.origin":{"function":"github.com/elastic/beats/v7/x-pack/filebeat/input/awscloudwatch.(*cloudwatchPoller).run","file.name":"awscloudwatch/cloudwatch.go","file.line":66},"message":"getLogEventsFromCloudWatch failed: error FilterLogEvents with Paginator: operation error CloudWatch Logs: FilterLogEvents, https response error StatusCode: 400, RequestID: 775cd847-41f6-4615-9040-dcc792591455, ResourceNotFoundException: The specified log group does not exist.","service.name":"filebeat","id":"CE9F457D5ABA17C7","ecs.version":"1.6.0"}

DescribeLogGroups API also has provided the parameter includeLinkedAccounts for users to include loggroups from source accounts in a monitoring account.

account-identifiers (list)
When includeLinkedAccounts is set to True , use this parameter to specify the list of accounts to search. You can specify as many as 20 account IDs in the array.

https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DescribeLogGroups.html

thanks a lot

@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Jan 21, 2024
@heisenbergye heisenbergye changed the title [AWS] Collect metrics from linked accounts [AWS] Requests Collect Loggroups from linked accounts Jan 21, 2024
@heisenbergye heisenbergye changed the title [AWS] Requests Collect Loggroups from linked accounts [AWS] Requests include loggroups from linked accounts Jan 21, 2024
@kaiyan-sheng
Copy link
Contributor

Hi @heisenbergye , this issue should be addressed by #41206. Thanks!

@kaiyan-sheng kaiyan-sheng added the Team:obs-ds-hosted-services Label for the Observability Hosted Services team label Oct 14, 2024
@elasticmachine
Copy link
Collaborator

Pinging @elastic/obs-ds-hosted-services (Team:obs-ds-hosted-services)

@Kavindu-Dodan
Copy link
Contributor

Feature is delivered through PR #41188 & #41206 and will be available from filebeats version 8.16.x onwards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:obs-ds-hosted-services Label for the Observability Hosted Services team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants