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's Snyk module only supports retrieval of 10 items #27292

Closed
michaelhyatt opened this issue Aug 10, 2021 · 2 comments · Fixed by #27358
Closed

Filebeat's Snyk module only supports retrieval of 10 items #27292

michaelhyatt opened this issue Aug 10, 2021 · 2 comments · Fixed by #27358
Assignees
Labels
Filebeat Filebeat

Comments

@michaelhyatt
Copy link
Contributor

  • Version: 7.14.0
  • Operating System: Any
  • Steps to Reproduce: Configure and start filebeat with Snyk module with -e.

I can only see 10 items being sent to Elasticsearch although there should be way more. In the log file, there is a line indicating that only one call has been made to the backend. The perPage parameter is set to 10, which suggests that it is just not paginating beyond retrieving the first 10 items. I also don't see any subsequent calls to Snyk APIs to retrieve more items.

2021-08-10T16:40:07.233+1000	INFO	[input.httpjson-cursor]	v2/request.go:210	request finished: 10 events published	{"id": "FEE286D5CD835789", "input_source": "https://snyk.io/api/v1/reporting/issues/?page=1&perPage=10&sortBy=issueTitle&order=asc&groupBy=issue", "input_url": "https://snyk.io/api/v1/reporting/issues/?page=1&perPage=10&sortBy=issueTitle&order=asc&groupBy=issue"}

^^ @papicella

@michaelhyatt michaelhyatt added the Filebeat Filebeat label Aug 10, 2021
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Aug 10, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/security-external-integrations (Team:Security-External Integrations)

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Aug 12, 2021
@P1llus
Copy link
Member

P1llus commented Aug 13, 2021

It seems that we need to add the on_template_error to pagination, to prevent it from failing during pagination, will start to apply a fix for this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Filebeat Filebeat
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants