carbon_black_cloud: ensure alert search range is a valid temporal ordering - #11149
Conversation
934b3e0 to
d3cbf7f
Compare
d3cbf7f to
336e08f
Compare
🚀 Benchmarks reportPackage
|
| Data stream | Previous EPS | New EPS | Diff (%) | Result |
|---|---|---|---|---|
asset_vulnerability_summary |
11494.25 | 9259.26 | -2234.99 (-19.44%) | 💔 |
To see the full report comment with /test benchmark fullreport
|
Pinging @elastic/security-service-integrations (Team:Security-Service Integrations) |
| // an event that is after this delay for the next evaluation. This | ||
| // would result in an inverted time range. So clamp the range start | ||
| // to the last event we received. | ||
| "time_range": (now - duration("15m")).as(delayed, { |
There was a problem hiding this comment.
This logic looks good.
As mentioned elsewhere, I think we can reduce the 15m to 60s, remove the note in the README and link to the documentation here.
There was a problem hiding this comment.
Do you think it's worth making this configurable?
There was a problem hiding this comment.
No, I don't think so.
I think it's probably just a matter of a timestamp being assigned a value in application code and then written after a variable delay, or being assigned in a database with multiple write nodes and then replicated with variable delay. So they're out of order by roughly the duration of a request. There could be other systems with longer delays, but if they say 60 seconds it's probably 1ms - 15s that we're really worried about.
💚 Build Succeeded
History
cc @efd6 |
|
|
Package carbon_black_cloud - 2.5.2 containing this change is available at https://epr.elastic.co/search?package=carbon_black_cloud |
|
@efd6 there's a custom on our Discuss forums still reporting an issue with Carbon Black after updating to the latest integration. https://discuss.elastic.co/t/carbon-black-cloud-cel-alert-v7-400-bad-request/366464/3 |




Proposed commit message
See title.
Checklist
changelog.ymlfile.Author's Checklist
How to test this PR locally
Related issues
Screenshots