[Filebeat] [AWS] Add support to source AWS cloudwatch logs from linked accounts#41188
Conversation
|
Pinging @elastic/obs-ds-hosted-services (Team:obs-ds-hosted-services) |
|
|
|
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
belimawr
left a comment
There was a problem hiding this comment.
There are just a couple of small things to fix:
- The changelog entry
- Addressing the comment from @kaiyan-sheng.
…meter, field renaming Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co>
Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co>
Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co>
Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co>
Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co>
90fb3d5 to
e280d23
Compare
|
@kaiyan-sheng @belimawr thanks for the reviews, I added proposed changes with my latest commit :) appreciate another look |
Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co>
|
@belimawr appreciate another review from you :) |
|
This pull request is now in conflicts. Could you fix it? 🙏 |
…d accounts (#41188) * use LogGroupIdentifier fiter instead of LogGroupName and related parameter, field renaming Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co> * configuration parsing to support arn & linked accounts Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co> * document the ARN usage Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co> * add changelog entry Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co> * code review changes Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co> * code review change - fix typo Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co> --------- Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co> Co-authored-by: kaiyan-sheng <kaiyan.sheng@elastic.co> (cherry picked from commit 42f2d41)
…udwatch logs from linked accounts (#41240) * [Filebeat] [AWS] Add support to source AWS cloudwatch logs from linked accounts (#41188) * use LogGroupIdentifier fiter instead of LogGroupName and related parameter, field renaming Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co> * configuration parsing to support arn & linked accounts Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co> * document the ARN usage Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co> * add changelog entry Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co> * code review changes Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co> * code review change - fix typo Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co> --------- Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co> Co-authored-by: kaiyan-sheng <kaiyan.sheng@elastic.co> (cherry picked from commit 42f2d41) * fix backport commit Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co> --------- Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co> Co-authored-by: Kavindu Dodanduwa <Kavindu-Dodan@users.noreply.github.com> Co-authored-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co>
Proposed commit message
PR adds support to Cloudwatch logs from source linked accounts. This is implemented by using existing configuration
log_group_arnand mapping it toLogGroupIdentifierof FilterLogEvents API [1]Checklist
CHANGELOG.next.asciidocorCHANGELOG-developer.next.asciidoc.Note for reviewers
You could review commit by commit for better understanding of the changes
How to test this PR locally
This require a linked cloudwatch account. If already has one, then,
CLOUDWATCH_LOG) [2]log_group_arnRelated issues
Addresses: #36642
And makes #36645 PR obsolete
closes #37681
Next step
Utilize
includeLinkedAccountswhen dealing with prefixes. To be done in a dedicated PR.[1] - https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_FilterLogEvents.html
[1] - https://github.com/Kavindu-Dodan/data-gen