[qualys_gav] Fix rate limit headers missing error#16810
[qualys_gav] Fix rate limit headers missing error#16810brijesh-elastic merged 5 commits intoelastic:mainfrom
Conversation
|
Pinging @elastic/security-service-integrations (Team:Security-Service Integrations) |
🚀 Benchmarks reportPackage
|
| Data stream | Previous EPS | New EPS | Diff (%) | Result |
|---|---|---|---|---|
asset |
642.67 | 441.31 | -201.36 (-31.33%) | 💔 |
To see the full report comment with /test benchmark fullreport
Co-authored-by: Shourie Ganguly <shourie.ganguly@elastic.co>
|
Hi @clement-fouque , This PR will fix the error you're getting about
During testing, I also came across the issue that the full batch of ingestion never completes. There seems to be an issue with rate calculation. The current behavior of API calls is more throttled than what the server's rate limit headers seem to indicate. Simply put, it seems like due to wrong rate calculation, the qualys API calling rate is 60 times lower than what it should be. We're looking into it in this issue. |
|
When can we expect a resolution? The current version has issues, so I’m considering whether reverting the entire rate-limiting functionality would be the best approach to allow us to address the problem. |
|
The mito PR fix has been merged. It will be included in the next stack release. |
|
@ShourieG, I'm putting the PR into draft for now. Once the next stack is released, I'll update the PR with that constraint and we can merge it afterwards. |
|
The mito fix has been merged, but it is not yet available in the input. This is done in elastic/beats#48500 for 8.19, elastic/beats#48526 for 9.2, and elastic/beats#48527 for 9.3 (elastic/beats#48499 for main) and will be available when the respective releases are made public. |
💚 Build Succeeded
History
|
|
Package qualys_gav - 0.7.1 containing this change is available at https://epr.elastic.co/package/qualys_gav/0.7.1/ |
This removes the rate limit calculations for the `/auth` API call, because we don't receive the necessary headers from it. It is also mentioned in the [documentation](1) that rate limits do not apply to the "auth" API (JWT Token Generation API). This PR updates the Kibana constraint to ^8.19.11 || ^9.2.5 to resolve the rate calculation issue. [1] https://docs.qualys.com/en/csam/api/get_started/api_rate_limits.htm

Proposed commit message
Note
After resolving theThis is resolved in PR #119. The fix is included inrate limit missing rateerror, I was unable to collect all events fromqualys_gav. It only ingested events for 2 intervals. After investigation, it appears thatratewas set too low or more throttled than what the server's rate limit headers indicate. (See issue.)^8.19.11 || ^9.2.5.Checklist
changelog.ymlfile.How to test this PR locally
Related issues