-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[Filebeat] [AWS] add support to source logs from AWS linked source accounts when using log_group_name_prefix #41206
[Filebeat] [AWS] add support to source logs from AWS linked source accounts when using log_group_name_prefix #41206
Conversation
Pinging @elastic/obs-ds-hosted-services (Team:obs-ds-hosted-services) |
Just one comment for now: what do you think about the name |
Good suggestion, done with commit 3d3b46f |
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
Signed-off-by: Kavindu Dodanduwa <[email protected]> # Conflicts: # x-pack/filebeat/input/awscloudwatch/input.go
3d3b46f
to
2d0b247
Compare
Signed-off-by: Kavindu Dodanduwa <[email protected]>
Signed-off-by: Kavindu Dodanduwa <[email protected]>
Signed-off-by: Kavindu Dodanduwa <[email protected]>
Signed-off-by: Kavindu Dodanduwa <[email protected]>
2d0b247
to
4cd801e
Compare
Signed-off-by: Kavindu Dodanduwa <[email protected]>
…counts when using log_group_name_prefix (#41206) * configuration parsing to support arn & linked accounts Signed-off-by: Kavindu Dodanduwa <[email protected]> # Conflicts: # x-pack/filebeat/input/awscloudwatch/input.go * code review change - fix typo Signed-off-by: Kavindu Dodanduwa <[email protected]> * add support to linked accounts when using prefix mode Signed-off-by: Kavindu Dodanduwa <[email protected]> * add changelog entry Signed-off-by: Kavindu Dodanduwa <[email protected]> * review suggestion Signed-off-by: Kavindu Dodanduwa <[email protected]> * use non-pointer struct property Signed-off-by: Kavindu Dodanduwa <[email protected]> --------- Signed-off-by: Kavindu Dodanduwa <[email protected]> (cherry picked from commit 7e1b528)
…counts when using log_group_name_prefix (#41206) (#41247) * configuration parsing to support arn & linked accounts Signed-off-by: Kavindu Dodanduwa <[email protected]> # Conflicts: # x-pack/filebeat/input/awscloudwatch/input.go * code review change - fix typo Signed-off-by: Kavindu Dodanduwa <[email protected]> * add support to linked accounts when using prefix mode Signed-off-by: Kavindu Dodanduwa <[email protected]> * add changelog entry Signed-off-by: Kavindu Dodanduwa <[email protected]> * review suggestion Signed-off-by: Kavindu Dodanduwa <[email protected]> * use non-pointer struct property Signed-off-by: Kavindu Dodanduwa <[email protected]> --------- Signed-off-by: Kavindu Dodanduwa <[email protected]> (cherry picked from commit 7e1b528) Co-authored-by: Kavindu Dodanduwa <[email protected]>
…counts when using log_group_name_prefix (elastic#41206) * configuration parsing to support arn & linked accounts Signed-off-by: Kavindu Dodanduwa <[email protected]> # Conflicts: # x-pack/filebeat/input/awscloudwatch/input.go * code review change - fix typo Signed-off-by: Kavindu Dodanduwa <[email protected]> * add support to linked accounts when using prefix mode Signed-off-by: Kavindu Dodanduwa <[email protected]> * add changelog entry Signed-off-by: Kavindu Dodanduwa <[email protected]> * review suggestion Signed-off-by: Kavindu Dodanduwa <[email protected]> * use non-pointer struct property Signed-off-by: Kavindu Dodanduwa <[email protected]> --------- Signed-off-by: Kavindu Dodanduwa <[email protected]>
Proposed commit message
This is a follow-up to #41188 where I am adding support to source linked accounts when using
log_group_name_prefix
to derive log groups.PR introduce
include_linked_accounts_for_prefix_mode
boolean property, which is disabled by default. If enabled (include_linked_accounts_for_prefix_mode : true
), then we setincludeLinkedAccounts
property of the DescribeLogGroups API [1] to obtain log groups matching prefix and included in linked accounts of the monitoring account.ex:-
Checklist
CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.How to test this PR locally
This require a linked cloudwatch account. If already has one, then,
CLOUDWATCH_LOG
) [2]log_group_name_prefix
with desired prefix & setinclude_linked_accounts_for_prefix_mode
to valuetrue
(enabled)Related issues
[1] - https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DescribeLogGroups.html
[2] - https://github.com/Kavindu-Dodan/data-gen