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

[Filebeat 7.14.2] Adding log_group_name_prefix in aws-cloudwatch input #29006

Closed
chyeyun opened this issue Nov 17, 2021 · 6 comments · Fixed by #29695
Closed

[Filebeat 7.14.2] Adding log_group_name_prefix in aws-cloudwatch input #29006

chyeyun opened this issue Nov 17, 2021 · 6 comments · Fixed by #29695
Assignees
Labels
Team:Integrations Label for the Integrations team

Comments

@chyeyun
Copy link

chyeyun commented Nov 17, 2021

This is the example which is my AWS cloudwatch log groups.

/aws/eks/cluster
/aws/eks/de-cluster
/aws/eks/mo-cluster
aws-tower-logs/Cloud
aws-tower-logs/CloudLogs
...

I'm trying to get all log groups, and I tested to get log groups which are started '/aws' at first.
filebeat.yml configuration:

filebeat:
 inputs:
  - type: aws-cloudwatch
    log_group_name_prefix: /aws/           # or /aws or /
    region_name: ap-northeast-2

But filebeat fetchs only one log group, for instance '/aws/eks/mo-cluster' just like this:

2021-11-17T01:59:01.541Z INFO [aws-cloudwatch] awscloudwatch/input.go:155 aws-cloudwatch input worker for log group: '/aws/eks/mo-cluster' has started

When I apply log_group_name_prefix: aws, it's same.
There is no other log group after that and no error message.

It was confirmed in the issue #21528 that the reason the log_group_name_prefix option was applied was to get multiple logs.
So What should I put values on 'log_group_name_prefix' to get all log groups( I have 100~200 log groups)?

***bug issue
I think this 'workerOnce.Do()' line in code seems like a bug.
https://github.com/elastic/beats/blame/fd322dad6ceafec40c84df4d2a0694ea357d16cc/x-pack/filebeat/input/awscloudwatch/input.go#L151

  • I have 'CloudwatchFullAccess' Iam Policy # @platforms
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Nov 17, 2021
@chyeyun
Copy link
Author

chyeyun commented Nov 17, 2021

How can I add Labels?

@chyeyun
Copy link
Author

chyeyun commented Nov 17, 2021

@platforms

@chyeyun
Copy link
Author

chyeyun commented Nov 17, 2021

@kaiyan-sheng .
Hello, I added comment about this issue on #21528 issue. Please check this problem.

@kaiyan-sheng kaiyan-sheng added the Team:Integrations Label for the Integrations team label Nov 22, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations (Team:Integrations)

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Nov 22, 2021
@kaiyan-sheng kaiyan-sheng self-assigned this Dec 20, 2021
@chyeyun
Copy link
Author

chyeyun commented Feb 7, 2022

@kaiyan-sheng
Thanks for your support. And I have a question, Which version is the merged version?

@kaiyan-sheng
Copy link
Contributor

@chyeyun 8.0.0 would be the version 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Integrations Label for the Integrations team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants