[8.x](backport #41206) [Filebeat] [AWS] add support to source logs from AWS linked source accounts when using log_group_name_prefix #41247
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
This is an automatic backport of pull request #41206 done by Mergify.