Optimize latest transform source queries across CDR packages#18098
Optimize latest transform source queries across CDR packages#18098maxcold merged 5 commits intoelastic:mainfrom
Conversation
Add @timestamp range filter and _tier exclusion (data_cold, data_frozen) to 17 security_solution latest transforms. This bounds the source query to match the retention period and skips cold/frozen tier storage, preventing transforms from scanning entire indices in large environments. Changes per retention group: - 4h retention (m365_defender, microsoft_defender_endpoint): range now-4h - 24h→26h retention (aws x2, prisma_cloud x2, qualys_vmdr, wiz misconfig): bumped max_age to 26h with 2h buffer, range now-26h - 26h retention (microsoft_defender_cloud x2): range now-26h - 90d retention (aws inspector, aws_securityhub, google_scc x2, rapid7_insightvm, tenable_io, wiz vuln): range now-90d
🚀 Benchmarks reportTo see the full report comment with |
The transform source queries added in e22d379 filter on @timestamp >= now-90d, but the Docker mock service configs had timestamps from 2018-2023 which fell outside this window during CI system tests, causing "no documents found in preview for transform" errors. Shift all @timestamp-mapped fields in the 6 affected packages' Docker mock configs to March 2026 dates so they fall within the 90-day window.
Resolve version/changelog conflicts with upstream changes in aws (6.4.2-6.4.3), m365_defender (5.12.3), and tenable_io (4.9.1). Keep our version bumps on top. Merge tenable_io Docker config with upstream's added empty chunks/2 route while preserving our updated timestamps.
The pubsub system test uses finding.log (separate from config.yml used by the default test). Update eventTime values to March 2026 to fall within the transform's now-90d filter window.
💚 Build Succeeded
History
|
|
Pinging @elastic/security-service-integrations (Team:Security-Service Integrations) |
|
Package aws - 6.5.0 containing this change is available at https://epr.elastic.co/package/aws/6.5.0/ |
|
Package aws_securityhub - 0.3.0 containing this change is available at https://epr.elastic.co/package/aws_securityhub/0.3.0/ |
|
Package google_scc - 2.4.0 containing this change is available at https://epr.elastic.co/package/google_scc/2.4.0/ |
|
Package m365_defender - 5.13.0 containing this change is available at https://epr.elastic.co/package/m365_defender/5.13.0/ |
|
Package microsoft_defender_cloud - 3.4.0 containing this change is available at https://epr.elastic.co/package/microsoft_defender_cloud/3.4.0/ |
|
Package microsoft_defender_endpoint - 4.6.0 containing this change is available at https://epr.elastic.co/package/microsoft_defender_endpoint/4.6.0/ |
|
Package prisma_cloud - 4.1.0 containing this change is available at https://epr.elastic.co/package/prisma_cloud/4.1.0/ |
|
Package qualys_vmdr - 6.18.0 containing this change is available at https://epr.elastic.co/package/qualys_vmdr/6.18.0/ |
|
Package rapid7_insightvm - 2.8.0 containing this change is available at https://epr.elastic.co/package/rapid7_insightvm/2.8.0/ |
|
Package tenable_io - 4.10.0 containing this change is available at https://epr.elastic.co/package/tenable_io/4.10.0/ |
|
Package wiz - 4.2.0 containing this change is available at https://epr.elastic.co/package/wiz/4.2.0/ |
Proposed commit message
Optimize latest transform source queries across 10 CDR packages
Add
@timestamprange filter and_tierexclusion (data_cold,data_frozen) to 17security_solution-*latest transforms. This bounds the source query to match the retention period and skips cold/frozen tier storage.Problem
All CDR latest transforms (except CSP misconfiguration) scan the entire source index with no timestamp bound or storage tier filter. For large environments (e.g., 215M Wiz vulnerability docs), this causes:
Solution
Apply the same optimizations already proven on
cloud_security_posturemisconfiguration transform (v0.3.0):@timestamprange filter — limit source query to match retention period_tierexclusion — skipdata_coldanddata_frozentiersChanges per retention group
now-4hnow-26hnow-26hnow-90dChecklist
changelog.ymlfile.How to test this PR locally
elastic-package install --zip@timestamprange and_tierexclusionRelated issues
Fixes #18370