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

Open
heisenbergye opened this issue Jan 21, 2024 · 1 comment
Open

[AWS] Requests include loggroups from linked accounts #37681

heisenbergye opened this issue Jan 21, 2024 · 1 comment
Labels
needs_team Indicates that the issue/PR needs a Team:* label

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
@botelastic
Copy link

botelastic bot commented Jan 21, 2024

This issue doesn't have a Team:<team> label.

@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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs_team Indicates that the issue/PR needs a Team:* label
Projects
None yet
Development

No branches or pull requests

1 participant